b291db3ba9fcb46f04120fec1299f1ddad744780
[gnulib.git] / ChangeLog
1 2010-03-06  Bruno Haible  <bruno@clisp.org>
2
3         Tests for module 'iconv-h'.
4         * modules/iconv-h-tests: New file.
5         * tests/test-iconv-h.c: New file.
6
7         New module 'iconv-h'.
8         * modules/iconv-h: New file.
9         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
10         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
11         (configure.ac): Remove gl_ICONV_H.
12         (Makefile.am): Remove rule for iconv.h.
13
14 2010-03-06  Bruno Haible  <bruno@clisp.org>
15
16         More consistent naming of *.m4 files.
17         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
18         * modules/wctype (Files): Update.
19
20         More consistent naming of *.m4 files.
21         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
22         * modules/wchar (Files): Update.
23
24 2010-03-06  Jim Meyering  <meyering@redhat.com>
25
26         euidaccess: relax license to LGPLv2+
27         * modules/euidaccess (License): Relax to LGPLv2+.
28
29 2010-03-06  Bruno Haible  <bruno@clisp.org>
30
31         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
32         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
33         (Makefile.am): Augment lib_SOURCES instead.
34
35 2010-03-04  Jim Meyering  <meyering@redhat.com>
36
37         utime: remove obsolete module
38         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
39         unnecessary for years, and has been marked as obsolete for 10 months.
40         * modules/utime: Remove file.
41         * lib/utime.c: Remove file.
42         * m4/utime.m4: Remove file.
43         * m4/utimes-null.m4: Remove file.
44         * doc/posix-functions/utime.texi (utime): Remove reference to
45         the module.  Move the sole "fixed by gnulib" item into the
46         "problems not fixed by Gnulib" list.
47         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
48
49 2010-03-05  Simon Josefsson  <simon@josefsson.org>
50
51         * modules/exit (License): Relax license to LGPLv2+.
52         (Status): Mark as obsolete.
53         * NEWS: Mention deprecated 'exit' module.
54         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
55         of now obsolete 'exit'.
56
57 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58
59         fts-lgpl: remove unused module
60         * modules/fts-lgpl: Remove.
61         * MODULES.html.sh (func_all_modules): Adjust.
62         * check-module (find_included_lib_files): Adjust.
63         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
64
65 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
66
67         copy-acl: enhance Solaris ACL error handling
68         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
69         * lib/set-mode-acl.c (qset_acl): Likewise.
70
71 2010-03-02  Bruno Haible  <bruno@clisp.org>
72
73         spawn: Don't override the system defined values on FreeBSD 8.
74         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
75         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
76         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
77         if HAVE_POSIX_SPAWN is 1.
78         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
79
80 2010-03-01  Bruno Haible  <bruno@clisp.org>
81
82         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
83         regarding Automake.
84
85 2010-02-25  Bruno Haible  <bruno@clisp.org>
86
87         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
88         * gnulib-tool: Define 'echo' as a function only before the ksh alias
89         setting, not afterwards.
90         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
91
92 2010-02-24  Eric Blake  <eblake@redhat.com>
93
94         bootstrap, git-version-gen: use timestamp
95         * build-aux/git-version-gen (scriptversion): Force UTC.
96         * build-aux/bootstrap (scriptversion): New variable.
97
98         bootstrap: allow older git
99         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
100         older than 1.6.4.  Requested by the libvirt project.
101
102 2010-02-23  Eric Blake  <eblake@redhat.com>
103
104         warn-on-use: work with old autoconf
105         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
106         AS_VAR semantics of autoconf 2.60.
107         Reported by Bruno Haible.
108
109         bootstrap: improve some comments
110         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
111         clarification comments.
112
113         gettimeofday: provide correct function
114         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
115         when replacement is declared, otherwise provide gettimeofday.
116         Reported by Michael Goffioul.
117
118 2010-02-23  Jim Meyering  <meyering@redhat.com>
119
120         lib-ignore: relax license to "unlimited", not LGPLv2+
121         * modules/lib-ignore (License): Relax to "unlimited".
122
123 2010-02-23  Jim Meyering  <meyering@redhat.com>
124
125         lib-ignore: relax license to LGPLv2+
126         * modules/lib-ignore (License): Relax to LGPLv2+.
127
128 2010-02-22  Eric Blake  <eblake@redhat.com>
129
130         lseek: avoid bash 3.2 broken pipe bug
131         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
132         warning from bash 3.2.
133         Reported by Ben Pfaff, with analysis from Bruno Haible.
134
135         bootstrap: support non-FSF copyright holder
136         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
137         bootstrap.conf override of COPYRIGHT_HOLDER.
138         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
139
140         bootstrap: interoperate with gettext 0.14.1
141         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
142
143         bootstrap: allow for alternate submodule location
144         * build-aux/bootstrap (gnulib_path): New variable; use instead of
145         hardcoding submodule location.
146         (gnulib_mk): Allow direct use of Makefile.am.
147
148         bootstrap: use GNULIB_SRCDIR to reduce disk usage
149         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
150         rather than reconfiguring where the submodule points.
151
152         gettimeofday: restore support for platforms that lack function
153         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
154         replacement if function is missing.
155         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
156         * modules/sys_time (Makefile.am): Substitute it.
157         * lib/sys_time.in.h (gettimeofday): Check it.
158         Reported by Michael Goffioul.
159
160 2010-02-21  Bruno Haible  <bruno@clisp.org>
161
162         * lib/stdio.in.h (obstack_printf): Fix typo.
163
164 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
165
166         vc-list-files: use bzr ls's -R option
167         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
168         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
169
170 2010-02-21  Jim Meyering  <meyering@redhat.com>
171
172         init.sh: fix EXEEXT shims to work also for names like test-prog
173         * tests/init.sh: Re-exec a better shell, when needed.
174         If the current shell lacks support for posix $(...), an init.sh-using
175         test will now try to find a shell that supports that.  If EXEEXT is
176         nonempty, we also require support for hyphen-in-alias-name and shell
177         substitutions like ${var#glob}.  Failure to find such a shell results
178         in a skipped test.
179
180 2010-02-21  Bruno Haible  <bruno@clisp.org>
181
182         Really work around around "broken pipe" error message from bash 3.2.
183         * gnulib-tool (func_reset_sigpipe): Remove function.
184         (echo): In bash 3.2, define to a function that uses printf.
185         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
186
187 2010-02-20  Bruno Haible  <bruno@clisp.org>
188
189         Restore support for automake 1.9.6 with autoconf 2.61.
190         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
191         Reported by James Youngman <jay@gnu.org>.
192
193 2010-02-20  Bruno Haible  <bruno@clisp.org>
194
195         Improve *printf warning condition.
196         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
197         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
198         and the function is overridden due to SIGPIPE emulation.
199
200 2010-02-20  Bruno Haible  <bruno@clisp.org>
201
202         * lib/stdio.in.h: Tweak comments.
203
204 2010-02-19  Bruno Haible  <bruno@clisp.org>
205
206         Make it easier to find modules. New gnulib-tool option '--find'.
207         * gnulib-tool: New option --find.
208         (func_usage): Document it.
209         (func_sanitize_modulelist): New function, extracted from
210         func_all_modules.
211         (func_all_modules): Invoke it.
212         * doc/gnulib-tool.texi (Which modules?): New node.
213
214 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
215
216         * lib/sys_select.in.h: Provide select replacement even if
217         sys/select.h exists on a system, for Interix.
218
219 2010-02-18  Jim Meyering  <meyering@redhat.com>
220
221         init.sh: don't use $(...) just yet
222         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
223         to accommodate e.g., Solaris' /bin/sh.
224
225 2010-02-17  Bruno Haible  <bruno@clisp.org>
226
227         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
228         Reported by Ludovic Courtès <ludo@gnu.org>.
229
230 2010-02-16  Simon Josefsson  <simon@josefsson.org>
231
232         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
233         linking with -lintl.
234
235 2010-02-17  Simon Josefsson  <simon@josefsson.org>
236
237         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
238         if not provided by the system's netdb.h.  Reported by
239         ludo@gnu.org (Ludovic Courtès).
240
241 2010-02-15  Jim Meyering  <meyering@redhat.com>
242
243         init.sh: improve portability and efficiency
244         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
245         "dummy" in a for loop.
246         Use '!', not '^' to select the complement of a character set used
247         in a "case" statement.
248         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
249         Suggestions from Eric Blake.
250
251         init.sh: automatically accommodate programs with the .exe suffix
252         Automatically arrange for an invocation of "prog" to execute the
253         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
254         may use the simpler "prog", yet still work when built on a system
255         that requires specifying the added suffix.
256         Do this by constructing a function named "prog" that invokes
257         "prog.exe" for each .exe file in selected directories.
258         * tests/init.sh (find_exe_basenames_): New function.
259         (create_exe_shim_functions_): New function.
260         (path_prepend_): Use it.
261
262         maint.mk: mark syntax-check sc_*.m rules as .PHONY
263         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
264         "make -t syntax-check" doesn't create a ton of sc_*.m files.
265
266 2010-02-14  Jim Meyering  <meyering@redhat.com>
267
268         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
269         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
270         (sc_prohibit_hash_pjw_without_use): New rule.
271
272         maint.mk: allow the default upload destination dir to be overridden
273         * top/maint.mk (upload_dest_dir_): Define with a default that
274         preserves the status quo.
275         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
276         Reported by Peter Simons.
277
278         maint.mk: prohibit inclusion of "hash.h" without_use
279         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
280
281 2010-02-10  Jim Meyering  <meyering@redhat.com>
282
283         maint.mk: prohibit inclusion of "ignore-value.h" without_use
284         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
285
286 2010-02-09  Eric Blake  <ebb9@byu.net>
287         and Bruno Haible  <bruno@clisp.org>
288
289         obstack-printf-posix: ensure declaration
290         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
291         extracted from gl_FUNC_OBSTACK_PRINTF.
292         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
293         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
294         Likewise.
295         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
296         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
297         0.
298
299 2010-02-08  Bruno Haible  <bruno@clisp.org>
300
301         gnulib-tool: Fix typo in 2010-02-07 commit.
302         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
303         Reported by Eric Blake.
304
305 2010-02-07  Bruno Haible  <bruno@clisp.org>
306
307         gnulib-tool: Fix up caching patches.
308         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
309         option --no-cache. Use associative arrays when supported by the shell.
310         (sed_comments): New variable.
311         (modcache): Renamed from do_cache.
312         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
313         abbreviate unnecessarily.
314         (have_associative): New variable.
315         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
316         way also for ksh and zsh.
317         (func_init_sed_convert_to_cache_statements): New function, extracted
318         from func_cache_lookup_module. Add support for associative arrays.
319         Don't set the c_MODULE_cached variable here. Ignore all lines before
320         the first field header. Remove only the final newline, not all trailing
321         newlines. Support empty fields correctly. Limit the use of 'eval' to
322         assignments.
323         (func_get_description, func_get_status, func_get_notice,
324         func_get_applicability, func_get_filelist, func_get_dependencies,
325         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
326         func_get_automake_snippet, func_get_include_directive,
327         func_get_link_directive, func_get_license, func_get_maintainer):
328         Update documentation. List the unoptimized code first. Add support for
329         associative arrays. Limit the use of 'eval' to assignments.
330         (func_get_applicability): Undo stylistic pessimisations.
331         (func_get_automake_snippet, func_get_include_directive): Reduce code
332         duplication.
333         (func_modules_transitive_closure, func_modules_add_dummy,
334         func_modules_notice, func_modules_to_filelist, func_add_file,
335         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
336         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
337         func_create_testdir, func_create_megatestdir): Update documentation.
338
339 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
340
341         * gnulib-tool (func_cache_lookup_module): Store the module name
342         belonging to the cache variable; error out if two different
343         module names map to the same cache variable name.
344
345 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
346
347         gnulib-tool: Make caching optional.
348         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
349         Update matching short versions of --no-changelog.
350         (func_usage): Update.
351         (sed_extract_cache_prog): Renamed from ...
352         (sed_extract_prog): ... this; revert to old extraction script.
353         (func_get_description, func_get_status)
354         (func_get_notice, func_get_applicability, func_get_filelist)
355         (func_get_dependencies, func_get_autoconf_early_snippet)
356         (func_get_autoconf_snippet, func_get_automake_snippet)
357         (func_get_include_directive, func_get_link_directive)
358         (func_get_license, func_get_maintainer): If $do_cache is false,
359         use old, non-caching extraction scripts.
360         Suggestion by Bruno Haible.
361
362 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
363
364         gnulib-tool: cache module metainformation.
365         * gnulib-tool (sed_extract_prog): Match newline before each
366         header, and rewrite header to a shell variable suffix.
367         (func_cache_var, func_cache_lookup_module): New functions,
368         to turn a module name into a cache variable prefix, and to
369         look up and cache module metainformation.
370         (func_get_description, func_get_status)
371         (func_get_notice, func_get_applicability, func_get_filelist)
372         (func_get_dependencies, func_get_autoconf_early_snippet)
373         (func_get_autoconf_snippet, func_get_automake_snippet)
374         (func_get_include_directive, func_get_link_directive)
375         (func_get_license, func_get_maintainer): Use
376         func_cache_lookup_module.
377
378 2010-02-07  Bruno Haible  <bruno@clisp.org>
379
380         fnctl: Fix missing dependency.
381         * modules/fcntl (Depends-on): Add getdtablesize.
382         Reported by John W. Eaton <jwe@gnu.org>.
383
384 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
385
386         Argp: fix recognition of short alias options.
387
388         * lib/argp-parse.c (convert_options): Fix improper use of
389         `|' between character values.
390         * tests/test-argp.c (group1_option): New alias option
391         --read (-r).
392         (group1_parser): Special handling for 'r'.
393         (test15): New test case.
394         (test_fun): Add test15.
395         * tests/test-argp-2.sh: Update expected --help and --usage
396         outputs.
397
398 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
399
400         * tests/test-argp.c: Fix indentation.
401
402 2010-02-04  Eric Blake  <ebb9@byu.net>
403
404         gettimeofday: expose type of second argument
405         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
406         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
407         * tests/test-gettimeofday.c: Use it to silence warning.
408         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
409         the issue.
410
411 2010-02-03  Jim Meyering  <meyering@redhat.com>
412
413         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
414         * lib/regcomp.c (TYPE_SIGNED): Define.
415         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
416
417         regcomp.c: avoid a new -Wshadow warning
418         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
419
420 2010-02-01  Jim Meyering  <meyering@redhat.com>
421
422         removing useless parentheses in cpp #define directives
423         For motivation, see commit c0221df4, "define STREQ(a,b)
424         consistently, removing useless parentheses"
425         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
426         * lib/mountlist.c (MNT_IGNORE): Likewise.
427         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
428
429 2010-02-01  Eric Blake  <ebb9@byu.net>
430
431         sys_time: use link-warning
432         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
433         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
434         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
435         * modules/sys_time (Depends-on): Add warn-on-use.
436         (Makefile.am): Always build replacement.
437         (configure.ac): Update substitutions.
438         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
439         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
440         bother with SYS_TIME_H.
441         * modules/gettimeofday (configure.ac): Declare indicator.
442         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
443         in use.
444
445         closein-tests: silence compiler warning
446         * tests/test-closein.c (main): Ignore fread result.
447         * modules/closein-tests (Depends-on): Add ignore-value.
448
449         tests: silence warning about system return
450         * tests/test-areadlink-with-size.c (main): Ignore system result.
451         * tests/test-areadlink.c (main): Likewise.
452         * tests/test-areadlinkat-with-size.c (main): Likewise.
453         * tests/test-areadlinkat.c (main): Likewise.
454         * tests/test-canonicalize-lgpl.c (main): Likewise.
455         * tests/test-canonicalize.c (main): Likewise.
456         * tests/test-chown.c (main): Likewise.
457         * tests/test-fchownat.c (main): Likewise.
458         * tests/test-fdutimensat.c (main): Likewise.
459         * tests/test-fstatat.c (main): Likewise.
460         * tests/test-futimens.c (main): Likewise.
461         * tests/test-lchown.c (main): Likewise.
462         * tests/test-link.c (main): Likewise.
463         * tests/test-linkat.c (main): Likewise.
464         * tests/test-lstat.c (main): Likewise.
465         * tests/test-mkdir.c (main): Likewise.
466         * tests/test-mkdirat.c (main): Likewise.
467         * tests/test-mkfifo.c (main): Likewise.
468         * tests/test-mkfifoat.c (main): Likewise.
469         * tests/test-mknod.c (main): Likewise.
470         * tests/test-readlink.c (main): Likewise.
471         * tests/test-remove.c (main): Likewise.
472         * tests/test-rename.c (main): Likewise.
473         * tests/test-renameat.c (main): Likewise.
474         * tests/test-rmdir.c (main): Likewise.
475         * tests/test-symlink.c (main): Likewise.
476         * tests/test-symlinkat.c (main): Likewise.
477         * tests/test-unlink.c (main): Likewise.
478         * tests/test-unlinkat.c (main): Likewise.
479         * tests/test-utimens.c (main): Likewise.
480         * tests/test-utimensat.c (main): Likewise.
481         * modules/areadlink-tests (Depends-on): Add ignore-value.
482         * modules/areadlink-with-size-tests (Depends-on): Likewise.
483         * modules/areadlinkat-tests (Depends-on): Likewise.
484         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
485         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
486         * modules/canonicalize-tests (Depends-on): Likewise.
487         * modules/chown-tests (Depends-on): Likewise.
488         * modules/fdutimensat-tests (Depends-on): Likewise.
489         * modules/futimens-tests (Depends-on): Likewise.
490         * modules/lchown-tests (Depends-on): Likewise.
491         * modules/link-tests (Depends-on): Likewise.
492         * modules/linkat-tests (Depends-on): Likewise.
493         * modules/lstat-tests (Depends-on): Likewise.
494         * modules/mkdir-tests (Depends-on): Likewise.
495         * modules/mkfifo-tests (Depends-on): Likewise.
496         * modules/mkfifoat-tests (Depends-on): Likewise.
497         * modules/mknod-tests (Depends-on): Likewise.
498         * modules/openat-tests (Depends-on): Likewise.
499         * modules/readlink-tests (Depends-on): Likewise.
500         * modules/remove-tests (Depends-on): Likewise.
501         * modules/rename-tests (Depends-on): Likewise.
502         * modules/renameat-tests (Depends-on): Likewise.
503         * modules/rmdir-tests (Depends-on): Likewise.
504         * modules/symlink-tests (Depends-on): Likewise.
505         * modules/symlinkat-tests (Depends-on): Likewise.
506         * modules/unlink-tests (Depends-on): Likewise.
507         * modules/utimens-tests (Depends-on): Likewise.
508         * modules/utimensat-tests (Depends-on): Likewise.
509
510 2010-01-31  Bruno Haible  <bruno@clisp.org>
511
512         Perform the same test for many <math.h> functions.
513         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
514         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
515         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
516         of gl_MATHFUNC.
517         * modules/acos (configure.ac): Likewise.
518         * modules/asin (configure.ac): Likewise.
519         * modules/atan (configure.ac): Likewise.
520         * modules/atan2 (configure.ac): Likewise.
521         * modules/cbrt (configure.ac): Likewise.
522         * modules/copysign (configure.ac): Likewise.
523         * modules/cos (configure.ac): Likewise.
524         * modules/cosh (configure.ac): Likewise.
525         * modules/erf (configure.ac): Likewise.
526         * modules/erfc (configure.ac): Likewise.
527         * modules/exp (configure.ac): Likewise.
528         * modules/fmod (configure.ac): Likewise.
529         * modules/hypot (configure.ac): Likewise.
530         * modules/j0 (configure.ac): Likewise.
531         * modules/j1 (configure.ac): Likewise.
532         * modules/jn (configure.ac): Likewise.
533         * modules/lgamma (configure.ac): Likewise.
534         * modules/log (configure.ac): Likewise.
535         * modules/log10 (configure.ac): Likewise.
536         * modules/log1p (configure.ac): Likewise.
537         * modules/pow (configure.ac): Likewise.
538         * modules/remainder (configure.ac): Likewise.
539         * modules/sin (configure.ac): Likewise.
540         * modules/sinh (configure.ac): Likewise.
541         * modules/tan (configure.ac): Likewise.
542         * modules/tanh (configure.ac): Likewise.
543         * modules/y0 (configure.ac): Likewise.
544         * modules/y1 (configure.ac): Likewise.
545         * modules/yn (configure.ac): Likewise.
546         Suggested by Paolo Bonzini.
547
548 2010-01-31  Bruno Haible  <bruno@clisp.org>
549
550         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
551
552 2010-01-31  Bruno Haible  <bruno@clisp.org>
553
554         Work around getdelim() bug on FreeBSD 8.0.
555         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
556         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
557         not work.
558         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
559         is 1.
560         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
561         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
562         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
563         a non-zero size.
564         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
565
566 2010-01-31  Bruno Haible  <bruno@clisp.org>
567
568         Work around getline() bug on FreeBSD 8.0.
569         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
570         and a non-zero size.
571         * tests/test-getline.c (main): Likewise.
572         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
573         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
574
575 2010-01-28  Eric Blake  <ebb9@byu.net>
576
577         regex: fix build failure
578         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
579         platforms.
580
581 2010-01-28  Jim Meyering  <meyering@redhat.com>
582
583         regex: do not ignore memory allocation failure
584         * lib/regex_internal.c (create_cd_newstate): Detect
585         re_node_set_init_copy failure.   Extracted from glibc commit
586         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
587
588         regex: sync more white-space changes from libc
589         * lib/regex_internal.c: White-space only changes.
590         * lib/regexec.c: Likewise.
591
592         regex: add many uses of __attribute_warn_unused_result__
593         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
594         * lib/regexec.c: Likewise.
595         Extracted from a messy glibc commit.
596
597         regcomp.c: spelling and merge-artifact from glibc
598         * lib/regcomp.c: Merge remainder of glibc's
599         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
600
601         regcomp.c: sync white-space changes from glibc
602         * lib/regcomp.c: Merge to accommodate white space
603         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
604
605         regcomp.c: do not ignore internal return values
606         * lib/regcomp.c: Do not ignore internal return values.
607         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
608         but without its white-space changes and spelling fixes.
609
610         regex_internal.h: define __attribute_warn_unused_result__
611         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
612
613         maint: add a syntax-check rule to check for vulnerable Makefile.in
614         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
615
616 2010-01-27  Jim Meyering  <meyering@redhat.com>
617
618         ncftpput-ftp: clean up spaces
619         * build-aux/ncftpput-ftp: Make Copyright line consistent.
620         Remove trailing blanks.
621
622 2010-01-27  Simon Josefsson  <simon@josefsson.org>
623
624         * build-aux/git-version-gen: Fix copyright statement.
625         * build-aux/gnupload: Likewise.
626         * tests/test-arcfour.c: Likewise.
627         * tests/test-arctwo.c: Likewise.
628         * tests/test-count-one-bits.c: Likewise.
629         * tests/test-crc.c: Likewise.
630         * tests/test-des.c: Likewise.
631         * tests/test-gc-arcfour.c: Likewise.
632         * tests/test-gc-arctwo.c: Likewise.
633         * tests/test-gc-des.c: Likewise.
634         * tests/test-gc-hmac-md5.c: Likewise.
635         * tests/test-gc-hmac-sha1.c: Likewise.
636         * tests/test-gc-md2.c: Likewise.
637         * tests/test-gc-md4.c: Likewise.
638         * tests/test-gc-md5.c: Likewise.
639         * tests/test-gc-pbkdf2-sha1.c: Likewise.
640         * tests/test-gc-rijndael.c: Likewise.
641         * tests/test-gc-sha1.c: Likewise.
642         * tests/test-gc.c: Likewise.
643         * tests/test-gethostname.c: Likewise.
644         * tests/test-gettimeofday.c: Likewise.
645         * tests/test-hash.c: Likewise.
646         * tests/test-hmac-md5.c: Likewise.
647         * tests/test-hmac-sha1.c: Likewise.
648         * tests/test-md2.c: Likewise.
649         * tests/test-md4.c: Likewise.
650         * tests/test-md5.c: Likewise.
651         * tests/test-memchr.c: Likewise.
652         * tests/test-memchr2.c: Likewise.
653         * tests/test-memcmp.c: Likewise.
654         * tests/test-memmem.c: Likewise.
655         * tests/test-memrchr.c: Likewise.
656         * tests/test-rawmemchr.c: Likewise.
657         * tests/test-read-file.c: Likewise.
658         * tests/test-rijndael.c: Likewise.
659         * tests/test-sockets.c: Likewise.
660         * tests/test-strchrnul.c: Likewise.
661         * tests/test-strstr.c: Likewise.
662         * tests/test-strtod.c: Likewise.
663         * build-aux/ncftpput-ftp: Likewise.
664
665 2010-01-26  Eric Blake  <ebb9@byu.net>
666
667         ignore-value: update recommended header name
668         * modules/ignore-value (Include): Only use <> for headers that
669         exist in glibc.
670
671 2010-01-26  Jim Meyering  <meyering@redhat.com>
672
673         test-userspec.c: avoid compiler warnings
674         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
675         and "initialization discards qualifiers..." warnings.
676         Put the first "uid" in its own scope, and make char* members "const".
677
678 2010-01-25  Bruno Haible  <bruno@clisp.org>
679
680         gnulib-tool: Make warning diagnostics consistent.
681         * gnulib-tool (func_warning): New function.
682         Use it everywhere where gnulib-tool produces output to stderr and it is
683         not a fatal error.
684
685 2010-01-25  Bruno Haible  <bruno@clisp.org>
686
687         Fix test dependencies.
688         * modules/xstrtol-tests (Depends-on): Add inttypes.
689         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
690
691 2010-01-25 Pádraig Brady <P@draigBrady.com>
692
693         syntax-check: detect incorrect boolean macro values in config.h
694         * modules/maintainer-makefile (configure.ac): Parameterize the location
695         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
696         The logic is from Eric Blake and the location indicated by Jim Meyering.
697         Note the more natural CONFIG_HEADER name is prohibited by automake
698         for backwards compatibility reasons.
699         * top/maint.mk (sc_Wundef_boolean): New rule.
700
701 2010-01-25  Jim Meyering  <meyering@redhat.com>
702
703         bootstrap: detect MacOS 10.6's shasum, too
704         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
705         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
706
707 2010-01-23  Jim Meyering  <meyering@redhat.com>
708
709         xstrtoll: new module
710         * modules/xstrtoll: New file.
711         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
712         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
713         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
714         ./configure fails if you use this module and lack "long long".
715         * modules/xstrtoll-tests: New module.
716         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
717         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
718         new init.sh-based test framework.
719
720 2010-01-24  Bruno Haible  <bruno@clisp.org>
721
722         Tests for module 'yn'.
723         * modules/yn-tests: New file.
724         * tests/test-yn.c: New file.
725
726         Tests for module 'y1'.
727         * modules/y1-tests: New file.
728         * tests/test-y1.c: New file.
729
730         Tests for module 'y0'.
731         * modules/y0-tests: New file.
732         * tests/test-y0.c: New file.
733
734         Tests for module 'tanh'.
735         * modules/tanh-tests: New file.
736         * tests/test-tanh.c: New file.
737
738         Tests for module 'tan'.
739         * modules/tan-tests: New file.
740         * tests/test-tan.c: New file.
741
742         Tests for module 'sqrt'.
743         * modules/sqrt-tests: New file.
744         * tests/test-sqrt.c: New file.
745
746         Tests for module 'sinh'.
747         * modules/sinh-tests: New file.
748         * tests/test-sinh.c: New file.
749
750         Tests for module 'sin'.
751         * modules/sin-tests: New file.
752         * tests/test-sin.c: New file.
753
754         Tests for module 'rint'.
755         * modules/rint-tests: New file.
756         * tests/test-rint.c: New file.
757
758         Tests for module 'remainder'.
759         * modules/remainder-tests: New file.
760         * tests/test-remainder.c: New file.
761
762         Tests for module 'pow'.
763         * modules/pow-tests: New file.
764         * tests/test-pow.c: New file.
765
766         Tests for module 'nextafter'.
767         * modules/nextafter-tests: New file.
768         * tests/test-nextafter.c: New file.
769
770         Tests for module 'modf'.
771         * modules/modf-tests: New file.
772         * tests/test-modf.c: New file.
773
774         Tests for module 'logb'.
775         * modules/logb-tests: New file.
776         * tests/test-logb.c: New file.
777
778         Tests for module 'log1p'.
779         * modules/log1p-tests: New file.
780         * tests/test-log1p.c: New file.
781
782         Tests for module 'log10'.
783         * modules/log10-tests: New file.
784         * tests/test-log10.c: New file.
785
786         Tests for module 'log'.
787         * modules/log-tests: New file.
788         * tests/test-log.c: New file.
789
790         Tests for module 'lgamma'.
791         * modules/lgamma-tests: New file.
792         * tests/test-lgamma.c: New file.
793
794         Tests for module 'ldexp'.
795         * modules/ldexp-tests: New file.
796         * tests/test-ldexp.c: New file.
797
798         Tests for module 'jn'.
799         * modules/jn-tests: New file.
800         * tests/test-jn.c: New file.
801
802         Tests for module 'j1'.
803         * modules/j1-tests: New file.
804         * tests/test-j1.c: New file.
805
806         Tests for module 'j0'.
807         * modules/j0-tests: New file.
808         * tests/test-j0.c: New file.
809
810         Tests for module 'hypot'.
811         * modules/hypot-tests: New file.
812         * tests/test-hypot.c: New file.
813
814         Tests for module 'fmod'.
815         * modules/fmod-tests: New file.
816         * tests/test-fmod.c: New file.
817
818         Tests for module 'fabs'.
819         * modules/fabs-tests: New file.
820         * tests/test-fabs.c: New file.
821
822         Tests for module 'exp'.
823         * modules/exp-tests: New file.
824         * tests/test-exp.c: New file.
825
826         Tests for module 'erfc'.
827         * modules/erfc-tests: New file.
828         * tests/test-erfc.c: New file.
829
830         Tests for module 'erf'.
831         * modules/erf-tests: New file.
832         * tests/test-erf.c: New file.
833
834         Tests for module 'cosh'.
835         * modules/cosh-tests: New file.
836         * tests/test-cosh.c: New file.
837
838         Tests for module 'cos'.
839         * modules/cos-tests: New file.
840         * tests/test-cos.c: New file.
841
842         Tests for module 'copysign'.
843         * modules/copysign-tests: New file.
844         * tests/test-copysign.c: New file.
845
846         Tests for module 'cbrt'.
847         * modules/cbrt-tests: New file.
848         * tests/test-cbrt.c: New file.
849
850         Tests for module 'atan2'.
851         * modules/atan2-tests: New file.
852         * tests/test-atan2.c: New file.
853
854         Tests for module 'atan'.
855         * modules/atan-tests: New file.
856         * tests/test-atan.c: New file.
857
858         Tests for module 'asin'.
859         * modules/asin-tests: New file.
860         * tests/test-asin.c: New file.
861
862         Tests for module 'acos'.
863         * modules/acos-tests: New file.
864         * tests/test-acos.c: New file.
865
866 2010-01-24  Bruno Haible  <bruno@clisp.org>
867
868         Fix tests for common <math.h> functions.
869         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
870         code snippet that references the function pointer, rather than merely
871         calling the function. Substitute the FUNC_LIBM variable.
872         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
873         * modules/acos (configure.ac): Likewise.
874         * modules/asin (configure.ac): Likewise.
875         * modules/atan (configure.ac): Likewise.
876         * modules/atan2 (configure.ac): Likewise.
877         * modules/cbrt (configure.ac): Likewise.
878         * modules/copysign (configure.ac): Likewise.
879         * modules/cos (configure.ac): Likewise.
880         * modules/cosh (configure.ac): Likewise.
881         * modules/erf (configure.ac): Likewise.
882         * modules/erfc (configure.ac): Likewise.
883         * modules/exp (configure.ac): Likewise.
884         * modules/fabs (configure.ac): Likewise.
885         * modules/fmod (configure.ac): Likewise.
886         * modules/hypot (configure.ac): Likewise.
887         * modules/j0 (configure.ac): Likewise.
888         * modules/j1 (configure.ac): Likewise.
889         * modules/jn (configure.ac): Likewise.
890         * modules/ldexp (configure.ac): Likewise.
891         * modules/lgamma (configure.ac): Likewise.
892         * modules/log (configure.ac): Likewise.
893         * modules/log10 (configure.ac): Likewise.
894         * modules/log1p (configure.ac): Likewise.
895         * modules/logb (configure.ac): Likewise.
896         * modules/modf (configure.ac): Likewise.
897         * modules/nextafter (configure.ac): Likewise.
898         * modules/pow (configure.ac): Likewise.
899         * modules/remainder (configure.ac): Likewise.
900         * modules/rint (configure.ac): Likewise.
901         * modules/sin (configure.ac): Likewise.
902         * modules/sinh (configure.ac): Likewise.
903         * modules/tan (configure.ac): Likewise.
904         * modules/tanh (configure.ac): Likewise.
905         * modules/y0 (configure.ac): Likewise.
906         * modules/y1 (configure.ac): Likewise.
907         * modules/yn (configure.ac): Likewise.
908
909 2010-01-24  Bruno Haible  <bruno@clisp.org>
910
911         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
912         * tests/test-acosl.c (x): New variable.
913         (main): Store argument in x and fetch it from x.
914         * tests/test-asinl.c (x): New variable.
915         (main): Store argument in x and fetch it from x.
916         * tests/test-atanl.c (x): New variable.
917         (main): Store argument in x and fetch it from x.
918         * tests/test-cosl.c (x): New variable.
919         (main): Store argument in x and fetch it from x.
920         * tests/test-expl.c (x): New variable.
921         (main): Store argument in x and fetch it from x.
922         * tests/test-logl.c (x): New variable.
923         (main): Store argument in x and fetch it from x.
924         * tests/test-sinl.c (x): New variable.
925         (main): Store argument in x and fetch it from x.
926         * tests/test-sqrtl.c (x): New variable.
927         (main): Store argument in x and fetch it from x.
928         * tests/test-tanl.c (x): New variable.
929         (main): Store argument in x and fetch it from x.
930
931 2010-01-24  Bruno Haible  <bruno@clisp.org>
932
933         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
934         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
935         assignments to the initial TESTS_ENVIRONMENT.
936         * doc/gnulib.texi (Unit test modules): Document it.
937         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
938         TESTS_ENVIRONMENT.
939         * modules/btowc-tests (Makefile.am): Likewise.
940         * modules/c-stack-tests (Makefile.am): Likewise.
941         * modules/c-strcase-tests (Makefile.am): Likewise.
942         * modules/copy-file-tests (Makefile.am): Likewise.
943         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
944         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
945         * modules/mbrtowc-tests (Makefile.am): Likewise.
946         * modules/mbscasecmp-tests (Makefile.am): Likewise.
947         * modules/mbscasestr-tests (Makefile.am): Likewise.
948         * modules/mbschr-tests (Makefile.am): Likewise.
949         * modules/mbscspn-tests (Makefile.am): Likewise.
950         * modules/mbsinit-tests (Makefile.am): Likewise.
951         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
952         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
953         * modules/mbspbrk-tests (Makefile.am): Likewise.
954         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
955         * modules/mbsrchr-tests (Makefile.am): Likewise.
956         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
957         * modules/mbsspn-tests (Makefile.am): Likewise.
958         * modules/mbsstr-tests (Makefile.am): Likewise.
959         * modules/nl_langinfo-tests (Makefile.am): Likewise.
960         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
961         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
962         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
963         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
964         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
965         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
966         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
967         * modules/wcrtomb-tests (Makefile.am): Likewise.
968         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
969         * modules/wcsrtombs-tests (Makefile.am): Likewise.
970         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
971         assignments from TESTS_ENVIRONMENT.
972         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
973         augmentation.
974         * modules/argp-version-etc-tests (Makefile.am): Likewise.
975         * modules/atexit-tests (Makefile.am): Likewise.
976         * modules/binary-io-tests (Makefile.am): Likewise.
977         * modules/closein-tests (Makefile.am): Likewise.
978         * modules/dprintf-posix-tests (Makefile.am): Likewise.
979         * modules/exclude-tests (Makefile.am): Likewise.
980         * modules/fflush-tests (Makefile.am): Likewise.
981         * modules/fpending-tests (Makefile.am): Likewise.
982         * modules/fprintf-posix-tests (Makefile.am): Likewise.
983         * modules/freadahead-tests (Makefile.am): Likewise.
984         * modules/freadptr-tests (Makefile.am): Likewise.
985         * modules/freadseek-tests (Makefile.am): Likewise.
986         * modules/fseek-tests (Makefile.am): Likewise.
987         * modules/fseeko-tests (Makefile.am): Likewise.
988         * modules/ftell-tests (Makefile.am): Likewise.
989         * modules/ftello-tests (Makefile.am): Likewise.
990         * modules/idpriv-drop-tests (Makefile.am): Likewise.
991         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
992         * modules/lseek-tests (Makefile.am): Likewise.
993         * modules/parse-duration-tests (Makefile.am): Likewise.
994         * modules/perror-tests (Makefile.am): Likewise.
995         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
996         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
997         * modules/pipe-tests (Makefile.am): Likewise.
998         * modules/pread-tests (Makefile.am): Likewise.
999         * modules/printf-posix-tests (Makefile.am): Likewise.
1000         * modules/select-tests (Makefile.am): Likewise.
1001         * modules/sigpipe-tests (Makefile.am): Likewise.
1002         * modules/tsearch-tests (Makefile.am): Likewise.
1003         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
1004         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
1005         * modules/uniname/uniname-tests (Makefile.am): Likewise.
1006         * modules/uniwidth/width-tests (Makefile.am): Likewise.
1007         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
1008         * modules/version-etc-tests (Makefile.am): Likewise.
1009         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
1010         * modules/vprintf-posix-tests (Makefile.am): Likewise.
1011         * modules/xalloc-die-tests (Makefile.am): Likewise.
1012         * modules/xprintf-posix-tests (Makefile.am): Likewise.
1013         * modules/xstrtoimax-tests (Makefile.am): Likewise.
1014         * modules/xstrtol-tests (Makefile.am): Likewise.
1015         * modules/xstrtoumax-tests (Makefile.am): Likewise.
1016         * modules/yesno-tests (Makefile.am): Likewise.
1017         Suggested by Jim Meyering.
1018
1019 2010-01-24  Bruno Haible  <bruno@clisp.org>
1020
1021         More documentation.
1022         * doc/gnulib.texi (Writing modules): New chapter.
1023         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
1024         the new chapter.
1025
1026 2010-01-24  Jim Meyering  <meyering@redhat.com>
1027
1028         maint.mk: do not prepend "./" after filtering
1029         * top/maint.mk (_prepend_srcdir_prefix): New variable
1030         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
1031         "./" when $(srcdir) is ".".
1032
1033         define STREQ(a,b) consistently, removing useless parentheses
1034         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
1035         since the only risk is that "a" or "b" contains an unparenthesized
1036         comma, but if either did that, STREQ would have 3 or more arguments.
1037         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
1038         * lib/fts.c (STREQ): Remove unnecessary parentheses.
1039         * lib/hash-triple.c (STREQ): Likewise.
1040         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
1041         * lib/getugroups.c (STREQ): Likewise.
1042
1043 2010-01-23  Jim Meyering  <meyering@redhat.com>
1044
1045         maint.mk: fix syntax-check in a non-srcdir build directory
1046         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
1047         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
1048
1049 2010-01-22  Jim Meyering  <meyering@redhat.com>
1050
1051         userspec: add unit tests
1052         * tests/test-userspec.c: New file.
1053         * modules/userspec-tests: Likewise.
1054
1055 2010-01-21  Jim Meyering  <meyering@redhat.com>
1056
1057         maint.mk: handle source file names containing "." robustly
1058         * top/maint.mk (_dot_escaped_srcdir): Define.
1059         (VC_LIST): Use it in LHS of sed substitution.
1060
1061 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
1062
1063         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
1064         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
1065         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
1066         from a non-srcdir build.
1067
1068 2010-01-20  Eric Blake  <ebb9@byu.net>
1069
1070         warn-on-use: use instead of link-warning
1071         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
1072         * modules/unistd (Depends-on, Makefile.am): Likewise.
1073         * modules/arpa_inet (Depends-on): Replace link-warning with
1074         warn-on-use.
1075         (Makefile.am): Update rules accordingly.
1076         * modules/ctype (Depends-on, Makefile.am): Likewise.
1077         * modules/dirent (Depends-on, Makefile.am): Likewise.
1078         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
1079         * modules/inttypes (Depends-on, Makefile.am): Likewise.
1080         * modules/langinfo (Depends-on, Makefile.am): Likewise.
1081         * modules/locale (Depends-on, Makefile.am): Likewise.
1082         * modules/math (Depends-on, Makefile.am): Likewise.
1083         * modules/search (Depends-on, Makefile.am): Likewise.
1084         * modules/signal (Depends-on, Makefile.am): Likewise.
1085         * modules/spawn (Depends-on, Makefile.am): Likewise.
1086         * modules/stdlib (Depends-on, Makefile.am): Likewise.
1087         * modules/string (Depends-on, Makefile.am): Likewise.
1088         * modules/strings (Depends-on, Makefile.am): Likewise.
1089         * modules/sys_file (Depends-on, Makefile.am): Likewise.
1090         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
1091         * modules/sys_select (Depends-on, Makefile.am): Likewise.
1092         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
1093         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
1094         * modules/sys_times (Depends-on, Makefile.am): Likewise.
1095         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
1096         * modules/wchar (Depends-on, Makefile.am): Likewise.
1097         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
1098         should be poisoned.
1099         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
1100         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
1101         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
1102         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1103         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1104         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
1105         * m4/math_h.m4 (gl_MATH_H): Likewise.
1106         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
1107         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1108         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1109         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
1110         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
1111         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
1112         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
1113         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
1114         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
1115         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1116         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1117         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
1118         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1119         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1120         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1121         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
1122         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
1123         GL_LINK_WARNING.
1124         * lib/ctype.in.h: Likewise.
1125         * lib/dirent.in.h: Likewise.
1126         * lib/fcntl.in.h: Likewise.
1127         * lib/inttypes.in.h: Likewise.
1128         * lib/langinfo.in.h: Likewise.
1129         * lib/locale.in.h: Likewise.
1130         * lib/math.in.h: Likewise.
1131         * lib/search.in.h: Likewise.
1132         * lib/signal.in.h: Likewise.
1133         * lib/spawn.in.h: Likewise.
1134         * lib/stdio.in.h: Likewise.
1135         * lib/stdlib.in.h: Likewise.
1136         * lib/string.in.h: Likewise.
1137         * lib/strings.in.h: Likewise.
1138         * lib/sys_file.in.h: Likewise.
1139         * lib/sys_ioctl.in.h: Likewise.
1140         * lib/sys_select.in.h: Likewise.
1141         * lib/sys_socket.in.h: Likewise.
1142         * lib/sys_stat.in.h: Likewise.
1143         * lib/sys_times.in.h: Likewise.
1144         * lib/sys_utsname.in.h: Likewise.
1145         * lib/unistd.in.h: Likewise.
1146         * lib/wchar.in.h: Likewise.
1147
1148 2010-01-20  Bruno Haible  <bruno@clisp.org>
1149
1150         Avoid duplicate -lm.
1151         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
1152         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
1153         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
1154         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
1155         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
1156         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
1157         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
1158         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
1159         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
1160         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
1161         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
1162         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1163         Reported by Paolo Bonzini.
1164
1165 2010-01-19  Bruno Haible  <bruno@clisp.org>
1166
1167         langinfo, nl_langinfo: Relicense under LGPLv2+.
1168         * modules/langinfo (License): Change to LGPLv2+.
1169         * modules/nl_langinfo (License): Likewise.
1170         Patch by David Lutterkort <lutter@redhat.com>.
1171
1172 2010-01-19  Bruno Haible  <bruno@clisp.org>
1173
1174         Avoid compilation error with cc on OSF/1 5.1.
1175         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
1176         statement, not before.
1177         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1178
1179 2010-01-18  Bruno Haible  <bruno@clisp.org>
1180
1181         Avoid a link error due to the __printf__ symbol.
1182         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
1183         and 2.6.x.
1184         (__format__, __printf__): Remove definitions.
1185         * lib/argp-fmtstream.h: Likewise.
1186         * lib/argp.h: Likewise.
1187         * lib/error.h: Likewise.
1188         * lib/vasnprintf.h: Likewise.
1189         * lib/xprintf.h: Likewise.
1190         * lib/xvasprintf.h: Likewise.
1191         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1192
1193 2010-01-18  Bruno Haible  <bruno@clisp.org>
1194
1195         Tests for module 'tanl'.
1196         * modules/tanl-tests: New file.
1197         * tests/test-tanl.c: New file.
1198
1199         Tests for module 'sqrtl'.
1200         * modules/sqrtl-tests: New file.
1201         * tests/test-sqrtl.c: New file.
1202
1203         Tests for module 'sinl'.
1204         * modules/sinl-tests: New file.
1205         * tests/test-sinl.c: New file.
1206
1207         Tests for module 'logl'.
1208         * modules/logl-tests: New file.
1209         * tests/test-logl.c: New file.
1210
1211         Tests for module 'expl'.
1212         * modules/expl-tests: New file.
1213         * tests/test-expl.c: New file.
1214
1215         Tests for module 'cosl'.
1216         * modules/cosl-tests: New file.
1217         * tests/test-cosl.c: New file.
1218
1219         Tests for module 'atanl'.
1220         * modules/atanl-tests: New file.
1221         * tests/test-atanl.c: New file.
1222
1223         Tests for module 'asinl'.
1224         * modules/asinl-tests: New file.
1225         * tests/test-asinl.c: New file.
1226
1227         Tests for module 'acosl'.
1228         * modules/acosl-tests: New file.
1229         * tests/test-acosl.c: New file.
1230
1231         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
1232         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1233         tanl): Use the standard gnulib idiom.
1234         * lib/cosl.c: Don't include trigl.c and sincosl.c.
1235         * lib/sinl.c: Likewise.
1236         * lib/tanl.c: Don't include trigl.c.
1237         (kernel_tanl): Make static.
1238         * lib/sincosl.c: Include trigl.h first.
1239         * lib/trigl.c: Likewise.
1240         * m4/acosl.m4: New file.
1241         * m4/asinl.m4: New file.
1242         * m4/atanl.m4: New file.
1243         * m4/cosl.m4: New file.
1244         * m4/expl.m4: New file.
1245         * m4/logl.m4: New file.
1246         * m4/sinl.m4: New file.
1247         * m4/sqrtl.m4: New file.
1248         * m4/tanl.m4: New file.
1249         * m4/mathl.m4: Remove file.
1250         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
1251         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
1252         Don't initialize GNULIB_MATHL.
1253         * modules/acosl: New file.
1254         * modules/asinl: New file.
1255         * modules/atanl: New file.
1256         * modules/cosl: New file.
1257         * modules/expl: New file.
1258         * modules/logl: New file.
1259         * modules/sinl: New file.
1260         * modules/sqrtl: New file.
1261         * modules/tanl: New file.
1262         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
1263         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
1264         substitute GNULIB_MATHL.
1265         * modules/mathl: Rewritten.
1266         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
1267         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
1268         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
1269         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
1270         * doc/posix-functions/expl.texi: Mention the 'expl' module.
1271         * doc/posix-functions/logl.texi: Mention the 'logl' module.
1272         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
1273         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
1274         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
1275
1276 2010-01-18  Bruno Haible  <bruno@clisp.org>
1277
1278         sqrt: Make gl_FUNC_SQRT requirable.
1279         * m4/sqrt.m4: New file.
1280         * modules/sqrt (Files): Add it.
1281         (configure.ac): Invoke gl_FUNC_SQRT.
1282
1283 2010-01-18  Bruno Haible  <bruno@clisp.org>
1284
1285         New modules for common <math.h> functions.
1286         * m4/mathfunc.m4: New file.
1287         * modules/acos: New file.
1288         * modules/asin: New file.
1289         * modules/atan: New file.
1290         * modules/atan2: New file.
1291         * modules/cbrt: New file.
1292         * modules/copysign: New file.
1293         * modules/cos: New file.
1294         * modules/cosh: New file.
1295         * modules/erf: New file.
1296         * modules/erfc: New file.
1297         * modules/exp: New file.
1298         * modules/fabs: New file.
1299         * modules/fmod: New file.
1300         * modules/hypot: New file.
1301         * modules/j0: New file.
1302         * modules/j1: New file.
1303         * modules/jn: New file.
1304         * modules/ldexp: New file.
1305         * modules/lgamma: New file.
1306         * modules/log: New file.
1307         * modules/log10: New file.
1308         * modules/log1p: New file.
1309         * modules/logb: New file.
1310         * modules/modf: New file.
1311         * modules/nextafter: New file.
1312         * modules/pow: New file.
1313         * modules/remainder: New file.
1314         * modules/rint: New file.
1315         * modules/sin: New file.
1316         * modules/sinh: New file.
1317         * modules/sqrt: New file.
1318         * modules/tan: New file.
1319         * modules/tanh: New file.
1320         * modules/y0: New file.
1321         * modules/y1: New file.
1322         * modules/yn: New file.
1323         * doc/posix-functions/acos.texi: Mention the 'acos' module.
1324         * doc/posix-functions/asin.texi: Mention the 'asin' module.
1325         * doc/posix-functions/atan.texi: Mention the 'atan' module.
1326         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
1327         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
1328         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
1329         * doc/posix-functions/cos.texi: Mention the 'cos' module.
1330         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
1331         * doc/posix-functions/erf.texi: Mention the 'erf' module.
1332         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
1333         * doc/posix-functions/exp.texi: Mention the 'exp' module.
1334         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
1335         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
1336         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
1337         * doc/posix-functions/j0.texi: Mention the 'j0' module.
1338         * doc/posix-functions/j1.texi: Mention the 'j1' module.
1339         * doc/posix-functions/jn.texi: Mention the 'jn' module.
1340         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
1341         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
1342         * doc/posix-functions/log.texi: Mention the 'log' module.
1343         * doc/posix-functions/log10.texi: Mention the 'log10' module.
1344         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
1345         * doc/posix-functions/logb.texi: Mention the 'logb' module.
1346         * doc/posix-functions/modf.texi: Mention the 'modf' module.
1347         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
1348         * doc/posix-functions/pow.texi: Mention the 'pow' module.
1349         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
1350         * doc/posix-functions/rint.texi: Mention the 'rint' module.
1351         * doc/posix-functions/sin.texi: Mention the 'sin' module.
1352         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
1353         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
1354         * doc/posix-functions/tan.texi: Mention the 'tan' module.
1355         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
1356         * doc/posix-functions/y0.texi: Mention the 'y0' module.
1357         * doc/posix-functions/y1.texi: Mention the 'y1' module.
1358         * doc/posix-functions/yn.texi: Mention the 'yn' module.
1359
1360 2010-01-18  Jim Meyering  <meyering@redhat.com>
1361
1362         ignore-value: relax license to LGPLv2+
1363         * modules/ignore-value (License): Relax to LGPLv2+.
1364
1365         getdate: don't leak when TZ contains two or more '"'s
1366         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
1367         double quote in TZ after the first one.
1368
1369         readtokens: do not leak internal token_lengths buffer
1370         * lib/readtokens.c (readtokens): Free the local, lengths,
1371         when the supplied "token_lengths" parameter is NULL.
1372
1373 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1374
1375         Fix a couple of missing LIBTHREAD link failures on AIX.
1376         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
1377         $(LIBTHREAD).
1378         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
1379
1380         Link test-poll against INET_PTON_LIB.
1381         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
1382         for inet_pton on Solaris 10.
1383
1384 2010-01-17  Bruno Haible  <bruno@clisp.org>
1385
1386         unistdio/*-sprintf: Fix typo in module description.
1387         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
1388         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
1389         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
1390         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
1391         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
1392         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
1393         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
1394         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1395
1396 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1397
1398         gnulib-tool: fix filelist for AIX, HP-UX ksh.
1399         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
1400         variables in shell case patterns, for AIX and HP-UX ksh.
1401
1402         Split large sed scripts, for HP-UX sed.
1403         * modules/stdio: Split sed scripts around 50 sed commands,
1404         to avoid HP-UX limit of 99 commands, in the near future.
1405         * modules/string: Likewise.
1406         * modules/unistd: Likewise.
1407
1408         gnulib-tool: avoid writing in the current directory.
1409         * gnulib-tool (func_emit_lib_Makefile_am)
1410         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
1411         not in the current directory, so concurrent gnulib-tool
1412         instances do not interfere.
1413
1414 2010-01-16  Jim Meyering  <meyering@redhat.com>
1415
1416         doc: update users.txt
1417         * users.txt: Add grep.
1418         (diffutils, gzip): Update URLs.
1419
1420 2010-01-12  Bruno Haible  <bruno@clisp.org>
1421
1422         posix_spawn: Avoid test failure on Cygwin.
1423         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
1424         characters.
1425         Reported by Simon Josefsson.
1426
1427 2010-01-12  Bruno Haible  <bruno@clisp.org>
1428
1429         * tests/test-cond.c (main): When skipping the test, show the reason.
1430
1431 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1432
1433         * lib/striconv.c (str_cd_iconv): Avoid if before free.
1434
1435 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1436
1437         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
1438         VC_LIST_ALWAYS_EXCLUDE_REGEX.
1439
1440 2010-01-12  Eric Blake  <ebb9@byu.net>
1441
1442         build: guarantee AS_VAR_IF
1443         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
1444         (gl_AS_VAR_IF): Move...
1445         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
1446         Reported by Simon Josefsson.
1447
1448 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1449
1450         * lib/stdio.in.h: Fix typo.
1451
1452 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1453
1454         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
1455         libgpg-error.
1456
1457 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1458
1459         * tests/test-xalloc-die.sh: Use $EXEEXT.
1460
1461 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1462             Bruno Haible  <bruno@clisp.org>
1463
1464         getlogin, getlogin_r: Avoid test failure.
1465         * tests/test-getlogin.c: Include <stdio.h>.
1466         (main): Skip the test when the function fails because stdin is not a
1467         tty.
1468         * tests/test-getlogin_r.c: Include <stdio.h>.
1469         (main): Skip the test when the function fails because stdin is not a
1470         tty.
1471
1472 2010-01-11  Eric Blake  <ebb9@byu.net>
1473
1474         tests: avoid more large file warnings
1475         * tests/test-fflush.c: Avoid warning about ftell use.
1476         * tests/test-fseek.c: Avoid warning about fseek use.
1477
1478 2010-01-10  Bruno Haible  <bruno@clisp.org>
1479
1480         nproc: Work better on Linux when /proc and /sys are not mounted.
1481         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
1482         as lower bound when, on glibc/Linux systems,
1483         sysconf (_SC_NPROCESSORS_CONF) returns 1.
1484         Suggested by Pádraig Brady <P@draigbrady.com>.
1485         Reported by Dmitry V. Levin <ldv@altlinux.org>.
1486
1487         nproc: Refactor.
1488         * lib/nproc.c (num_processors_via_affinity_mask): New function,
1489         extracted from num_processors.
1490         (num_processors): Call it.
1491
1492 2010-01-11  Jim Meyering  <meyering@redhat.com>
1493
1494         utimecmp: avoid new warning from upcoming gcc-4.5.0
1495         * lib/utimecmp.c (BILLION): Define using #define rather than an
1496         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
1497
1498 2010-01-11  Eric Blake  <ebb9@byu.net>
1499
1500         math: add portability warnings for classification macros
1501         * modules/math (Depends-on): Add warn-on-use.
1502         (Makefile.am): Provide new substitutions.
1503         * m4/math_h.m4 (gl_MATH_H): Require inline.
1504         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
1505         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
1506         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
1507         implement warnings.
1508
1509         unistd: warn on use of environ without module
1510         * modules/unistd (Depends-on): Add warn-on-use.
1511         (Makefile.am): Provide new substitutions.
1512         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
1513         * lib/unistd.in.h (environ): Wrap with a warning helper function.
1514
1515         stdio: warn on suspicious uses
1516         * modules/stdio (Depends-on): Add warn-on-use.
1517         (Makefile.am): Provide new substitutions.
1518         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
1519         fseeko.
1520         * lib/stdio.in.h (gets): Always warn on use.
1521         (fseek, ftell): Adjust when warnings are issued, and honor
1522         _GL_NO_LARGE_FILES as a way to silence the warning.
1523         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
1524         any warning about large file offsets.
1525         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
1526         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
1527         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
1528         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
1529         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
1530         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
1531         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
1532         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
1533
1534         warn-on-use: new module
1535         * modules/warn-on-use: New file.
1536         * build-aux/warn-on-use.h: Likewise.
1537         * m4/warn-on-use.m4: Likewise.
1538         * MODULES.html.sh (Support for building): Mention it.
1539
1540 2010-01-10  Bruno Haible  <bruno@clisp.org>
1541
1542         Tests for module 'unistr/u32-strdup'.
1543         * modules/unistr/u32-strdup-tests: New file.
1544         * tests/unistr/test-u32-strdup.c: New file.
1545
1546         Tests for module 'unistr/u16-strdup'.
1547         * modules/unistr/u16-strdup-tests: New file.
1548         * tests/unistr/test-u16-strdup.c: New file.
1549
1550         Tests for module 'unistr/u8-strdup'.
1551         * modules/unistr/u8-strdup-tests: New file.
1552         * tests/unistr/test-u8-strdup.c: New file.
1553         * tests/unistr/test-strdup.h: New file.
1554
1555         Tests for module 'unistr/u32-strncmp'.
1556         * modules/unistr/u32-strncmp-tests: New file.
1557         * tests/unistr/test-u32-strncmp.c: New file.
1558
1559         Tests for module 'unistr/u16-strncmp'.
1560         * modules/unistr/u16-strncmp-tests: New file.
1561         * tests/unistr/test-u16-strncmp.c: New file.
1562
1563         Tests for module 'unistr/u8-strncmp'.
1564         * modules/unistr/u8-strncmp-tests: New file.
1565         * tests/unistr/test-u8-strncmp.c: New file.
1566         * tests/unistr/test-strncmp.h: New file.
1567
1568         Tests for module 'unistr/u32-strcoll'.
1569         * modules/unistr/u32-strcoll-tests: New file.
1570         * tests/unistr/test-u32-strcoll.c: New file.
1571
1572         Tests for module 'unistr/u16-strcoll'.
1573         * modules/unistr/u16-strcoll-tests: New file.
1574         * tests/unistr/test-u16-strcoll.c: New file.
1575
1576         Tests for module 'unistr/u8-strcoll'.
1577         * modules/unistr/u8-strcoll-tests: New file.
1578         * tests/unistr/test-u8-strcoll.c: New file.
1579
1580         Tests for module 'unistr/u32-strcmp'.
1581         * modules/unistr/u32-strcmp-tests: New file.
1582         * tests/unistr/test-u32-strcmp.c: New file.
1583         * tests/unistr/test-u32-strcmp.h: New file.
1584
1585         Tests for module 'unistr/u16-strcmp'.
1586         * modules/unistr/u16-strcmp-tests: New file.
1587         * tests/unistr/test-u16-strcmp.c: New file.
1588         * tests/unistr/test-u16-strcmp.h: New file.
1589
1590         Tests for module 'unistr/u8-strcmp'.
1591         * modules/unistr/u8-strcmp-tests: New file.
1592         * tests/unistr/test-u8-strcmp.c: New file.
1593         * tests/unistr/test-u8-strcmp.h: New file.
1594         * tests/unistr/test-strcmp.h: New file.
1595
1596         Tests for module 'unistr/u32-strncat'.
1597         * modules/unistr/u32-strncat-tests: New file.
1598         * tests/unistr/test-u32-strncat.c: New file.
1599
1600         Tests for module 'unistr/u16-strncat'.
1601         * modules/unistr/u16-strncat-tests: New file.
1602         * tests/unistr/test-u16-strncat.c: New file.
1603
1604         Tests for module 'unistr/u8-strncat'.
1605         * modules/unistr/u8-strncat-tests: New file.
1606         * tests/unistr/test-u8-strncat.c: New file.
1607         * tests/unistr/test-strncat.h: New file.
1608
1609         Tests for module 'unistr/u32-strcat'.
1610         * modules/unistr/u32-strcat-tests: New file.
1611         * tests/unistr/test-u32-strcat.c: New file.
1612
1613         Tests for module 'unistr/u16-strcat'.
1614         * modules/unistr/u16-strcat-tests: New file.
1615         * tests/unistr/test-u16-strcat.c: New file.
1616
1617         Tests for module 'unistr/u8-strcat'.
1618         * modules/unistr/u8-strcat-tests: New file.
1619         * tests/unistr/test-u8-strcat.c: New file.
1620         * tests/unistr/test-strcat.h: New file.
1621
1622         Tests for module 'unistr/u32-stpncpy'.
1623         * modules/unistr/u32-stpncpy-tests: New file.
1624         * tests/unistr/test-u32-stpncpy.c: New file.
1625
1626         Tests for module 'unistr/u16-stpncpy'.
1627         * modules/unistr/u16-stpncpy-tests: New file.
1628         * tests/unistr/test-u16-stpncpy.c: New file.
1629
1630         Tests for module 'unistr/u8-stpncpy'.
1631         * modules/unistr/u8-stpncpy-tests: New file.
1632         * tests/unistr/test-u8-stpncpy.c: New file.
1633         * tests/unistr/test-stpncpy.h: New file.
1634
1635         Tests for module 'unistr/u32-strncpy'.
1636         * modules/unistr/u32-strncpy-tests: New file.
1637         * tests/unistr/test-u32-strncpy.c: New file.
1638
1639         Tests for module 'unistr/u16-strncpy'.
1640         * modules/unistr/u16-strncpy-tests: New file.
1641         * tests/unistr/test-u16-strncpy.c: New file.
1642
1643         Tests for module 'unistr/u8-strncpy'.
1644         * modules/unistr/u8-strncpy-tests: New file.
1645         * tests/unistr/test-u8-strncpy.c: New file.
1646         * tests/unistr/test-strncpy.h: New file.
1647
1648         Tests for module 'unistr/u32-stpcpy'.
1649         * modules/unistr/u32-stpcpy-tests: New file.
1650         * tests/unistr/test-u32-stpcpy.c: New file.
1651
1652         Tests for module 'unistr/u16-stpcpy'.
1653         * modules/unistr/u16-stpcpy-tests: New file.
1654         * tests/unistr/test-u16-stpcpy.c: New file.
1655
1656         Tests for module 'unistr/u8-stpcpy'.
1657         * modules/unistr/u8-stpcpy-tests: New file.
1658         * tests/unistr/test-u8-stpcpy.c: New file.
1659         * tests/unistr/test-stpcpy.h: New file.
1660
1661         Tests for module 'unistr/u32-strcpy'.
1662         * modules/unistr/u32-strcpy-tests: New file.
1663         * tests/unistr/test-u32-strcpy.c: New file.
1664
1665         Tests for module 'unistr/u16-strcpy'.
1666         * modules/unistr/u16-strcpy-tests: New file.
1667         * tests/unistr/test-u16-strcpy.c: New file.
1668
1669         Tests for module 'unistr/u8-strcpy'.
1670         * modules/unistr/u8-strcpy-tests: New file.
1671         * tests/unistr/test-u8-strcpy.c: New file.
1672         * tests/unistr/test-strcpy.h: New file.
1673
1674         Tests for module 'unistr/u32-strnlen'.
1675         * modules/unistr/u32-strnlen-tests: New file.
1676         * tests/unistr/test-u32-strnlen.c: New file.
1677
1678         Tests for module 'unistr/u16-strnlen'.
1679         * modules/unistr/u16-strnlen-tests: New file.
1680         * tests/unistr/test-u16-strnlen.c: New file.
1681
1682         Tests for module 'unistr/u8-strnlen'.
1683         * modules/unistr/u8-strnlen-tests: New file.
1684         * tests/unistr/test-u8-strnlen.c: New file.
1685         * tests/unistr/test-strnlen.h: New file.
1686
1687         Tests for module 'unistr/u32-strlen'.
1688         * modules/unistr/u32-strlen-tests: New file.
1689         * tests/unistr/test-u32-strlen.c: New file.
1690
1691         Tests for module 'unistr/u16-strlen'.
1692         * modules/unistr/u16-strlen-tests: New file.
1693         * tests/unistr/test-u16-strlen.c: New file.
1694
1695         Tests for module 'unistr/u8-strlen'.
1696         * modules/unistr/u8-strlen-tests: New file.
1697         * tests/unistr/test-u8-strlen.c: New file.
1698
1699         Tests for module 'unistr/u32-prev'.
1700         * modules/unistr/u32-prev-tests: New file.
1701         * tests/unistr/test-u32-prev.c: New file.
1702
1703         Tests for module 'unistr/u16-prev'.
1704         * modules/unistr/u16-prev-tests: New file.
1705         * tests/unistr/test-u16-prev.c: New file.
1706
1707         Tests for module 'unistr/u8-prev'.
1708         * modules/unistr/u8-prev-tests: New file.
1709         * tests/unistr/test-u8-prev.c: New file.
1710
1711         Tests for module 'unistr/u32-next'.
1712         * modules/unistr/u32-next-tests: New file.
1713         * tests/unistr/test-u32-next.c: New file.
1714
1715         Tests for module 'unistr/u16-next'.
1716         * modules/unistr/u16-next-tests: New file.
1717         * tests/unistr/test-u16-next.c: New file.
1718
1719         Tests for module 'unistr/u8-next'.
1720         * modules/unistr/u8-next-tests: New file.
1721         * tests/unistr/test-u8-next.c: New file.
1722
1723         Tests for module 'unistr/u32-strmbtouc'.
1724         * modules/unistr/u32-strmbtouc-tests: New file.
1725         * tests/unistr/test-u32-strmbtouc.c: New file.
1726
1727         Tests for module 'unistr/u16-strmbtouc'.
1728         * modules/unistr/u16-strmbtouc-tests: New file.
1729         * tests/unistr/test-u16-strmbtouc.c: New file.
1730
1731         Tests for module 'unistr/u8-strmbtouc'.
1732         * modules/unistr/u8-strmbtouc-tests: New file.
1733         * tests/unistr/test-u8-strmbtouc.c: New file.
1734
1735         Tests for module 'unistr/u32-strmblen'.
1736         * modules/unistr/u32-strmblen-tests: New file.
1737         * tests/unistr/test-u32-strmblen.c: New file.
1738
1739         Tests for module 'unistr/u16-strmblen'.
1740         * modules/unistr/u16-strmblen-tests: New file.
1741         * tests/unistr/test-u16-strmblen.c: New file.
1742
1743         Tests for module 'unistr/u8-strmblen'.
1744         * modules/unistr/u8-strmblen-tests: New file.
1745         * tests/unistr/test-u8-strmblen.c: New file.
1746
1747         Tests for module 'unistr/u32-cpy-alloc'.
1748         * modules/unistr/u32-cpy-alloc-tests: New file.
1749         * tests/unistr/test-u32-cpy-alloc.c: New file.
1750
1751         Tests for module 'unistr/u16-cpy-alloc'.
1752         * modules/unistr/u16-cpy-alloc-tests: New file.
1753         * tests/unistr/test-u16-cpy-alloc.c: New file.
1754
1755         Tests for module 'unistr/u8-cpy-alloc'.
1756         * modules/unistr/u8-cpy-alloc-tests: New file.
1757         * tests/unistr/test-u8-cpy-alloc.c: New file.
1758         * tests/unistr/test-cpy-alloc.h: New file.
1759
1760         Tests for module 'unistr/u32-mbsnlen'.
1761         * modules/unistr/u32-mbsnlen-tests: New file.
1762         * tests/unistr/test-u32-mbsnlen.c: New file.
1763
1764         Tests for module 'unistr/u16-mbsnlen'.
1765         * modules/unistr/u16-mbsnlen-tests: New file.
1766         * tests/unistr/test-u16-mbsnlen.c: New file.
1767
1768         Tests for module 'unistr/u8-mbsnlen'.
1769         * modules/unistr/u8-mbsnlen-tests: New file.
1770         * tests/unistr/test-u8-mbsnlen.c: New file.
1771
1772         Tests for module 'unistr/u32-chr'.
1773         * modules/unistr/u32-chr-tests: New file.
1774         * tests/unistr/test-u32-chr.c: New file.
1775
1776         Tests for module 'unistr/u16-chr'.
1777         * modules/unistr/u16-chr-tests: New file.
1778         * tests/unistr/test-u16-chr.c: New file.
1779
1780         Tests for module 'unistr/u8-chr'.
1781         * modules/unistr/u8-chr-tests: New file.
1782         * tests/unistr/test-u8-chr.c: New file.
1783         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
1784
1785         Tests for module 'unistr/u32-cmp2'.
1786         * modules/unistr/u32-cmp2-tests: New file.
1787         * tests/unistr/test-u32-cmp2.c: New file.
1788
1789         Tests for module 'unistr/u16-cmp2'.
1790         * modules/unistr/u16-cmp2-tests: New file.
1791         * tests/unistr/test-u16-cmp2.c: New file.
1792
1793         Tests for module 'unistr/u8-cmp2'.
1794         * modules/unistr/u8-cmp2-tests: New file.
1795         * tests/unistr/test-u8-cmp2.c: New file.
1796         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
1797
1798         Tests for module 'unistr/u32-cmp'.
1799         * modules/unistr/u32-cmp-tests: New file.
1800         * tests/unistr/test-u32-cmp.c: New file.
1801
1802         Tests for module 'unistr/u16-cmp'.
1803         * modules/unistr/u16-cmp-tests: New file.
1804         * tests/unistr/test-u16-cmp.c: New file.
1805
1806         Tests for module 'unistr/u8-cmp'.
1807         * modules/unistr/u8-cmp-tests: New file.
1808         * tests/unistr/test-u8-cmp.c: New file.
1809         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
1810
1811         Tests for module 'unistr/u32-set'.
1812         * modules/unistr/u32-set-tests: New file.
1813         * tests/unistr/test-u32-set.c: New file.
1814
1815         Tests for module 'unistr/u16-set'.
1816         * modules/unistr/u16-set-tests: New file.
1817         * tests/unistr/test-u16-set.c: New file.
1818
1819         Tests for module 'unistr/u8-set'.
1820         * modules/unistr/u8-set-tests: New file.
1821         * tests/unistr/test-u8-set.c: New file.
1822         * tests/unistr/test-set.h: New file.
1823
1824         Tests for module 'unistr/u32-move'.
1825         * modules/unistr/u32-move-tests: New file.
1826         * tests/unistr/test-u32-move.c: New file.
1827
1828         Tests for module 'unistr/u16-move'.
1829         * modules/unistr/u16-move-tests: New file.
1830         * tests/unistr/test-u16-move.c: New file.
1831
1832         Tests for module 'unistr/u8-move'.
1833         * modules/unistr/u8-move-tests: New file.
1834         * tests/unistr/test-u8-move.c: New file.
1835         * tests/unistr/test-move.h: New file.
1836
1837         Tests for module 'unistr/u32-cpy'.
1838         * modules/unistr/u32-cpy-tests: New file.
1839         * tests/unistr/test-u32-cpy.c: New file.
1840
1841         Tests for module 'unistr/u16-cpy'.
1842         * modules/unistr/u16-cpy-tests: New file.
1843         * tests/unistr/test-u16-cpy.c: New file.
1844
1845         Tests for module 'unistr/u8-cpy'.
1846         * modules/unistr/u8-cpy-tests: New file.
1847         * tests/unistr/test-u8-cpy.c: New file.
1848         * tests/unistr/test-cpy.h: New file.
1849
1850 2010-01-09  Bruno Haible  <bruno@clisp.org>
1851
1852         Tests for module 'unistr/u32-uctomb'.
1853         * modules/unistr/u32-uctomb-tests: New file.
1854         * tests/unistr/test-u32-uctomb.c: New file.
1855
1856         Tests for module 'unistr/u16-uctomb'.
1857         * modules/unistr/u16-uctomb-tests: New file.
1858         * tests/unistr/test-u16-uctomb.c: New file.
1859
1860         Tests for module 'unistr/u8-uctomb'.
1861         * modules/unistr/u8-uctomb-tests: New file.
1862         * tests/unistr/test-u8-uctomb.c: New file.
1863
1864         Tests for module 'unistr/u32-mbtoucr'.
1865         * modules/unistr/u32-mbtoucr-tests: New file.
1866         * tests/unistr/test-u32-mbtoucr.c: New file.
1867
1868         Tests for module 'unistr/u16-mbtoucr'.
1869         * modules/unistr/u16-mbtoucr-tests: New file.
1870         * tests/unistr/test-u16-mbtoucr.c: New file.
1871
1872         Tests for module 'unistr/u8-mbtoucr'.
1873         * modules/unistr/u8-mbtoucr-tests: New file.
1874         * tests/unistr/test-u8-mbtoucr.c: New file.
1875
1876         Tests for module 'unistr/u32-mbtouc'.
1877         * modules/unistr/u32-mbtouc-tests: New file.
1878         * tests/unistr/test-u32-mbtouc.c: New file.
1879
1880         Tests for module 'unistr/u16-mbtouc'.
1881         * modules/unistr/u16-mbtouc-tests: New file.
1882         * tests/unistr/test-u16-mbtouc.c: New file.
1883
1884         Tests for module 'unistr/u8-mbtouc'.
1885         * modules/unistr/u8-mbtouc-tests: New file.
1886         * tests/unistr/test-u8-mbtouc.c: New file.
1887
1888         Tests for module 'unistr/u32-mbtouc-unsafe'.
1889         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
1890         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
1891         * tests/unistr/test-u32-mbtouc.h: New file.
1892
1893         Tests for module 'unistr/u16-mbtouc-unsafe'.
1894         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
1895         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
1896         * tests/unistr/test-u16-mbtouc.h: New file.
1897
1898         Tests for module 'unistr/u8-mbtouc-unsafe'.
1899         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
1900         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
1901         * tests/unistr/test-u8-mbtouc.h: New file.
1902
1903         Tests for module 'unistr/u32-mblen'.
1904         * modules/unistr/u32-mblen-tests: New file.
1905         * tests/unistr/test-u32-mblen.c: New file.
1906
1907         Tests for module 'unistr/u16-mblen'.
1908         * modules/unistr/u16-mblen-tests: New file.
1909         * tests/unistr/test-u16-mblen.c: New file.
1910
1911         Tests for module 'unistr/u8-mblen'.
1912         * modules/unistr/u8-mblen-tests: New file.
1913         * tests/unistr/test-u8-mblen.c: New file.
1914
1915         Tests for module 'unistr/u32-to-u16'.
1916         * modules/unistr/u32-to-u16-tests: New file.
1917         * tests/unistr/test-u32-to-u16.c: New file.
1918
1919         Tests for module 'unistr/u32-to-u8'.
1920         * modules/unistr/u32-to-u8-tests: New file.
1921         * tests/unistr/test-u32-to-u8.c: New file.
1922
1923         Tests for module 'unistr/u16-to-u32'.
1924         * modules/unistr/u16-to-u32-tests: New file.
1925         * tests/unistr/test-u16-to-u32.c: New file.
1926
1927         Tests for module 'unistr/u16-to-u8'.
1928         * modules/unistr/u16-to-u8-tests: New file.
1929         * tests/unistr/test-u16-to-u8.c: New file.
1930
1931         Tests for module 'unistr/u8-to-u32'.
1932         * modules/unistr/u8-to-u32-tests: New file.
1933         * tests/unistr/test-u8-to-u32.c: New file.
1934
1935         Tests for module 'unistr/u8-to-u16'.
1936         * modules/unistr/u8-to-u16-tests: New file.
1937         * tests/unistr/test-u8-to-u16.c: New file.
1938
1939         Tests for module 'unistr/u32-check'.
1940         * modules/unistr/u32-check-tests: New file.
1941         * tests/unistr/test-u32-check.c: New file.
1942
1943         Tests for module 'unistr/u16-check'.
1944         * modules/unistr/u16-check-tests: New file.
1945         * tests/unistr/test-u16-check.c: New file.
1946
1947         Tests for module 'unistr/u8-check'.
1948         * modules/unistr/u8-check-tests: New file.
1949         * tests/unistr/test-u8-check.c: New file.
1950
1951         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
1952         (category_equals): New function.
1953         (main): Add more tests.
1954         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
1955
1956         * tests/unictype/test-bidi_byname.c (main): Add more tests.
1957
1958 2010-01-10  Bruno Haible  <bruno@clisp.org>
1959
1960         unistr/u*-strcoll: Try harder to distinguish different strings.
1961         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
1962         compare s1 and s2 to see if they are different.
1963
1964 2010-01-10  Bruno Haible  <bruno@clisp.org>
1965
1966         unistr/u*-stpncpy: Fix the return value.
1967         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
1968         description of the return value consistent with stpncpy in glibc.
1969         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
1970         written non-NUL unit.
1971
1972 2010-01-10  Bruno Haible  <bruno@clisp.org>
1973
1974         unistr/u*-next: Add missing dependencies.
1975         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
1976         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
1977         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
1978
1979 2010-01-10  Bruno Haible  <bruno@clisp.org>
1980
1981         unistr/u8-mbsnlen: Fix return value for incomplete character.
1982         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
1983         u8_mblen.
1984         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
1985         Remove unistr/u8-mblen.
1986         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
1987         u16_mblen.
1988         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
1989         Remove unistr/u16-mblen.
1990
1991 2010-01-10  Bruno Haible  <bruno@clisp.org>
1992
1993         wchar: Fix compilation error when <wchar.h> is used from coreutils.
1994         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
1995         Reported by Brian Gough <bjg@gnu.org> and
1996         Chris Clayton <chris2553@googlemail.com> via
1997         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
1998
1999 2010-01-09  Bruno Haible  <bruno@clisp.org>
2000
2001         unistr/u16-to-u32: Reject invalid input.
2002         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
2003         u16_mbtouc.
2004         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
2005         Remove unistr/u16-mbtouc.
2006
2007         unistr/u16-to-u8: Reject invalid input.
2008         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
2009         u16_mbtouc.
2010         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
2011         Remove unistr/u16-mbtouc.
2012
2013         unistr/u8-to-u32: Reject invalid input.
2014         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
2015         u8_mbtouc.
2016         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
2017         Remove unistr/u8-mbtouc.
2018
2019         unistr/u8-to-u16: Reject invalid input.
2020         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
2021         u8_mbtouc.
2022         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
2023         Remove unistr/u8-mbtouc.
2024
2025 2010-01-09  Bruno Haible  <bruno@clisp.org>
2026
2027         Tests for module 'getlogin'.
2028         * modules/getlogin-tests: New file.
2029         * tests/test-getlogin.c: New file.
2030
2031         New module 'getlogin'.
2032         * lib/unistd.in.h (getlogin): New declaration.
2033         * lib/getlogin.c: New file.
2034         * m4/getlogin.m4: New file.
2035         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
2036         HAVE_GETLOGIN.
2037         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
2038         HAVE_GETLOGIN.
2039         * modules/getlogin: New file.
2040         * doc/posix-functions/getlogin.texi: Mention the new module.
2041         Reported by John W. Eaton <jwe@gnu.org>.
2042
2043 2010-01-09  Bruno Haible  <bruno@clisp.org>
2044
2045         getlogin_r: Support for native Windows.
2046         * lib/getlogin_r.c: Include <windows.h>
2047         (getlogin_r): Implement for native Windows.
2048         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
2049         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
2050         via John W. Eaton <jwe@gnu.org>.
2051
2052 2010-01-09  Bruno Haible  <bruno@clisp.org>
2053
2054         getlogin_r: Small fixes.
2055         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
2056         succeeds.
2057         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
2058         before testing whether getlogin_r is declared. No need to set
2059         HAVE_DECL_GETLOGIN_R to 1.
2060         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
2061
2062 2010-01-09  Bruno Haible  <bruno@clisp.org>
2063
2064         * lib/unistd.in.h (getlogin_r): Add comment.
2065
2066 2010-01-09  Bruno Haible  <bruno@clisp.org>
2067
2068         Tests for module 'getlogin_r'.
2069         * modules/getlogin_r-tests: New file.
2070         * tests/test-getlogin_r.c: New file.
2071
2072 2010-01-09  Jim Meyering  <meyering@redhat.com>
2073
2074         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
2075         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
2076         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
2077
2078 2010-01-08  Simon Josefsson  <simon@josefsson.org>
2079
2080         * lib/dup2.c (rpl_dup2): Improve comment.
2081
2082 2010-01-08  Eric Blake  <ebb9@byu.net>
2083
2084         maint.mk: allow packages to add makefile @@ exceptions
2085         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
2086         (sc_makefile_check): Rename...
2087         (sc_makefile_at_at_check): ...to this, and use hook.
2088
2089         dup2: work around mingw bug
2090         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
2091         Reported by Simon Josefsson.
2092
2093 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
2094
2095         glob: Fix C++ compilation.
2096         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
2097         C++.
2098
2099 2010-01-07  Bruno Haible  <bruno@clisp.org>
2100
2101         Fix indentation of wctype.in.h, broken since 2007-01-06.
2102         * lib/wctype.in.h: Fix indentation of preprocessor directives.
2103
2104 2010-01-07  Bruno Haible  <bruno@clisp.org>
2105
2106         mbslen: Avoid collision with system function.
2107         * lib/string.in.h [MirBSD]: Include <wchar.h>.
2108         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
2109         * m4/mbslen.m4: New file.
2110         * modules/mbslen (Files): Add it.
2111         (configure.ac): Invoke gl_MBSLEN.
2112         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
2113         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
2114         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
2115         via Ian Beckwith <ianb@erislabs.net>.
2116
2117 2010-01-07  Bruno Haible  <bruno@clisp.org>
2118
2119         dirent: Document the last fix.
2120         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
2121
2122 2010-01-07  Bruno Haible  <bruno@clisp.org>
2123
2124         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
2125         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
2126         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
2127         va_list are defined.
2128         * doc/posix-headers/stdio.texi: Document the bug of missing types.
2129         Reported by Eric Blake.
2130
2131 2010-01-07  Bruno Haible  <bruno@clisp.org>
2132
2133         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
2134         * modules/xlist (Depends-on): Add 'list',
2135         * modules/xoset (Depends-on): Add 'oset'.
2136         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2137
2138 2010-01-07  Bruno Haible  <bruno@clisp.org>
2139
2140         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
2141         * doc/posix-functions/strncasecmp.texi: Likewise.
2142
2143 2010-01-07  Bruno Haible  <bruno@clisp.org>
2144
2145         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
2146
2147 2010-01-07  John W. Eaton  <jwe@octave.org>
2148
2149         wctype: allow C++ use
2150         * lib/wctype.in.h: Add extern "C" block for C++.
2151
2152 2010-01-06  Eric Blake  <ebb9@byu.net>
2153
2154         maint.mk: detect incorrect GFDL usage
2155         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
2156
2157 2010-01-06  Jim Meyering  <meyering@redhat.com>
2158         and Eric Blake  <ebb9@byu.net>
2159
2160         maint.mk: ignore multi-line copyright in NEWS
2161         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
2162
2163 2010-01-06  Eric Blake  <ebb9@byu.net>
2164
2165         select: add missing dependency
2166         * modules/select-tests (Depends-on): Move sockets dependency...
2167         * modules/select (Depends-on): ...here.
2168         Reported by Ian Beckwith.
2169
2170         doc: regenerate INSTALL
2171         * doc/INSTALL: Reflect recent autoconf update.
2172         * doc/INSTALL.ISO: Likewise.
2173         * doc/INSTALL.UTF-8: Likewise.
2174
2175         pread: fix compilation on glibc
2176         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
2177         Reported by Ralf Wildenhues.
2178
2179         dirent: fix test failure
2180         * lib/dirent.in.h (includes): Guarantee ino_t.
2181         Reported by Ralf Wildenhues.
2182
2183 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
2184
2185         linkat, renameat: avoid bad free
2186         * lib/at-func2.c (at_func2): Fix typo.
2187         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
2188
2189 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2190
2191         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
2192         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
2193         to avoid failure of symlink test later.
2194
2195 2010-01-06  Eric Blake  <ebb9@byu.net>
2196
2197         stdio, unistd: guarantee ssize_t
2198         * lib/unistd.in.h (includes): Ensure that types required by POSIX
2199         2008 are exposed when needed.
2200         * lib/stdio.in.h (includes): Likewise.
2201         Reported by Ralf Wildenhues.
2202
2203 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
2204
2205         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
2206         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
2207         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
2208
2209 2010-01-06  Jim Meyering  <meyering@redhat.com>
2210
2211         readtokens: this module *does* require xalloc.h
2212         It uses only functions that were omitted by the old syntax-check rule.
2213         * lib/readtokens.c: Include "xalloc.h" once again.
2214         * modules/readtokens (Depends-on): Add xalloc.
2215         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
2216
2217 2010-01-05  Eric Blake  <ebb9@byu.net>
2218
2219         maint: support 'make announcement' from a VPATH build
2220         * top/maint.mk (announcement): Look for correct NEWS file.
2221
2222 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
2223
2224         utimens (fdutimens): ignore a negative FD, per contract
2225         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
2226         when we have a valid file descriptor.  Otherwise, using a brand
2227         new glibc (with just-patched futimens that now fails with EBADF)
2228         would cause this function to fail with ENOSYS.
2229         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
2230         See also http://bugzilla.redhat.com/552320.
2231
2232 2010-01-05  Eric Blake  <ebb9@byu.net>
2233
2234         strcase: document what it provides
2235         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
2236         gnulib module.
2237         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
2238         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
2239
2240 2010-01-05  Jim Meyering  <meyering@redhat.com>
2241
2242         maint: remove useless inclusions of "xalloc.h"
2243         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
2244         * lib/readtokens.c: Likewise.
2245         * lib/same.c: Likewise.
2246         * modules/getloadavg (Depends-on): Remove xalloc.
2247         * modules/readtokens: Likewise.
2248         * modules/same: Likewise.
2249
2250         maint.mk: include 4 more function names in alloca.h-checking regexp
2251         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
2252         regexp.  Before, we would give a false-positive (saying alloca.h
2253         is included unnecessarily) when the only uses involved omitted symbols.
2254
2255         xalloc.h: use consistent formatting
2256         * lib/xalloc.h: Move declarations to start in the first column.
2257
2258 2010-01-05  Eric Blake  <ebb9@byu.net>
2259
2260         mkdir: avoid xalloc
2261         * lib/mkdir.c (includes): Drop unused header.
2262         Reported by John W. Eaton.
2263
2264 2010-01-04  Jim Meyering  <meyering@redhat.com>
2265
2266         nl_langinfo: avoid configure-time syntax error
2267         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
2268         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
2269         the empty string.  Don't let that provoke a shell syntax error.
2270
2271         regcomp, regexec, fnmatch: avoid array bounds read error
2272         * lib/regcomp.c (build_equiv_class): From glibc:
2273         Use only the low 24 bits of a findidx return value as an index
2274         into the weights array.  Patch by Ulrich Drepper:
2275         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
2276         * lib/regexec.c (check_node_accept_bytes): Likewise.
2277         * lib/fnmatch_loop.c (FCT): Likewise.
2278
2279         regcomp: skip collseq lookup when there are no rules
2280         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
2281         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
2282
2283         regcomp: recognize ill-formed { } expressions
2284         * lib/regcomp.c (parse_dup_op): From glibc:
2285         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
2286
2287         regcomp: fix typo in comment
2288         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
2289         s/satisfy/satisfies/.
2290
2291         regcomp: sync from glibc: remove dead store
2292         * lib/regcomp.c (duplicate_node_closure): Remove useless
2293         search_duplicated_node call and dead store.
2294
2295         regcomp: sync from glibc; always use nl_langinfo
2296         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
2297         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
2298         * modules/regex (Depends-on): Add nl_langinfo.
2299
2300 2010-01-04  Eric Blake  <ebb9@byu.net>
2301
2302         fdopendir: fix configure test
2303         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
2304
2305 2010-01-01  Bruno Haible  <bruno@clisp.org>
2306
2307         wchar: Remove unused configure check.
2308         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
2309
2310 2010-01-01  Eric Blake  <ebb9@byu.net>
2311
2312         headers: make check of system header explicit
2313         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
2314         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
2315         ourselves.
2316         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2317         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2318         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
2319         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
2320         internals.
2321         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
2322         missing.
2323         Suggested by Bruno Haible.
2324
2325 2010-01-01  Jim Meyering  <meyering@redhat.com>
2326
2327         ChangeLog: tweak to eliminate unnecessary copyright line
2328         * ChangeLog: Remove a copyright line that was mistakenly updated
2329         by today's update-copyright run.  Reported by Eric Blake.
2330
2331         test-update-copyright: don't let envvar setting cause test failure
2332         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
2333
2334 2010-01-01  Bruno Haible  <bruno@clisp.org>
2335
2336         localename: Avoid gcc warning.
2337         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
2338         function if it is not used.
2339
2340 2010-01-01  Jim Meyering  <meyering@redhat.com>
2341
2342         update nearly all FSF copyright year lists to include 2010
2343         Use the same procedure as for 2009, outlined in
2344         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
2345
2346         version-etc: set COPYRIGHT_YEAR to 2010
2347         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
2348
2349 2009-12-31  Eric Blake  <ebb9@byu.net>
2350
2351         doc: correct availability of cygwin 1.5.x getopt
2352         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
2353         variables.
2354         * doc/posix-functions/opterr.texi (opterr): Likewise.
2355         * doc/posix-functions/optind.texi (optind): Likewise.
2356         * doc/posix-functions/optopt.texi (optopt): Likewise.
2357         * doc/posix-functions/tzname.texi (tzname): Likewise.
2358
2359         openat: update maintainer
2360         * modules/openat (Maintainer): Add myself.
2361
2362         utimens: avoid shadowing warning
2363         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
2364         buffers into one, to avoid shadowing, as well as avoiding a
2365         redundant stat.
2366         Reported by Jim Meyering.
2367
2368         test-dup2: avoid compiler warning
2369         * tests/test-dup2.c (is_inheritable): Only define if used.
2370
2371 2010-01-01  Bruno Haible  <bruno@clisp.org>
2372
2373         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
2374         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
2375         defined, use wctomb instead of wcrtomb.
2376
2377 2010-01-01  Bruno Haible  <bruno@clisp.org>
2378
2379         iconv: Reject native Solaris iconv.
2380         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
2381         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
2382
2383 2009-12-31  Bruno Haible  <bruno@clisp.org>
2384
2385         * tests/test-signal.c (main): Remove test of 'SIG'.
2386
2387 2009-12-31  Bruno Haible  <bruno@clisp.org>
2388
2389         spawn: Fix incomplete fix.
2390         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
2391         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
2392         warnings for GNULIB_POSIXCHECK again.
2393         Reported by Eric Blake.
2394
2395 2009-12-31  Bruno Haible  <bruno@clisp.org>
2396
2397         Avoid namespace pollution on glibc systems.
2398         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
2399         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
2400         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
2401         glibc systems.
2402
2403 2009-12-31  Bruno Haible  <bruno@clisp.org>
2404
2405         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
2406         (gl_REPLACE_WCHAR_H): Turn into a no-op.
2407         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
2408         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
2409         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
2410         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
2411         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
2412
2413 2009-12-31  Bruno Haible  <bruno@clisp.org>
2414
2415         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
2416         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
2417         afterwards.
2418
2419 2009-12-31  Bruno Haible  <bruno@clisp.org>
2420
2421         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
2422         SYS_UTSNAME_H.
2423
2424 2009-12-31  Bruno Haible  <bruno@clisp.org>
2425
2426         spawn: Fix misapplied patch.
2427         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
2428         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
2429         warnings for GNULIB_POSIXCHECK.
2430
2431 2009-12-31  Bruno Haible  <bruno@clisp.org>
2432
2433         times: Update after sys_times changed.
2434         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
2435         * modules/times (Files): Add it.
2436         (configure.ac): Invoke gl_FUNC_TIMES.
2437
2438 2009-12-31  Bruno Haible  <bruno@clisp.org>
2439
2440         Use AC_C_INLINE where necessary.
2441         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
2442         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
2443         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
2444         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
2445         * m4/mbfile.m4 (gl_MBFILE): Likewise.
2446         * m4/mbiter.m4 (gl_MBITER): Likewise.
2447         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2448         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2449         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
2450         * modules/u64 (configure.ac): Likewise.
2451
2452 2009-12-31  Bruno Haible  <bruno@clisp.org>
2453
2454         Use AC_C_INLINE instead of module 'inline' where possible.
2455         * modules/inline (Description): Clarify purpose.
2456         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
2457         * modules/count-one-bits (Depends-on): Remove inline.
2458         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
2459         * modules/openat (Depends-on): Remove inline.
2460         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
2461         instead of depending on module 'inline'.
2462         * modules/filevercmp (Depends-on, configure.ac): Likewise.
2463         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
2464         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
2465         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
2466         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
2467         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
2468         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
2469         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
2470         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
2471         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
2472         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
2473         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
2474         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
2475         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
2476         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
2477         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
2478         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
2479         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
2480         Likewise.
2481         * modules/unictype/property-ascii-hex-digit (Depends-on,
2482         configure.ac): Likewise.
2483         * modules/unictype/property-bidi-arabic-digit (Depends-on,
2484         configure.ac): Likewise.
2485         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
2486         configure.ac): Likewise.
2487         * modules/unictype/property-bidi-block-separator (Depends-on,
2488         configure.ac): Likewise.
2489         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
2490         configure.ac): Likewise.
2491         * modules/unictype/property-bidi-common-separator (Depends-on,
2492         configure.ac): Likewise.
2493         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
2494         Likewise.
2495         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
2496         configure.ac): Likewise.
2497         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
2498         configure.ac): Likewise.
2499         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
2500         configure.ac): Likewise.
2501         * modules/unictype/property-bidi-european-digit (Depends-on,
2502         configure.ac): Likewise.
2503         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
2504         configure.ac): Likewise.
2505         * modules/unictype/property-bidi-left-to-right (Depends-on,
2506         configure.ac): Likewise.
2507         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
2508         configure.ac): Likewise.
2509         * modules/unictype/property-bidi-other-neutral (Depends-on,
2510         configure.ac): Likewise.
2511         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
2512         Likewise.
2513         * modules/unictype/property-bidi-segment-separator (Depends-on,
2514         configure.ac): Likewise.
2515         * modules/unictype/property-bidi-whitespace (Depends-on,
2516         configure.ac): Likewise.
2517         * modules/unictype/property-combining (Depends-on, configure.ac):
2518         Likewise.
2519         * modules/unictype/property-composite (Depends-on, configure.ac):
2520         Likewise.
2521         * modules/unictype/property-currency-symbol (Depends-on,
2522         configure.ac): Likewise.
2523         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
2524         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
2525         Likewise.
2526         * modules/unictype/property-default-ignorable-code-point (Depends-on,
2527         configure.ac): Likewise.
2528         * modules/unictype/property-deprecated (Depends-on, configure.ac):
2529         Likewise.
2530         * modules/unictype/property-diacritic (Depends-on, configure.ac):
2531         Likewise.
2532         * modules/unictype/property-extender (Depends-on, configure.ac):
2533         Likewise.
2534         * modules/unictype/property-format-control (Depends-on, configure.ac):
2535         Likewise.
2536         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
2537         Likewise.
2538         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
2539         Likewise.
2540         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
2541         Likewise.
2542         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
2543         Likewise.
2544         * modules/unictype/property-hyphen (Depends-on, configure.ac):
2545         Likewise.
2546         * modules/unictype/property-id-continue (Depends-on, configure.ac):
2547         Likewise.
2548         * modules/unictype/property-id-start (Depends-on, configure.ac):
2549         Likewise.
2550         * modules/unictype/property-ideographic (Depends-on, configure.ac):
2551         Likewise.
2552         * modules/unictype/property-ids-binary-operator (Depends-on,
2553         configure.ac): Likewise.
2554         * modules/unictype/property-ids-trinary-operator (Depends-on,
2555         configure.ac): Likewise.
2556         * modules/unictype/property-ignorable-control (Depends-on,
2557         configure.ac): Likewise.
2558         * modules/unictype/property-iso-control (Depends-on, configure.ac):
2559         Likewise.
2560         * modules/unictype/property-join-control (Depends-on, configure.ac):
2561         Likewise.
2562         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
2563         Likewise.
2564         * modules/unictype/property-line-separator (Depends-on, configure.ac):
2565         Likewise.
2566         * modules/unictype/property-logical-order-exception (Depends-on,
2567         configure.ac): Likewise.
2568         * modules/unictype/property-lowercase (Depends-on, configure.ac):
2569         Likewise.
2570         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
2571         * modules/unictype/property-non-break (Depends-on, configure.ac):
2572         Likewise.
2573         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
2574         Likewise.
2575         * modules/unictype/property-numeric (Depends-on, configure.ac):
2576         Likewise.
2577         * modules/unictype/property-other-alphabetic (Depends-on,
2578         configure.ac): Likewise.
2579         * modules/unictype/property-other-default-ignorable-code-point
2580         (Depends-on, configure.ac): Likewise.
2581         * modules/unictype/property-other-grapheme-extend (Depends-on,
2582         configure.ac): Likewise.
2583         * modules/unictype/property-other-id-continue (Depends-on,
2584         configure.ac): Likewise.
2585         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
2586         Likewise.
2587         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
2588         Likewise.
2589         * modules/unictype/property-other-math (Depends-on, configure.ac):
2590         Likewise.
2591         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
2592         Likewise.
2593         * modules/unictype/property-paired-punctuation (Depends-on,
2594         configure.ac): Likewise.
2595         * modules/unictype/property-paragraph-separator (Depends-on,
2596         configure.ac): Likewise.
2597         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
2598         Likewise.
2599         * modules/unictype/property-pattern-white-space (Depends-on,
2600         configure.ac): Likewise.
2601         * modules/unictype/property-private-use (Depends-on, configure.ac):
2602         Likewise.
2603         * modules/unictype/property-punctuation (Depends-on, configure.ac):
2604         Likewise.
2605         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
2606         Likewise.
2607         * modules/unictype/property-radical (Depends-on, configure.ac):
2608         Likewise.
2609         * modules/unictype/property-sentence-terminal (Depends-on,
2610         configure.ac): Likewise.
2611         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
2612         Likewise.
2613         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
2614         * modules/unictype/property-terminal-punctuation (Depends-on,
2615         configure.ac): Likewise.
2616         * modules/unictype/property-titlecase (Depends-on, configure.ac):
2617         Likewise.
2618         * modules/unictype/property-unassigned-code-value (Depends-on,
2619         configure.ac): Likewise.
2620         * modules/unictype/property-unified-ideograph (Depends-on,
2621         configure.ac): Likewise.
2622         * modules/unictype/property-uppercase (Depends-on, configure.ac):
2623         Likewise.
2624         * modules/unictype/property-variation-selector (Depends-on,
2625         configure.ac): Likewise.
2626         * modules/unictype/property-white-space (Depends-on, configure.ac):
2627         Likewise.
2628         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
2629         Likewise.
2630         * modules/unictype/property-xid-start (Depends-on, configure.ac):
2631         Likewise.
2632         * modules/unictype/property-zero-width (Depends-on, configure.ac):
2633         Likewise.
2634         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
2635         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
2636         Likewise.
2637
2638 2009-12-31  Bruno Haible  <bruno@clisp.org>
2639
2640         Remove unnecessary AC_C_INLINE invocation.
2641         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
2642         since 2009-08-21.
2643
2644 2009-12-31  Jim Meyering  <meyering@redhat.com>
2645
2646         maint.mk: don't require explicit gpg_key_ID in cfg.mk
2647         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
2648         With this change, we can all remove the gpg_key_ID = ... definition
2649         from our respective cfg.mk files.
2650
2651         maint.mk: create announcement template in ~/, not in /tmp
2652         * top/maint.mk (emit_upload_commands): Adjust.
2653         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
2654         Remove temporary file, .ci-msg.
2655
2656 2009-12-31  Eric Blake  <ebb9@byu.net>
2657
2658         link-warning: always build headers with link warnings
2659         * modules/arpa_inet (Makefile.am): Always build replacement
2660         header.
2661         * modules/ctype (Makefile.am): Likewise.
2662         * modules/dirent (Makefile.am): Likewise.
2663         * modules/inttypes (Makefile.am): Likewise.
2664         * modules/langinfo (Makefile.am): Likewise.
2665         * modules/locale (Makefile.am): Likewise.
2666         * modules/spawn (Makefile.am): Likewise.
2667         * modules/sys_file (Makefile.am): Likewise.
2668         * modules/sys_ioctl (Makefile.am): Likewise.
2669         * modules/sys_select (Makefile.am): Likewise.
2670         * modules/sys_socket (Makefile.am): Likewise.
2671         * modules/sys_times (Makefile.am): Likewise.
2672         * modules/sys_utsname (Makefile.am): Likewise.
2673         * modules/sys_wait (Makefile.am): Likewise.
2674         * modules/wchar (Makefile.am): Likewise.
2675         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
2676         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
2677         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
2678         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
2679         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
2680         Likewise.
2681         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2682         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2683         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
2684         Likewise.
2685         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
2686         Likewise.
2687         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
2688         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
2689         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
2690         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2691         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2692         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
2693         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
2694         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
2695         (gl_WCHAR_H_DEFAULTS): Likewise.
2696
2697 2009-12-31  Eric Blake  <ebb9@byu.net>
2698
2699         signal, spawn: use link warnings
2700         * lib/signal.in.h (sigset_t): Make unconditional.
2701         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
2702         (sigpending, sigprocmask, sigaction): Add link warnings.
2703         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
2704         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
2705         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
2706         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
2707         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
2708         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
2709         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
2710         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
2711         (posix_spawn_file_actions_destroy)
2712         (posix_spawn_file_actions_addopen)
2713         (posix_spawn_file_actions_addclose)
2714         (posix_spawwn_file_actions_adddup2): Likewise.
2715         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
2716         * tests/test-signal.c (main): Enhance test.
2717
2718         spawn: improve wrapper support
2719         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
2720         (gl_SPAWN_H_DEFAULTS): New defaults.
2721         * modules/spawn (Makefile.am): Substitute them.
2722         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
2723         Only declare if missing or broken.
2724
2725         sys_times, sys_utsname: use include_next
2726         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
2727         header.
2728         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
2729         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
2730         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
2731         * modules/sys_times (Depends-on): Add include_next.
2732         (Makefile.am): Substitute additional values.
2733         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
2734         * lib/sys_times.in.h (includes): Include native header, if
2735         available.
2736         * lib/sys_utsname.in.h (includes): Likewise.
2737         * tests/test-sys_times.c (main): Enhance test.
2738
2739         fdutimensat: revert prior patch
2740         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
2741         utimens.h.
2742         Reported by Bruno Haible.
2743
2744 2009-12-30  Eric Blake  <ebb9@byu.net>
2745
2746         sys_wait: drop link-warning dependency
2747         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
2748         link-warning efforts.
2749         * lib/sys_wait.in.h: Likewise.
2750
2751         fdutimensat: remove bogus dependency
2752         * modules/fdutimensat (Depends-on): Drop inline.
2753
2754         unistd: fix typo
2755         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
2756
2757 2009-12-30  Bruno Haible  <bruno@clisp.org>
2758
2759         Fix compilation error with Solaris cc.
2760         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
2761         * lib/unicase/u16-is-invariant.c: Likewise.
2762         * lib/unicase/u32-is-invariant.c: Likewise.
2763         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
2764
2765 2009-12-30  Bruno Haible  <bruno@clisp.org>
2766
2767         Fix test crash.
2768         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
2769         locales.
2770         Reported by Simon Josefsson <simon@josefsson.org>.
2771
2772 2009-12-30  Bruno Haible  <bruno@clisp.org>
2773
2774         Fix compilation error on most platforms.
2775         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
2776         Reported by Simon Josefsson <simon@josefsson.org>
2777         and Nelson H. F. Beebe <beebe@math.utah.edu>.
2778
2779 2009-12-30  Eric Blake  <ebb9@byu.net>
2780
2781         futimens, utimensat: work around ntfs-3g bug
2782         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
2783         a ctime bug is present, and expand workaround to cover ntfs-3g.
2784         * lib/utimens.c (fdutimens, lutimens): Likewise.
2785         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
2786         (validate_timespec): Adjust return value.
2787         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
2788         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
2789         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
2790
2791 2009-12-29  Eric Blake  <ebb9@byu.net>
2792
2793         link-warning: make usage consistent
2794         * modules/ctype (Depends-on): Add link-warning.
2795         (Makefile.am): Update rules accordingly.
2796         * modules/langinfo (Depends-on, Makefile.am): Likewise.
2797         * modules/locale (Depends-on, Makefile.am): Likewise.
2798         * modules/sys_file (Makefile.am): Likewise.
2799         * modules/getopt-posix (Makefile.am): Delete unused link warning
2800         efforts.
2801         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
2802         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
2803         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
2804         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
2805
2806         stdio: remove unused variables
2807         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
2808         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
2809         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2810
2811         tests: test more substitute headers
2812         * modules/ctype-tests: New file.
2813         * modules/dirent-tests: Likewise.
2814         * modules/spawn-tests: Likewise.
2815         * modules/sys_file-tests: Likewise.
2816         * modules/sys_ioctl-tests: Likewise.
2817         * modules/sys_wait-tests: Likewise.
2818         * tests/test-ctype.c: Likewise.
2819         * tests/test-dirent.c: Likewise.
2820         * tests/test-spawn.c: Likewise.
2821         * tests/test-sys_file.c: Likewise.
2822         * tests/test-sys_ioctl.c: Likewise.
2823         * tests/test-sys_wait.c: Likewise.
2824         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
2825         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
2826         whether or not flock is in use.
2827
2828         tests: remove License section from module
2829         * modules/arpa_inet-tests: Remove unneeded section.
2830         * modules/byteswap-tests: Likewise.
2831         * modules/ceilf-tests: Likewise.
2832         * modules/ceill-tests: Likewise.
2833         * modules/crypto/des-tests: Likewise.
2834         * modules/crypto/gc-arcfour-tests: Likewise.
2835         * modules/crypto/gc-arctwo-tests: Likewise.
2836         * modules/crypto/gc-des-tests: Likewise.
2837         * modules/crypto/gc-hmac-md5-tests: Likewise.
2838         * modules/crypto/gc-hmac-sha1-tests: Likewise.
2839         * modules/crypto/gc-md2-tests: Likewise.
2840         * modules/crypto/gc-md4-tests: Likewise.
2841         * modules/crypto/gc-md5-tests: Likewise.
2842         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
2843         * modules/crypto/gc-rijndael-tests: Likewise.
2844         * modules/crypto/gc-sha1-tests: Likewise.
2845         * modules/crypto/gc-tests: Likewise.
2846         * modules/crypto/md2-tests: Likewise.
2847         * modules/crypto/md4-tests: Likewise.
2848         * modules/fcntl-h-tests: Likewise.
2849         * modules/floorf-tests: Likewise.
2850         * modules/floorl-tests: Likewise.
2851         * modules/frexp-nolibm-tests: Likewise.
2852         * modules/frexp-tests: Likewise.
2853         * modules/frexpl-nolibm-tests: Likewise.
2854         * modules/frexpl-tests: Likewise.
2855         * modules/getaddrinfo-tests: Likewise.
2856         * modules/inttypes-tests: Likewise.
2857         * modules/isfinite-tests: Likewise.
2858         * modules/isinf-tests: Likewise.
2859         * modules/ldexpl-tests: Likewise.
2860         * modules/locale-tests: Likewise.
2861         * modules/math-tests: Likewise.
2862         * modules/netdb-tests: Likewise.
2863         * modules/netinet_in-tests: Likewise.
2864         * modules/printf-frexp-tests: Likewise.
2865         * modules/printf-frexpl-tests: Likewise.
2866         * modules/priv-set-tests: Likewise.
2867         * modules/random_r-tests: Likewise.
2868         * modules/round-tests: Likewise.
2869         * modules/roundf-tests: Likewise.
2870         * modules/roundl-tests: Likewise.
2871         * modules/search-tests: Likewise.
2872         * modules/select-tests: Likewise.
2873         * modules/signal-tests: Likewise.
2874         * modules/stdbool-tests: Likewise.
2875         * modules/stddef-tests: Likewise.
2876         * modules/stdint-tests: Likewise.
2877         * modules/stdio-tests: Likewise.
2878         * modules/stdlib-tests: Likewise.
2879         * modules/string-tests: Likewise.
2880         * modules/strings-tests: Likewise.
2881         * modules/sys_select-tests: Likewise.
2882         * modules/sys_socket-tests: Likewise.
2883         * modules/sys_stat-tests: Likewise.
2884         * modules/sys_time-tests: Likewise.
2885         * modules/sys_utsname-tests: Likewise.
2886         * modules/sysexits-tests: Likewise.
2887         * modules/time-tests: Likewise.
2888         * modules/trunc-tests: Likewise.
2889         * modules/truncf-tests: Likewise.
2890         * modules/truncl-tests: Likewise.
2891         * modules/tsearch-tests: Likewise.
2892         * modules/unistd-tests: Likewise.
2893         * modules/wchar-tests: Likewise.
2894         * modules/wctype-tests: Likewise.
2895
2896         tests: fix license on several tests
2897         * tests/test-des.c: Update to GPLv3+.
2898         * tests/test-flock.c: Likewise.
2899         * tests/test-fsync.c: Likewise.
2900         * tests/test-futimens.h: Likewise.
2901         * tests/test-gc-arcfour.c: Likewise.
2902         * tests/test-gc-arctwo.c: Likewise.
2903         * tests/test-gc-des.c: Likewise.
2904         * tests/test-gc-hmac-md5.c: Likewise.
2905         * tests/test-gc-hmac-sha1.c: Likewise.
2906         * tests/test-gc-md2.c: Likewise.
2907         * tests/test-gc-md4.c: Likewise.
2908         * tests/test-gc-md5.c: Likewise.
2909         * tests/test-gc-pbkdf2-sha1.c: Likewise.
2910         * tests/test-gc-rijndael.c: Likewise.
2911         * tests/test-gc-sha1.c: Likewise.
2912         * tests/test-gc.c: Likewise.
2913         * tests/test-getcwd.c: Likewise.
2914         * tests/test-link.c: Likewise.
2915         * tests/test-link.h: Likewise.
2916         * tests/test-lutimens.h: Likewise.
2917         * tests/test-md2.c: Likewise.
2918         * tests/test-md4.c: Likewise.
2919         * tests/test-mkdir.h: Likewise.
2920         * tests/test-rename.c: Likewise.
2921         * tests/test-rename.h: Likewise.
2922         * tests/test-safe-alloc.c: Likewise.
2923         * tests/test-utimens-common.h: Likewise.
2924         * tests/test-utimens.h: Likewise.
2925
2926         maint: sync license texts
2927         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
2928         * doc/gpl-3.0.texi: Revert copyright year update.
2929         * doc/lgpl-3.0.texi: Likewise.
2930
2931 2009-12-29  Jim Meyering  <meyering@redhat.com>
2932
2933         update nearly all FSF copyright year lists to include 2009
2934         The files named by the following are exempted:
2935             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
2936               test -f "$dst" && { echo "$dst"; continue; }
2937               test -d "$dst" || continue
2938               echo "$dst"/$(basename "$src")
2939             done > exempt
2940             git ls-files tests/unictype >> exempt
2941         In the remaining files, convert to all-interval notation if
2942         - there is already at least one year interval like 2000-2003
2943         - the file is maintained by me
2944         - the file is in lib/uni*/, where that style already prevails
2945         Otherwise, use update-copyright's default.
2946
2947 2009-12-29  Simon Josefsson  <simon@josefsson.org>
2948         and Eric Blake  <ebb9@byu.net>
2949
2950         tests: don't require debug system() to pass
2951         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
2952         * tests/test-rmdir.h (test_rmdir_func): Likewise.
2953         * tests/test-unlink.h (test_unlink_func): Likewise.
2954         * tests/test-fstatat.c (main): ...into callers.
2955         * tests/test-lstat.c (main): Likewise.
2956         * tests/test-rmdir.c (main): Likewise.
2957         * tests/test-unlink.c (main): Likewise.
2958         * tests/test-unlinkat.c (main): Likewise.
2959         * tests/test-areadlink-with-size.c (main): Don't require a
2960         debug-only system call to pass, aiding cross-testing to mingw.
2961         * tests/test-areadlink.c (main): Likewise.
2962         * tests/test-areadlinkat-with-size.c (main): Likewise.
2963         * tests/test-areadlinkat.c (main): Likewise.
2964         * tests/test-canonicalize-lgpl.c (main): Likewise.
2965         * tests/test-canonicalize.c (main): Likewise.
2966         * tests/test-chown.c (main): Likewise.
2967         * tests/test-fchownat.c (main): Likewise.
2968         * tests/test-lchown.c (main): Likewise.
2969         * tests/test-fdutimensat.c (main): Likewise.
2970         * tests/test-futimens.c (main): Likewise.
2971         * tests/test-link.c (main): Likewise.
2972         * tests/test-linkat.c (main): Likewise.
2973         * tests/test-mkdir.c (main): Likewise.
2974         * tests/test-mkdirat.c (main): Likewise.
2975         * tests/test-mkfifo.c (main): Likewise.
2976         * tests/test-mkfifoat.c (main): Likewise.
2977         * tests/test-mknod.c (main): Likewise.
2978         * tests/test-readlink.c (main): Likewise.
2979         * tests/test-remove.c (main): Likewise.
2980         * tests/test-rename.c (main): Likewise.
2981         * tests/test-renameat.c (main): Likewise.
2982         * tests/test-symlink.c (main): Likewise.
2983         * tests/test-symlinkat.c (main): Likewise.
2984         * tests/test-utimens.c (main): Likewise.
2985         * tests/test-utimensat.c (main): Likewise.
2986
2987 2009-12-29  Simon Josefsson  <simon@josefsson.org>
2988
2989         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
2990         on $(UNUSED_PARAMETER_H) to avoid build failure.
2991
2992 2009-12-28  Jim Meyering  <meyering@redhat.com>
2993
2994         update-copyright: you may specify a max. line length other than 72
2995         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
2996
2997         maint: use consistent FSF copyright line syntax
2998         * lib/posixtm.c: Add missing comma in FSF copyright line.
2999         * lib/posixtm.h: Likewise.
3000         * lib/getugroups.c: Add missing ", Inc.".
3001
3002         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
3003         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
3004         FSF copyright line.  Remove trailing blanks.
3005
3006 2009-12-28  Eric Blake  <ebb9@byu.net>
3007
3008         test-dup2: reduce dependencies
3009         * modules/cloexec (Configure.ac): Set witness.
3010         * modules/dup2-tests (Depends-on): Drop cloexec.
3011         * tests/test-dup2.c (main): Skip portion of test if cloexec module
3012         not present.
3013         Suggested by Bruno Haible.
3014
3015 2009-12-26  Bruno Haible  <bruno@clisp.org>
3016
3017         Remove an unneeded dependency.
3018         * modules/fseterr (Depends-on): Remove dup2.
3019
3020 2009-12-26  Eric Blake  <ebb9@byu.net>
3021
3022         tests: use macros.h in more places
3023         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
3024         (ASSERT_STREAM): Provide default of stderr.
3025         * tests/test-dirent-safer.c: Include macros.h, using alternate
3026         stream for assertions.
3027         * tests/test-dup-safer.c: Likewise.
3028         * tests/test-freopen-safer.c: Likewise.
3029         * tests/test-getopt.c: Likewise.
3030         * tests/test-openat-safer.c: Likewise.
3031         * tests/test-pipe.c: Likewise.
3032         * tests/test-popen-safer.c: Likewise.
3033         * modules/dirent-safer-tests (Files): Include macros.h.
3034         * modules/unistd-safer-tests (Files): Likewise.
3035         * modules/freopen-safer-tests (Files): Likewise.
3036         * modules/getopt-posix-tests (Files): Likewise.
3037         * modules/openat-safer-tests (Files): Likewise.
3038         * modules/pipe-tests (Files): Likewise.
3039
3040 2009-12-26  Bruno Haible  <bruno@clisp.org>
3041
3042         javacomp: Portability fix.
3043         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
3044         that it also works on Solaris.
3045
3046 2009-12-26  Bruno Haible  <bruno@clisp.org>
3047
3048         localename: Fix storage allocation of gl_locale_name_thread's result.
3049         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
3050         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
3051         all platforms that have 'uselocale'.
3052         (gl_locale_name_thread_unsafe): New function, extracted from
3053         gl_locale_name_thread.
3054         (gl_locale_name_thread): Call struniq on all platforms that have
3055         'uselocale'.
3056         * tests/test-localename.c (test_locale_name_thread): Check that the
3057         resulting strings are permanently allocated.
3058         * modules/localename-tests (Depends-on): Add strdup.
3059
3060 2009-12-26  Bruno Haible  <bruno@clisp.org>
3061
3062         * tests/test-localename.c (categories): Fill in the strings.
3063
3064 2009-12-26  Jim Meyering  <meyering@redhat.com>
3065
3066         isdir: complete the removal of m4/isdir.m4
3067         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
3068
3069         isdir: clean up, since at least grep still uses it
3070         * lib/isdir.c: Include "isdir.h".
3071         (S_ISDIR): Remove now-unneeded definition.
3072         * modules/isdir (Files): Add lib/isdir.h.
3073         * lib/isdir.h: New file, with declaration.
3074         * m4/isdir.m4: Remove file -- unneeded.
3075
3076 2009-12-25  Bruno Haible  <bruno@clisp.org>
3077
3078         selinux-h: Make generated .h files standalone.
3079         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
3080         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
3081         * lib/se-selinux.in.h: Likewise.
3082         * modules/selinux-h (Depends-on): Add unused-parameter.
3083         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
3084         selinux/selinux.h and selinux/context.h.
3085         Suggested by Eric Blake.
3086
3087 2009-12-25  Bruno Haible  <bruno@clisp.org>
3088
3089         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
3090         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
3091         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
3092         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
3093         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
3094
3095 2009-12-24  Bruno Haible  <bruno@clisp.org>
3096
3097         openat: Fix warning.
3098         * lib/openat-proc.c: Include <unistd.h>.
3099
3100 2009-12-24  Bruno Haible  <bruno@clisp.org>
3101
3102         New module 'unused-parameter'.
3103         * build-aux/unused-parameter.h: New file, extracted from earlier
3104         gnulib-common.m4.
3105         * modules/unused-parameter: New file.
3106         * lib/unistr.h: Include unused-parameter.h.
3107         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
3108         _GL_UNUSED.
3109         * modules/unistr/base (Depends-on): Add unused-parameter.
3110
3111 2009-12-24  Bruno Haible  <bruno@clisp.org>
3112
3113         Add missing dependencies to 'extensions' module.
3114         * m4/extensions.m4: Add comment.
3115         * modules/accept4 (Depends-on): Add extensions.
3116         * modules/dup3 (Depends-on): Likewise.
3117         * modules/fcntl (Depends-on): Likewise.
3118         * modules/futimens (Depends-on): Likewise.
3119         * modules/mknod (Depends-on): Likewise.
3120         * modules/pipe2 (Depends-on): Likewise.
3121         * modules/stat-time (Depends-on): Likewise.
3122         * modules/strcasestr-simple (Depends-on): Likewise.
3123         * modules/strsignal (Depends-on): Likewise.
3124         * modules/utimensat (Depends-on): Likewise.
3125         * modules/localcharset (Depends-on): Likewise. Needed because of
3126         gl_FCNTL_O_FLAGS.
3127         * modules/wcrtomb (Depends-on): Likewise. Needed because of
3128         AC_TYPE_MBSTATE_T.
3129         * modules/wcsnrtombs (Depends-on): Likewise.
3130         * modules/wcsrtombs (Depends-on): Likewise.
3131
3132 2009-12-24  Bruno Haible  <bruno@clisp.org>
3133
3134         binary-io: Avoid gcc warning due to SET_BINARY.
3135         * lib/binary-io.h (SET_BINARY): Cast the result to void.
3136         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
3137
3138 2009-12-24  Bruno Haible  <bruno@clisp.org>
3139
3140         Avoid future namespace pollution on glibc systems.
3141         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
3142         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
3143         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
3144         glibc systems.
3145
3146 2009-12-24  Bruno Haible  <bruno@clisp.org>
3147
3148         Refactor common macros used in tests.
3149         * tests/macros.h: New file.
3150         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
3151         and/or <stdlib.h>, if appropriate.
3152         (ASSERT, SIZEOF): Remove macros.
3153         * tests/test-areadlink-with-size.c: Likewise.
3154         * tests/test-areadlinkat.c: Likewise.
3155         * tests/test-areadlinkat-with-size.c: Likewise.
3156         * tests/test-argmatch.c: Likewise.
3157         * tests/test-argv-iter.c: Likewise.
3158         * tests/test-array-mergesort.c: Likewise.
3159         * tests/test-array_list.c: Likewise.
3160         * tests/test-array_oset.c: Likewise.
3161         * tests/test-avltree_list.c: Likewise.
3162         * tests/test-avltree_oset.c: Likewise.
3163         * tests/test-avltreehash_list.c: Likewise.
3164         * tests/test-base64.c: Likewise.
3165         * tests/test-binary-io.c: Likewise.
3166         * tests/test-bitrotate.c: Likewise.
3167         * tests/test-btowc.c: Likewise.
3168         * tests/test-byteswap.c: Likewise.
3169         * tests/test-c-ctype.c: Likewise.
3170         * tests/test-c-stack.c: Likewise.
3171         * tests/test-c-strcasecmp.c: Likewise.
3172         * tests/test-c-strcasestr.c: Likewise.
3173         * tests/test-c-strncasecmp.c: Likewise.
3174         * tests/test-c-strstr.c: Likewise.
3175         * tests/test-canonicalize-lgpl.c: Likewise.
3176         * tests/test-canonicalize.c: Likewise.
3177         * tests/test-carray_list.c: Likewise.
3178         * tests/test-ceilf1.c: Likewise.
3179         * tests/test-ceilf2.c: Likewise.
3180         * tests/test-ceill.c: Likewise.
3181         * tests/test-chown.c: Likewise.
3182         * tests/test-cloexec.c: Likewise.
3183         * tests/test-copy-acl.c: Likewise.
3184         * tests/test-copy-file.c: Likewise.
3185         * tests/test-count-one-bits.c: Likewise.
3186         * tests/test-dprintf-posix.c: Likewise.
3187         * tests/test-dup2.c: Likewise.
3188         * tests/test-dup3.c: Likewise.
3189         * tests/test-duplocale.c: Likewise.
3190         * tests/test-fbufmode.c: Likewise.
3191         * tests/test-fchdir.c: Likewise.
3192         * tests/test-fchownat.c: Likewise.
3193         * tests/test-fcntl-safer.c: Likewise.
3194         * tests/test-fcntl.c: Likewise.
3195         * tests/test-fdopendir.c: Likewise.
3196         * tests/test-fdutimensat.c: Likewise.
3197         * tests/test-fflush2.c: Likewise.
3198         * tests/test-file-has-acl.c: Likewise.
3199         * tests/test-filevercmp.c: Likewise.
3200         * tests/test-flock.c: Likewise.
3201         * tests/test-floorf1.c: Likewise.
3202         * tests/test-floorf2.c: Likewise.
3203         * tests/test-floorl.c: Likewise.
3204         * tests/test-fnmatch.c: Likewise.
3205         * tests/test-fopen.h: Likewise.
3206         * tests/test-fpending.c: Likewise.
3207         * tests/test-fprintf-posix.c: Likewise.
3208         * tests/test-fpurge.c: Likewise.
3209         * tests/test-freadable.c: Likewise.
3210         * tests/test-freadahead.c: Likewise.
3211         * tests/test-freading.c: Likewise.
3212         * tests/test-freadptr.c: Likewise.
3213         * tests/test-freadptr2.c: Likewise.
3214         * tests/test-freadseek.c: Likewise.
3215         * tests/test-freopen.c: Likewise.
3216         * tests/test-frexp.c: Likewise.
3217         * tests/test-frexpl.c: Likewise.
3218         * tests/test-fseek.c: Likewise.
3219         * tests/test-fseeko.c: Likewise.
3220         * tests/test-fstatat.c: Likewise.
3221         * tests/test-fstrcmp.c: Likewise.
3222         * tests/test-fsync.c: Likewise.
3223         * tests/test-ftell.c: Likewise.
3224         * tests/test-ftello.c: Likewise.
3225         * tests/test-func.c: Likewise.
3226         * tests/test-futimens.c: Likewise.
3227         * tests/test-fwritable.c: Likewise.
3228         * tests/test-fwriting.c: Likewise.
3229         * tests/test-getcwd.c: Likewise.
3230         * tests/test-getdate.c: Likewise.
3231         * tests/test-getdelim.c: Likewise.
3232         * tests/test-getdtablesize.c: Likewise.
3233         * tests/test-getgroups.c: Likewise.
3234         * tests/test-getline.c: Likewise.
3235         * tests/test-getndelim2.c: Likewise.
3236         * tests/test-glob.c: Likewise.
3237         * tests/test-hash.c: Likewise.
3238         * tests/test-i-ring.c: Likewise.
3239         * tests/test-iconv-utf.c: Likewise.
3240         * tests/test-iconv.c: Likewise.
3241         * tests/test-idpriv-drop.c: Likewise.
3242         * tests/test-idpriv-droptemp.c: Likewise.
3243         * tests/test-inet_ntop.c: Likewise.
3244         * tests/test-inet_pton.c: Likewise.
3245         * tests/test-isblank.c: Likewise.
3246         * tests/test-isfinite.c: Likewise.
3247         * tests/test-isinf.c: Likewise.
3248         * tests/test-isnan.c: Likewise.
3249         * tests/test-isnand.h: Likewise.
3250         * tests/test-isnanf.h: Likewise.
3251         * tests/test-isnanl.h: Likewise.
3252         * tests/test-lchown.c: Likewise.
3253         * tests/test-ldexpl.c: Likewise.
3254         * tests/test-link.c: Likewise.
3255         * tests/test-linkat.c: Likewise.
3256         * tests/test-linked_list.c: Likewise.
3257         * tests/test-linkedhash_list.c: Likewise.
3258         * tests/test-localename.c: Likewise.
3259         * tests/test-lseek.c: Likewise.
3260         * tests/test-lstat.c: Likewise.
3261         * tests/test-mbmemcasecmp.c: Likewise.
3262         * tests/test-mbmemcasecoll.c: Likewise.
3263         * tests/test-mbrtowc.c: Likewise.
3264         * tests/test-mbscasecmp.c: Likewise.
3265         * tests/test-mbscasestr1.c: Likewise.
3266         * tests/test-mbscasestr2.c: Likewise.
3267         * tests/test-mbscasestr3.c: Likewise.
3268         * tests/test-mbscasestr4.c: Likewise.
3269         * tests/test-mbschr.c: Likewise.
3270         * tests/test-mbscspn.c: Likewise.
3271         * tests/test-mbsinit.c: Likewise.
3272         * tests/test-mbsncasecmp.c: Likewise.
3273         * tests/test-mbsnrtowcs.c: Likewise.
3274         * tests/test-mbspbrk.c: Likewise.
3275         * tests/test-mbspcasecmp.c: Likewise.
3276         * tests/test-mbsrchr.c: Likewise.
3277         * tests/test-mbsrtowcs.c: Likewise.
3278         * tests/test-mbsspn.c: Likewise.
3279         * tests/test-mbsstr1.c: Likewise.
3280         * tests/test-mbsstr2.c: Likewise.
3281         * tests/test-mbsstr3.c: Likewise.
3282         * tests/test-memchr.c: Likewise.
3283         * tests/test-memchr2.c: Likewise.
3284         * tests/test-memcmp.c: Likewise.
3285         * tests/test-memmem.c: Likewise.
3286         * tests/test-memrchr.c: Likewise.
3287         * tests/test-mkdir.c: Likewise.
3288         * tests/test-mkdirat.c: Likewise.
3289         * tests/test-mkfifo.c: Likewise.
3290         * tests/test-mkfifoat.c: Likewise.
3291         * tests/test-mknod.c: Likewise.
3292         * tests/test-nanosleep.c: Likewise.
3293         * tests/test-nl_langinfo.c: Likewise.
3294         * tests/test-obstack-printf.c: Likewise.
3295         * tests/test-open.c: Likewise.
3296         * tests/test-openat.c: Likewise.
3297         * tests/test-pipe-filter-gi1.c: Likewise.
3298         * tests/test-pipe-filter-gi2-main.c: Likewise.
3299         * tests/test-pipe-filter-ii1.c: Likewise.
3300         * tests/test-pipe-filter-ii2-main.c: Likewise.
3301         * tests/test-pipe2.c: Likewise.
3302         * tests/test-popen.h: Likewise.
3303         * tests/test-posixtm.c: Likewise.
3304         * tests/test-pread.c: Likewise.
3305         * tests/test-printf-frexp.c: Likewise.
3306         * tests/test-printf-frexpl.c: Likewise.
3307         * tests/test-printf-posix.c: Likewise.
3308         * tests/test-priv-set.c: Likewise.
3309         * tests/test-quotearg.c: Likewise.
3310         * tests/test-random_r.c: Likewise.
3311         * tests/test-rawmemchr.c: Likewise.
3312         * tests/test-rbtree_list.c: Likewise.
3313         * tests/test-rbtree_oset.c: Likewise.
3314         * tests/test-rbtreehash_list.c: Likewise.
3315         * tests/test-readlink.c: Likewise.
3316         * tests/test-remove.c: Likewise.
3317         * tests/test-rename.c: Likewise.
3318         * tests/test-renameat.c: Likewise.
3319         * tests/test-rmdir.c: Likewise.
3320         * tests/test-round1.c: Likewise.
3321         * tests/test-roundf1.c: Likewise.
3322         * tests/test-roundl.c: Likewise.
3323         * tests/test-safe-alloc.c: Likewise.
3324         * tests/test-sameacls.c: Likewise.
3325         * tests/test-set-mode-acl.c: Likewise.
3326         * tests/test-setenv.c: Likewise.
3327         * tests/test-sigaction.c: Likewise.
3328         * tests/test-signbit.c: Likewise.
3329         * tests/test-sleep.c: Likewise.
3330         * tests/test-snprintf-posix.c: Likewise.
3331         * tests/test-snprintf.c: Likewise.
3332         * tests/test-sprintf-posix.c: Likewise.
3333         * tests/test-stat-time.c: Likewise.
3334         * tests/test-stat.c: Likewise.
3335         * tests/test-strcasestr.c: Likewise.
3336         * tests/test-strchrnul.c: Likewise.
3337         * tests/test-strerror.c: Likewise.
3338         * tests/test-striconv.c: Likewise.
3339         * tests/test-striconveh.c: Likewise.
3340         * tests/test-striconveha.c: Likewise.
3341         * tests/test-strsignal.c: Likewise.
3342         * tests/test-strstr.c: Likewise.
3343         * tests/test-strtod.c: Likewise.
3344         * tests/test-strverscmp.c: Likewise.
3345         * tests/test-symlink.c: Likewise.
3346         * tests/test-symlinkat.c: Likewise.
3347         * tests/test-trunc1.c: Likewise.
3348         * tests/test-trunc2.c: Likewise.
3349         * tests/test-truncf1.c: Likewise.
3350         * tests/test-truncf2.c: Likewise.
3351         * tests/test-truncl.c: Likewise.
3352         * tests/test-uname.c: Likewise.
3353         * tests/test-unlink.c: Likewise.
3354         * tests/test-unlinkat.c: Likewise.
3355         * tests/test-unsetenv.c: Likewise.
3356         * tests/test-usleep.c: Likewise.
3357         * tests/test-utimens.c: Likewise.
3358         * tests/test-utimensat.c: Likewise.
3359         * tests/test-vasnprintf-posix.c: Likewise.
3360         * tests/test-vasnprintf-posix2.c: Likewise.
3361         * tests/test-vasnprintf.c: Likewise.
3362         * tests/test-vasprintf-posix.c: Likewise.
3363         * tests/test-vasprintf.c: Likewise.
3364         * tests/test-vdprintf-posix.c: Likewise.
3365         * tests/test-vfprintf-posix.c: Likewise.
3366         * tests/test-vprintf-posix.c: Likewise.
3367         * tests/test-vsnprintf-posix.c: Likewise.
3368         * tests/test-vsnprintf.c: Likewise.
3369         * tests/test-vsprintf-posix.c: Likewise.
3370         * tests/test-wcrtomb.c: Likewise.
3371         * tests/test-wcsnrtombs.c: Likewise.
3372         * tests/test-wcsrtombs.c: Likewise.
3373         * tests/test-wctype.c: Likewise.
3374         * tests/test-wcwidth.c: Likewise.
3375         * tests/test-xfprintf-posix.c: Likewise.
3376         * tests/test-xmemdup0.c: Likewise.
3377         * tests/test-xprintf-posix.c: Likewise.
3378         * tests/test-xvasprintf.c: Likewise.
3379         * tests/unicase/test-locale-language.c: Likewise.
3380         * tests/unicase/test-mapping-part1.h: Likewise.
3381         * tests/unicase/test-predicate-part1.h: Likewise.
3382         * tests/unicase/test-u8-casecmp.c: Likewise.
3383         * tests/unicase/test-u8-casecoll.c: Likewise.
3384         * tests/unicase/test-u8-casefold.c: Likewise.
3385         * tests/unicase/test-u8-is-cased.c: Likewise.
3386         * tests/unicase/test-u8-is-casefolded.c: Likewise.
3387         * tests/unicase/test-u8-is-lowercase.c: Likewise.
3388         * tests/unicase/test-u8-is-titlecase.c: Likewise.
3389         * tests/unicase/test-u8-is-uppercase.c: Likewise.
3390         * tests/unicase/test-u8-tolower.c: Likewise.
3391         * tests/unicase/test-u8-totitle.c: Likewise.
3392         * tests/unicase/test-u8-toupper.c: Likewise.
3393         * tests/unicase/test-u16-casecmp.c: Likewise.
3394         * tests/unicase/test-u16-casecoll.c: Likewise.
3395         * tests/unicase/test-u16-casefold.c: Likewise.
3396         * tests/unicase/test-u16-is-cased.c: Likewise.
3397         * tests/unicase/test-u16-is-casefolded.c: Likewise.
3398         * tests/unicase/test-u16-is-lowercase.c: Likewise.
3399         * tests/unicase/test-u16-is-titlecase.c: Likewise.
3400         * tests/unicase/test-u16-is-uppercase.c: Likewise.
3401         * tests/unicase/test-u16-tolower.c: Likewise.
3402         * tests/unicase/test-u16-totitle.c: Likewise.
3403         * tests/unicase/test-u16-toupper.c: Likewise.
3404         * tests/unicase/test-u32-casecmp.c: Likewise.
3405         * tests/unicase/test-u32-casecoll.c: Likewise.
3406         * tests/unicase/test-u32-casefold.c: Likewise.
3407         * tests/unicase/test-u32-is-cased.c: Likewise.
3408         * tests/unicase/test-u32-is-casefolded.c: Likewise.
3409         * tests/unicase/test-u32-is-lowercase.c: Likewise.
3410         * tests/unicase/test-u32-is-titlecase.c: Likewise.
3411         * tests/unicase/test-u32-is-uppercase.c: Likewise.
3412         * tests/unicase/test-u32-tolower.c: Likewise.
3413         * tests/unicase/test-u32-totitle.c: Likewise.
3414         * tests/unicase/test-u32-toupper.c: Likewise.
3415         * tests/unicase/test-ulc-casecmp.c: Likewise.
3416         * tests/unicase/test-ulc-casecoll.c: Likewise.
3417         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
3418         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
3419         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
3420         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
3421         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
3422         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
3423         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
3424         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
3425         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
3426         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
3427         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
3428         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
3429         * tests/unictype/test-bidi_byname.c: Likewise.
3430         * tests/unictype/test-bidi_name.c: Likewise.
3431         * tests/unictype/test-bidi_of.c: Likewise.
3432         * tests/unictype/test-bidi_test.c: Likewise.
3433         * tests/unictype/test-block_list.c: Likewise.
3434         * tests/unictype/test-block_of.c: Likewise.
3435         * tests/unictype/test-block_test.c: Likewise.
3436         * tests/unictype/test-categ_and.c: Likewise.
3437         * tests/unictype/test-categ_and_not.c: Likewise.
3438         * tests/unictype/test-categ_byname.c: Likewise.
3439         * tests/unictype/test-categ_name.c: Likewise.
3440         * tests/unictype/test-categ_none.c: Likewise.
3441         * tests/unictype/test-categ_of.c: Likewise.
3442         * tests/unictype/test-categ_or.c: Likewise.
3443         * tests/unictype/test-categ_test_withtable.c: Likewise.
3444         * tests/unictype/test-combining.c: Likewise.
3445         * tests/unictype/test-decdigit.c: Likewise.
3446         * tests/unictype/test-digit.c: Likewise.
3447         * tests/unictype/test-mirror.c: Likewise.
3448         * tests/unictype/test-numeric.c: Likewise.
3449         * tests/unictype/test-pr_byname.c: Likewise.
3450         * tests/unictype/test-pr_test.c: Likewise.
3451         * tests/unictype/test-predicate-part1.h: Likewise.
3452         * tests/unictype/test-scripts.c: Likewise.
3453         * tests/unictype/test-sy_c_ident.c: Likewise.
3454         * tests/unictype/test-sy_java_ident.c: Likewise.
3455         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
3456         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
3457         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
3458         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
3459         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
3460         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
3461         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
3462         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
3463         * tests/uninorm/test-canonical-decomposition.c: Likewise.
3464         * tests/uninorm/test-compat-decomposition.c: Likewise.
3465         * tests/uninorm/test-composition.c: Likewise.
3466         * tests/uninorm/test-decomposing-form.c: Likewise.
3467         * tests/uninorm/test-decomposition.c: Likewise.
3468         * tests/uninorm/test-u8-nfc.c: Likewise.
3469         * tests/uninorm/test-u8-nfd.c: Likewise.
3470         * tests/uninorm/test-u8-nfkc.c: Likewise.
3471         * tests/uninorm/test-u8-nfkd.c: Likewise.
3472         * tests/uninorm/test-u8-normcmp.c: Likewise.
3473         * tests/uninorm/test-u8-normcoll.c: Likewise.
3474         * tests/uninorm/test-u16-nfc.c: Likewise.
3475         * tests/uninorm/test-u16-nfd.c: Likewise.
3476         * tests/uninorm/test-u16-nfkc.c: Likewise.
3477         * tests/uninorm/test-u16-nfkd.c: Likewise.
3478         * tests/uninorm/test-u16-normcmp.c: Likewise.
3479         * tests/uninorm/test-u16-normcoll.c: Likewise.
3480         * tests/uninorm/test-u32-nfc.c: Likewise.
3481         * tests/uninorm/test-u32-nfd.c: Likewise.
3482         * tests/uninorm/test-u32-nfkc.c: Likewise.
3483         * tests/uninorm/test-u32-nfkd.c: Likewise.
3484         * tests/uninorm/test-u32-normalize-big.c: Likewise.
3485         * tests/uninorm/test-u32-normcmp.c: Likewise.
3486         * tests/uninorm/test-u32-normcoll.c: Likewise.
3487         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
3488         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
3489         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
3490         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
3491         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
3492         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
3493         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
3494         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
3495         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
3496         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
3497         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
3498         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
3499         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
3500         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
3501         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
3502         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
3503         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
3504         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
3505         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
3506         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
3507         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
3508         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
3509         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
3510         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
3511         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
3512         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
3513         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
3514         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
3515         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
3516         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
3517         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
3518         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
3519         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
3520         * tests/uniwidth/test-u8-strwidth.c: Likewise.
3521         * tests/uniwidth/test-u8-width.c: Likewise.
3522         * tests/uniwidth/test-u16-strwidth.c: Likewise.
3523         * tests/uniwidth/test-u16-width.c: Likewise.
3524         * tests/uniwidth/test-u32-strwidth.c: Likewise.
3525         * tests/uniwidth/test-u32-width.c: Likewise.
3526         * tests/uniwidth/test-uc_width.c: Likewise.
3527         * tests/uniwidth/test-uc_width2.c: Likewise.
3528         * modules/acl-tests (Files): Add tests/macros.h.
3529         * modules/areadlink-tests (Files): Likewise.
3530         * modules/areadlink-with-size-tests (Files): Likewise.
3531         * modules/areadlinkat-tests (Files): Likewise.
3532         * modules/areadlinkat-with-size-tests (Files): Likewise.
3533         * modules/argmatch-tests (Files): Likewise.
3534         * modules/argv-iter-tests (Files): Likewise.
3535         * modules/array-list-tests (Files): Likewise.
3536         * modules/array-mergesort-tests (Files): Likewise.
3537         * modules/array-oset-tests (Files): Likewise.
3538         * modules/avltree-list-tests (Files): Likewise.
3539         * modules/avltree-oset-tests (Files): Likewise.
3540         * modules/avltreehash-list-tests (Files): Likewise.
3541         * modules/base64-tests (Files): Likewise.
3542         * modules/binary-io-tests (Files): Likewise.
3543         * modules/bitrotate-tests (Files): Likewise.
3544         * modules/btowc-tests (Files): Likewise.
3545         * modules/byteswap-tests (Files): Likewise.
3546         * modules/c-ctype-tests (Files): Likewise.
3547         * modules/c-stack-tests (Files): Likewise.
3548         * modules/c-strcase-tests (Files): Likewise.
3549         * modules/c-strcasestr-tests (Files): Likewise.
3550         * modules/c-strstr-tests (Files): Likewise.
3551         * modules/canonicalize-lgpl-tests (Files): Likewise.
3552         * modules/canonicalize-tests (Files): Likewise.
3553         * modules/carray-list-tests (Files): Likewise.
3554         * modules/ceilf-tests (Files): Likewise.
3555         * modules/ceill-tests (Files): Likewise.
3556         * modules/chown-tests (Files): Likewise.
3557         * modules/cloexec-tests (Files): Likewise.
3558         * modules/copy-file-tests (Files): Likewise.
3559         * modules/count-one-bits-tests (Files): Likewise.
3560         * modules/dprintf-posix-tests (Files): Likewise.
3561         * modules/dup2-tests (Files): Likewise.
3562         * modules/dup3-tests (Files): Likewise.
3563         * modules/duplocale-tests (Files): Likewise.
3564         * modules/fbufmode-tests (Files): Likewise.
3565         * modules/fchdir-tests (Files): Likewise.
3566         * modules/fcntl-safer-tests (Files): Likewise.
3567         * modules/fcntl-tests (Files): Likewise.
3568         * modules/fdopendir-tests (Files): Likewise.
3569         * modules/fdutimensat-tests (Files): Likewise.
3570         * modules/fflush-tests (Files): Likewise.
3571         * modules/filevercmp-tests (Files): Likewise.
3572         * modules/flock-tests (Files): Likewise.
3573         * modules/floorf-tests (Files): Likewise.
3574         * modules/floorl-tests (Files): Likewise.
3575         * modules/fnmatch-tests (Files): Likewise.
3576         * modules/fopen-safer-tests (Files): Likewise.
3577         * modules/fopen-tests (Files): Likewise.
3578         * modules/fpending-tests (Files): Likewise.
3579         * modules/fprintf-posix-tests (Files): Likewise.
3580         * modules/fpurge-tests (Files): Likewise.
3581         * modules/freadable-tests (Files): Likewise.
3582         * modules/freadahead-tests (Files): Likewise.
3583         * modules/freading-tests (Files): Likewise.
3584         * modules/freadptr-tests (Files): Likewise.
3585         * modules/freadseek-tests (Files): Likewise.
3586         * modules/freopen-tests (Files): Likewise.
3587         * modules/frexp-nolibm-tests (Files): Likewise.
3588         * modules/frexp-tests (Files): Likewise.
3589         * modules/frexpl-nolibm-tests (Files): Likewise.
3590         * modules/frexpl-tests (Files): Likewise.
3591         * modules/fseek-tests (Files): Likewise.
3592         * modules/fseeko-tests (Files): Likewise.
3593         * modules/fstrcmp-tests (Files): Likewise.
3594         * modules/fsync-tests (Files): Likewise.
3595         * modules/ftell-tests (Files): Likewise.
3596         * modules/ftello-tests (Files): Likewise.
3597         * modules/func-tests (Files): Likewise.
3598         * modules/futimens-tests (Files): Likewise.
3599         * modules/fwritable-tests (Files): Likewise.
3600         * modules/fwriting-tests (Files): Likewise.
3601         * modules/getcwd-tests (Files): Likewise.
3602         * modules/getdate-tests (Files): Likewise.
3603         * modules/getdelim-tests (Files): Likewise.
3604         * modules/getdtablesize-tests (Files): Likewise.
3605         * modules/getgroups-tests (Files): Likewise.
3606         * modules/getline-tests (Files): Likewise.
3607         * modules/getndelim2-tests (Files): Likewise.
3608         * modules/glob-tests (Files): Likewise.
3609         * modules/hash-tests (Files): Likewise.
3610         * modules/i-ring-tests (Files): Likewise.
3611         * modules/iconv-tests (Files): Likewise.
3612         * modules/iconv_open-utf-tests (Files): Likewise.
3613         * modules/idpriv-drop-tests (Files): Likewise.
3614         * modules/idpriv-droptemp-tests (Files): Likewise.
3615         * modules/inet_ntop-tests (Files): Likewise.
3616         * modules/inet_pton-tests (Files): Likewise.
3617         * modules/isblank-tests (Files): Likewise.
3618         * modules/isfinite-tests (Files): Likewise.
3619         * modules/isinf-tests (Files): Likewise.
3620         * modules/isnan-tests (Files): Likewise.
3621         * modules/isnand-nolibm-tests (Files): Likewise.
3622         * modules/isnand-tests (Files): Likewise.
3623         * modules/isnanf-nolibm-tests (Files): Likewise.
3624         * modules/isnanf-tests (Files): Likewise.
3625         * modules/isnanl-nolibm-tests (Files): Likewise.
3626         * modules/isnanl-tests (Files): Likewise.
3627         * modules/lchown-tests (Files): Likewise.
3628         * modules/ldexpl-tests (Files): Likewise.
3629         * modules/link-tests (Files): Likewise.
3630         * modules/linkat-tests (Files): Likewise.
3631         * modules/linked-list-tests (Files): Likewise.
3632         * modules/linkedhash-list-tests (Files): Likewise.
3633         * modules/localename-tests (Files): Likewise.
3634         * modules/lseek-tests (Files): Likewise.
3635         * modules/lstat-tests (Files): Likewise.
3636         * modules/mbmemcasecmp-tests (Files): Likewise.
3637         * modules/mbmemcasecoll-tests (Files): Likewise.
3638         * modules/mbrtowc-tests (Files): Likewise.
3639         * modules/mbscasecmp-tests (Files): Likewise.
3640         * modules/mbscasestr-tests (Files): Likewise.
3641         * modules/mbschr-tests (Files): Likewise.
3642         * modules/mbscspn-tests (Files): Likewise.
3643         * modules/mbsinit-tests (Files): Likewise.
3644         * modules/mbsncasecmp-tests (Files): Likewise.
3645         * modules/mbsnrtowcs-tests (Files): Likewise.
3646         * modules/mbspbrk-tests (Files): Likewise.
3647         * modules/mbspcasecmp-tests (Files): Likewise.
3648         * modules/mbsrchr-tests (Files): Likewise.
3649         * modules/mbsrtowcs-tests (Files): Likewise.
3650         * modules/mbsspn-tests (Files): Likewise.
3651         * modules/mbsstr-tests (Files): Likewise.
3652         * modules/memchr-tests (Files): Likewise.
3653         * modules/memchr2-tests (Files): Likewise.
3654         * modules/memcmp-tests (Files): Likewise.
3655         * modules/memmem-tests (Files): Likewise.
3656         * modules/memrchr-tests (Files): Likewise.
3657         * modules/mkdir-tests (Files): Likewise.
3658         * modules/mkfifo-tests (Files): Likewise.
3659         * modules/mkfifoat-tests (Files): Likewise.
3660         * modules/mknod-tests (Files): Likewise.
3661         * modules/nanosleep-tests (Files): Likewise.
3662         * modules/nl_langinfo-tests (Files): Likewise.
3663         * modules/obstack-printf-tests (Files): Likewise.
3664         * modules/open-tests (Files): Likewise.
3665         * modules/openat-tests (Files): Likewise.
3666         * modules/pipe-filter-gi-tests (Files): Likewise.
3667         * modules/pipe-filter-ii-tests (Files): Likewise.
3668         * modules/pipe2-tests (Files): Likewise.
3669         * modules/popen-safer-tests (Files): Likewise.
3670         * modules/popen-tests (Files): Likewise.
3671         * modules/posixtm-tests (Files): Likewise.
3672         * modules/pread-tests (Files): Likewise.
3673         * modules/printf-frexp-tests (Files): Likewise.
3674         * modules/printf-frexpl-tests (Files): Likewise.
3675         * modules/printf-posix-tests (Files): Likewise.
3676         * modules/priv-set-tests (Files): Likewise.
3677         * modules/quotearg-tests (Files): Likewise.
3678         * modules/random_r-tests (Files): Likewise.
3679         * modules/rawmemchr-tests (Files): Likewise.
3680         * modules/rbtree-list-tests (Files): Likewise.
3681         * modules/rbtree-oset-tests (Files): Likewise.
3682         * modules/rbtreehash-list-tests (Files): Likewise.
3683         * modules/readlink-tests (Files): Likewise.
3684         * modules/remove-tests (Files): Likewise.
3685         * modules/rename-tests (Files): Likewise.
3686         * modules/renameat-tests (Files): Likewise.
3687         * modules/rmdir-tests (Files): Likewise.
3688         * modules/round-tests (Files): Likewise.
3689         * modules/roundf-tests (Files): Likewise.
3690         * modules/roundl-tests (Files): Likewise.
3691         * modules/safe-alloc-tests (Files): Likewise.
3692         * modules/setenv-tests (Files): Likewise.
3693         * modules/sigaction-tests (Files): Likewise.
3694         * modules/signbit-tests (Files): Likewise.
3695         * modules/sleep-tests (Files): Likewise.
3696         * modules/snprintf-posix-tests (Files): Likewise.
3697         * modules/snprintf-tests (Files): Likewise.
3698         * modules/sprintf-posix-tests (Files): Likewise.
3699         * modules/stat-tests (Files): Likewise.
3700         * modules/stat-time-tests (Files): Likewise.
3701         * modules/strcasestr-tests (Files): Likewise.
3702         * modules/strchrnul-tests (Files): Likewise.
3703         * modules/strerror-tests (Files): Likewise.
3704         * modules/striconv-tests (Files): Likewise.
3705         * modules/striconveh-tests (Files): Likewise.
3706         * modules/striconveha-tests (Files): Likewise.
3707         * modules/strsignal-tests (Files): Likewise.
3708         * modules/strstr-tests (Files): Likewise.
3709         * modules/strtod-tests (Files): Likewise.
3710         * modules/strverscmp-tests (Files): Likewise.
3711         * modules/symlink-tests (Files): Likewise.
3712         * modules/symlinkat-tests (Files): Likewise.
3713         * modules/trunc-tests (Files): Likewise.
3714         * modules/truncf-tests (Files): Likewise.
3715         * modules/truncl-tests (Files): Likewise.
3716         * modules/uname-tests (Files): Likewise.
3717         * modules/unicase/cased-tests (Files): Likewise.
3718         * modules/unicase/ignorable-tests (Files): Likewise.
3719         * modules/unicase/locale-language-tests (Files): Likewise.
3720         * modules/unicase/tolower-tests (Files): Likewise.
3721         * modules/unicase/totitle-tests (Files): Likewise.
3722         * modules/unicase/toupper-tests (Files): Likewise.
3723         * modules/unicase/u8-casecmp-tests (Files): Likewise.
3724         * modules/unicase/u8-casecoll-tests (Files): Likewise.
3725         * modules/unicase/u8-casefold-tests (Files): Likewise.
3726         * modules/unicase/u8-is-cased-tests (Files): Likewise.
3727         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
3728         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
3729         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
3730         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
3731         * modules/unicase/u8-tolower-tests (Files): Likewise.
3732         * modules/unicase/u8-totitle-tests (Files): Likewise.
3733         * modules/unicase/u8-toupper-tests (Files): Likewise.
3734         * modules/unicase/u16-casecmp-tests (Files): Likewise.
3735         * modules/unicase/u16-casecoll-tests (Files): Likewise.
3736         * modules/unicase/u16-casefold-tests (Files): Likewise.
3737         * modules/unicase/u16-is-cased-tests (Files): Likewise.
3738         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
3739         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
3740         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
3741         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
3742         * modules/unicase/u16-tolower-tests (Files): Likewise.
3743         * modules/unicase/u16-totitle-tests (Files): Likewise.
3744         * modules/unicase/u16-toupper-tests (Files): Likewise.
3745         * modules/unicase/u32-casecmp-tests (Files): Likewise.
3746         * modules/unicase/u32-casecoll-tests (Files): Likewise.
3747         * modules/unicase/u32-casefold-tests (Files): Likewise.
3748         * modules/unicase/u32-is-cased-tests (Files): Likewise.
3749         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
3750         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
3751         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
3752         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
3753         * modules/unicase/u32-tolower-tests (Files): Likewise.
3754         * modules/unicase/u32-totitle-tests (Files): Likewise.
3755         * modules/unicase/u32-toupper-tests (Files): Likewise.
3756         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
3757         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
3758         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
3759         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
3760         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
3761         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
3762         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
3763         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
3764         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
3765         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
3766         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
3767         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
3768         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
3769         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
3770         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
3771         * modules/unictype/bidicategory-name-tests (Files): Likewise.
3772         * modules/unictype/bidicategory-of-tests (Files): Likewise.
3773         * modules/unictype/bidicategory-test-tests (Files): Likewise.
3774         * modules/unictype/block-list-tests (Files): Likewise.
3775         * modules/unictype/block-of-tests (Files): Likewise.
3776         * modules/unictype/block-test-tests (Files): Likewise.
3777         * modules/unictype/category-C-tests (Files): Likewise.
3778         * modules/unictype/category-Cc-tests (Files): Likewise.
3779         * modules/unictype/category-Cf-tests (Files): Likewise.
3780         * modules/unictype/category-Cn-tests (Files): Likewise.
3781         * modules/unictype/category-Co-tests (Files): Likewise.
3782         * modules/unictype/category-Cs-tests (Files): Likewise.
3783         * modules/unictype/category-L-tests (Files): Likewise.
3784         * modules/unictype/category-Ll-tests (Files): Likewise.
3785         * modules/unictype/category-Lm-tests (Files): Likewise.
3786         * modules/unictype/category-Lo-tests (Files): Likewise.
3787         * modules/unictype/category-Lt-tests (Files): Likewise.
3788         * modules/unictype/category-Lu-tests (Files): Likewise.
3789         * modules/unictype/category-M-tests (Files): Likewise.
3790         * modules/unictype/category-Mc-tests (Files): Likewise.
3791         * modules/unictype/category-Me-tests (Files): Likewise.
3792         * modules/unictype/category-Mn-tests (Files): Likewise.
3793         * modules/unictype/category-N-tests (Files): Likewise.
3794         * modules/unictype/category-Nd-tests (Files): Likewise.
3795         * modules/unictype/category-Nl-tests (Files): Likewise.
3796         * modules/unictype/category-No-tests (Files): Likewise.
3797         * modules/unictype/category-P-tests (Files): Likewise.
3798         * modules/unictype/category-Pc-tests (Files): Likewise.
3799         * modules/unictype/category-Pd-tests (Files): Likewise.
3800         * modules/unictype/category-Pe-tests (Files): Likewise.
3801         * modules/unictype/category-Pf-tests (Files): Likewise.
3802         * modules/unictype/category-Pi-tests (Files): Likewise.
3803         * modules/unictype/category-Po-tests (Files): Likewise.
3804         * modules/unictype/category-Ps-tests (Files): Likewise.
3805         * modules/unictype/category-S-tests (Files): Likewise.
3806         * modules/unictype/category-Sc-tests (Files): Likewise.
3807         * modules/unictype/category-Sk-tests (Files): Likewise.
3808         * modules/unictype/category-Sm-tests (Files): Likewise.
3809         * modules/unictype/category-So-tests (Files): Likewise.
3810         * modules/unictype/category-Z-tests (Files): Likewise.
3811         * modules/unictype/category-Zl-tests (Files): Likewise.
3812         * modules/unictype/category-Zp-tests (Files): Likewise.
3813         * modules/unictype/category-Zs-tests (Files): Likewise.
3814         * modules/unictype/category-and-not-tests (Files): Likewise.
3815         * modules/unictype/category-and-tests (Files): Likewise.
3816         * modules/unictype/category-byname-tests (Files): Likewise.
3817         * modules/unictype/category-name-tests (Files): Likewise.
3818         * modules/unictype/category-none-tests (Files): Likewise.
3819         * modules/unictype/category-of-tests (Files): Likewise.
3820         * modules/unictype/category-or-tests (Files): Likewise.
3821         * modules/unictype/category-test-withtable-tests (Files): Likewise.
3822         * modules/unictype/combining-class-tests (Files): Likewise.
3823         * modules/unictype/ctype-alnum-tests (Files): Likewise.
3824         * modules/unictype/ctype-alpha-tests (Files): Likewise.
3825         * modules/unictype/ctype-blank-tests (Files): Likewise.
3826         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
3827         * modules/unictype/ctype-digit-tests (Files): Likewise.
3828         * modules/unictype/ctype-graph-tests (Files): Likewise.
3829         * modules/unictype/ctype-lower-tests (Files): Likewise.
3830         * modules/unictype/ctype-print-tests (Files): Likewise.
3831         * modules/unictype/ctype-punct-tests (Files): Likewise.
3832         * modules/unictype/ctype-space-tests (Files): Likewise.
3833         * modules/unictype/ctype-upper-tests (Files): Likewise.
3834         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
3835         * modules/unictype/decimal-digit-tests (Files): Likewise.
3836         * modules/unictype/digit-tests (Files): Likewise.
3837         * modules/unictype/mirror-tests (Files): Likewise.
3838         * modules/unictype/numeric-tests (Files): Likewise.
3839         * modules/unictype/property-alphabetic-tests (Files): Likewise.
3840         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
3841         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
3842         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
3843         Likewise.
3844         * modules/unictype/property-bidi-block-separator-tests (Files):
3845         Likewise.
3846         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
3847         Likewise.
3848         * modules/unictype/property-bidi-common-separator-tests (Files):
3849         Likewise.
3850         * modules/unictype/property-bidi-control-tests (Files): Likewise.
3851         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
3852         Likewise.
3853         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
3854         Likewise.
3855         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
3856         Likewise.
3857         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
3858         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
3859         Likewise.
3860         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
3861         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
3862         Likewise.
3863         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
3864         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
3865         * modules/unictype/property-bidi-segment-separator-tests (Files):
3866         Likewise.
3867         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
3868         * modules/unictype/property-byname-tests (Files): Likewise.
3869         * modules/unictype/property-combining-tests (Files): Likewise.
3870         * modules/unictype/property-composite-tests (Files): Likewise.
3871         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
3872         * modules/unictype/property-dash-tests (Files): Likewise.
3873         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
3874         * modules/unictype/property-default-ignorable-code-point-tests (Files):
3875         Likewise.
3876         * modules/unictype/property-deprecated-tests (Files): Likewise.
3877         * modules/unictype/property-diacritic-tests (Files): Likewise.
3878         * modules/unictype/property-extender-tests (Files): Likewise.
3879         * modules/unictype/property-format-control-tests (Files): Likewise.
3880         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
3881         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
3882         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
3883         * modules/unictype/property-hex-digit-tests (Files): Likewise.
3884         * modules/unictype/property-hyphen-tests (Files): Likewise.
3885         * modules/unictype/property-id-continue-tests (Files): Likewise.
3886         * modules/unictype/property-id-start-tests (Files): Likewise.
3887         * modules/unictype/property-ideographic-tests (Files): Likewise.
3888         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
3889         * modules/unictype/property-ids-trinary-operator-tests (Files):
3890         Likewise.
3891         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
3892         * modules/unictype/property-iso-control-tests (Files): Likewise.
3893         * modules/unictype/property-join-control-tests (Files): Likewise.
3894         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
3895         * modules/unictype/property-line-separator-tests (Files): Likewise.
3896         * modules/unictype/property-logical-order-exception-tests (Files):
3897         Likewise.
3898         * modules/unictype/property-lowercase-tests (Files): Likewise.
3899         * modules/unictype/property-math-tests (Files): Likewise.
3900         * modules/unictype/property-non-break-tests (Files): Likewise.
3901         * modules/unictype/property-not-a-character-tests (Files): Likewise.
3902         * modules/unictype/property-numeric-tests (Files): Likewise.
3903         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
3904         * modules/unictype/property-other-default-ignorable-code-point-tests
3905         (Files): Likewise.
3906         * modules/unictype/property-other-grapheme-extend-tests (Files):
3907         Likewise.
3908         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
3909         * modules/unictype/property-other-id-start-tests (Files): Likewise.
3910         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
3911         * modules/unictype/property-other-math-tests (Files): Likewise.
3912         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
3913         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
3914         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
3915         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
3916         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
3917         * modules/unictype/property-private-use-tests (Files): Likewise.
3918         * modules/unictype/property-punctuation-tests (Files): Likewise.
3919         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
3920         * modules/unictype/property-radical-tests (Files): Likewise.
3921         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
3922         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
3923         * modules/unictype/property-space-tests (Files): Likewise.
3924         * modules/unictype/property-terminal-punctuation-tests (Files):
3925         Likewise.
3926         * modules/unictype/property-test-tests (Files): Likewise.
3927         * modules/unictype/property-titlecase-tests (Files): Likewise.
3928         * modules/unictype/property-unassigned-code-value-tests (Files):
3929         Likewise.
3930         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
3931         * modules/unictype/property-uppercase-tests (Files): Likewise.
3932         * modules/unictype/property-variation-selector-tests (Files): Likewise.
3933         * modules/unictype/property-white-space-tests (Files): Likewise.
3934         * modules/unictype/property-xid-continue-tests (Files): Likewise.
3935         * modules/unictype/property-xid-start-tests (Files): Likewise.
3936         * modules/unictype/property-zero-width-tests (Files): Likewise.
3937         * modules/unictype/scripts-tests (Files): Likewise.
3938         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
3939         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
3940         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
3941         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
3942         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
3943         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
3944         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
3945         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
3946         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
3947         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
3948         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
3949         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
3950         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
3951         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
3952         * modules/uninorm/composition-tests (Files): Likewise.
3953         * modules/uninorm/decomposing-form-tests (Files): Likewise.
3954         * modules/uninorm/decomposition-tests (Files): Likewise.
3955         * modules/uninorm/filter-tests (Files): Likewise.
3956         * modules/uninorm/nfc-tests (Files): Likewise.
3957         * modules/uninorm/nfd-tests (Files): Likewise.
3958         * modules/uninorm/nfkc-tests (Files): Likewise.
3959         * modules/uninorm/nfkd-tests (Files): Likewise.
3960         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
3961         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
3962         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
3963         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
3964         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
3965         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
3966         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
3967         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
3968         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
3969         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
3970         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
3971         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
3972         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
3973         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
3974         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
3975         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
3976         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
3977         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
3978         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
3979         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
3980         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
3981         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
3982         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
3983         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
3984         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
3985         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
3986         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
3987         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
3988         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
3989         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
3990         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
3991         * modules/uniwidth/u8-width-tests (Files): Likewise.
3992         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
3993         * modules/uniwidth/u16-width-tests (Files): Likewise.
3994         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
3995         * modules/uniwidth/u32-width-tests (Files): Likewise.
3996         * modules/uniwidth/width-tests (Files): Likewise.
3997         * modules/unlink-tests (Files): Likewise.
3998         * modules/unsetenv-tests (Files): Likewise.
3999         * modules/usleep-tests (Files): Likewise.
4000         * modules/utimens-tests (Files): Likewise.
4001         * modules/utimensat-tests (Files): Likewise.
4002         * modules/vasnprintf-posix-tests (Files): Likewise.
4003         * modules/vasnprintf-tests (Files): Likewise.
4004         * modules/vasprintf-posix-tests (Files): Likewise.
4005         * modules/vasprintf-tests (Files): Likewise.
4006         * modules/vdprintf-posix-tests (Files): Likewise.
4007         * modules/vfprintf-posix-tests (Files): Likewise.
4008         * modules/vprintf-posix-tests (Files): Likewise.
4009         * modules/vsnprintf-posix-tests (Files): Likewise.
4010         * modules/vsnprintf-tests (Files): Likewise.
4011         * modules/vsprintf-posix-tests (Files): Likewise.
4012         * modules/wcrtomb-tests (Files): Likewise.
4013         * modules/wcsnrtombs-tests (Files): Likewise.
4014         * modules/wcsrtombs-tests (Files): Likewise.
4015         * modules/wctype-tests (Files): Likewise.
4016         * modules/wcwidth-tests (Files): Likewise.
4017         * modules/xmemdup0-tests (Files): Likewise.
4018         * modules/xprintf-posix-tests (Files): Likewise.
4019         * modules/xvasprintf-tests (Files): Likewise.
4020
4021 2009-12-24  Eric Blake  <ebb9@byu.net>
4022
4023         test-nanosleep: fix typo
4024         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
4025         patch.
4026         Reported by Bruno Haible.
4027
4028 2009-12-24  Bruno Haible  <bruno@clisp.org>
4029
4030         Reduce namespace pollution on glibc systems.
4031         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
4032         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
4033         systems.
4034         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
4035         <getopt.h> on glibc systems.
4036         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
4037         systems.
4038         * lib/fcntl.c: Include <unistd.h> here instead.
4039
4040 2009-12-24  Bruno Haible  <bruno@clisp.org>
4041
4042         * lib/stdlib.in.h (includes): Fix typo in today's commit.
4043
4044 2009-12-24  Eric Blake  <ebb9@byu.net>
4045
4046         tests: add signature checks
4047         * tests/signature.h (SIGNATURE_CHECK): New file.
4048         * modules/atexit-tests (Files): Use it.
4049         * modules/btowc-tests (Files): Likewise.
4050         * modules/canonicalize-lgpl-tests (Files): Likewise.
4051         * modules/ceilf-tests (Files): Likewise.
4052         * modules/ceill-tests (Files): Likewise.
4053         * modules/chown-tests (Files): Likewise.
4054         * modules/dprintf-posix-tests (Files): Likewise.
4055         * modules/dup2-tests (Files): Likewise.
4056         * modules/dup3-tests (Files): Likewise.
4057         * modules/duplocale-tests (Files): Likewise.
4058         * modules/fchdir-tests (Files): Likewise.
4059         * modules/fcntl-tests (Files): Likewise.
4060         * modules/fdopendir-tests (Files): Likewise.
4061         * modules/fflush-tests (Files): Likewise.
4062         * modules/flock-tests (Files): Likewise.
4063         * modules/floorf-tests (Files): Likewise.
4064         * modules/floorl-tests (Files): Likewise.
4065         * modules/fnmatch-tests (Files): Likewise.
4066         * modules/fopen-tests (Files): Likewise.
4067         * modules/fprintf-posix-tests (Files): Likewise.
4068         * modules/freopen-tests (Files): Likewise.
4069         * modules/frexp-nolibm-tests (Files): Likewise.
4070         * modules/frexp-tests (Files): Likewise.
4071         * modules/frexpl-nolibm-tests (Files): Likewise.
4072         * modules/frexpl-tests (Files): Likewise.
4073         * modules/fseek-tests (Files): Likewise.
4074         * modules/fseeko-tests (Files): Likewise.
4075         * modules/fsync-tests (Files): Likewise.
4076         * modules/ftell-tests (Files): Likewise.
4077         * modules/ftello-tests (Files): Likewise.
4078         * modules/futimens-tests (Files): Likewise.
4079         * modules/getaddrinfo-tests (Files): Likewise.
4080         * modules/getcwd-tests (Files): Likewise.
4081         * modules/getdelim-tests (Files): Likewise.
4082         * modules/getdtablesize-tests (Files): Likewise.
4083         * modules/getgroups-tests (Files): Likewise.
4084         * modules/gethostname-tests (Files): Likewise.
4085         * modules/getline-tests (Files): Likewise.
4086         * modules/getopt-posix-tests (Files): Likewise.
4087         * modules/gettimeofday-tests (Files): Likewise.
4088         * modules/glob-tests (Files): Likewise.
4089         * modules/iconv-tests (Files): Likewise.
4090         * modules/inet_ntop-tests (Files): Likewise.
4091         * modules/inet_pton-tests (Files): Likewise.
4092         * modules/isblank-tests (Files): Likewise.
4093         * modules/lchown-tests (Files): Likewise.
4094         * modules/ldexpl-tests (Files): Likewise.
4095         * modules/link-tests (Files): Likewise.
4096         * modules/linkat-tests (Files): Likewise.
4097         * modules/lseek-tests (Files): Likewise.
4098         * modules/lstat-tests (Files): Likewise.
4099         * modules/mbrtowc-tests (Files): Likewise.
4100         * modules/mbsinit-tests (Files): Likewise.
4101         * modules/mbsnrtowcs-tests (Files): Likewise.
4102         * modules/mbsrtowcs-tests (Files): Likewise.
4103         * modules/memchr-tests (Files): Likewise.
4104         * modules/memcmp-tests (Files): Likewise.
4105         * modules/memmem-tests (Files): Likewise.
4106         * modules/memrchr-tests (Files): Likewise.
4107         * modules/mkdir-tests (Files): Likewise.
4108         * modules/mkfifo-tests (Files): Likewise.
4109         * modules/mkfifoat-tests (Files): Likewise.
4110         * modules/mknod-tests (Files): Likewise.
4111         * modules/nanosleep-tests (Files): Likewise.
4112         * modules/nl_langinfo-tests (Files): Likewise.
4113         * modules/obstack-printf-tests (Files): Likewise.
4114         * modules/open-tests (Files): Likewise.
4115         * modules/openat-tests (Files): Likewise.
4116         * modules/perror-tests (Files): Likewise.
4117         * modules/pipe2-tests (Files): Likewise.
4118         * modules/poll-tests (Files): Likewise.
4119         * modules/popen-tests (Files): Likewise.
4120         * modules/posix_spawn-tests (Files): Likewise.
4121         * modules/posix_spawnp-tests (Files): Likewise.
4122         * modules/pread-tests (Files): Likewise.
4123         * modules/printf-posix-tests (Files): Likewise.
4124         * modules/pty-tests (Files): Likewise.
4125         * modules/random_r-tests (Files): Likewise.
4126         * modules/rawmemchr-tests (Files): Likewise.
4127         * modules/readlink-tests (Files): Likewise.
4128         * modules/remove-tests (Files): Likewise.
4129         * modules/rename-tests (Files): Likewise.
4130         * modules/renameat-tests (Files): Likewise.
4131         * modules/rmdir-tests (Files): Likewise.
4132         * modules/round-tests (Files): Likewise.
4133         * modules/roundf-tests (Files): Likewise.
4134         * modules/roundl-tests (Files): Likewise.
4135         * modules/select-tests (Files): Likewise.
4136         * modules/setenv-tests (Files): Likewise.
4137         * modules/sigaction-tests (Files): Likewise.
4138         * modules/sleep-tests (Files): Likewise.
4139         * modules/snprintf-posix-tests (Files): Likewise.
4140         * modules/snprintf-tests (Files): Likewise.
4141         * modules/sprintf-posix-tests (Files): Likewise.
4142         * modules/stat-tests (Files): Likewise.
4143         * modules/strcasestr-tests (Files): Likewise.
4144         * modules/strchrnul-tests (Files): Likewise.
4145         * modules/strerror-tests (Files): Likewise.
4146         * modules/strsignal-tests (Files): Likewise.
4147         * modules/strstr-tests (Files): Likewise.
4148         * modules/strtod-tests (Files): Likewise.
4149         * modules/strverscmp-tests (Files): Likewise.
4150         * modules/symlink-tests (Files): Likewise.
4151         * modules/symlinkat-tests (Files): Likewise.
4152         * modules/times-tests (Files): Likewise.
4153         * modules/trunc-tests (Files): Likewise.
4154         * modules/truncf-tests (Files): Likewise.
4155         * modules/truncl-tests (Files): Likewise.
4156         * modules/tsearch-tests (Files): Likewise.
4157         * modules/uname-tests (Files): Likewise.
4158         * modules/unlink-tests (Files): Likewise.
4159         * modules/unsetenv-tests (Files): Likewise.
4160         * modules/usleep-tests (Files): Likewise.
4161         * modules/utimensat-tests (Files): Likewise.
4162         * modules/vasprintf-tests (Files): Likewise.
4163         * modules/vdprintf-posix-tests (Files): Likewise.
4164         * modules/vfprintf-posix-tests (Files): Likewise.
4165         * modules/vprintf-posix-tests (Files): Likewise.
4166         * modules/vsnprintf-posix-tests (Files): Likewise.
4167         * modules/vsnprintf-tests (Files): Likewise.
4168         * modules/vsprintf-posix-tests (Files): Likewise.
4169         * modules/wcrtomb-tests (Files): Likewise.
4170         * modules/wcsnrtombs-tests (Files): Likewise.
4171         * modules/wcsrtombs-tests (Files): Likewise.
4172         * modules/wcwidth-tests (Files): Likewise.
4173         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
4174         * tests/test-isinf.c (isinf): Likewise.
4175         * tests/test-isnan.c (isnan): Likewise.
4176         * tests/test-signbit.c (signbit): Likewise.
4177         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
4178         declaration, either as macro or with correct signature.
4179         (select): Ensure function under test is declared with correct
4180         signature in correct header.
4181         * tests/test-atexit.c (atexit): Likewise.
4182         * tests/test-btowc.c (btowc): Likewise.
4183         * tests/test-canonicalize-lgpl.c (realpath)
4184         (canonicalize_file_name): Likewise.
4185         * tests/test-ceilf1.c (ceilf): Likewise.
4186         * tests/test-ceill.c (ceill): Likewise.
4187         * tests/test-chown.c (chown): Likewise.
4188         * tests/test-dprintf-posix.c (dprintf): Likewise.
4189         * tests/test-dup2.c (dup2): Likewise.
4190         * tests/test-dup3.c (dup3): Likewise.
4191         * tests/test-duplocale.c (duplocale): Likewise.
4192         * tests/test-fchdir.c (fchdir): Likewise.
4193         * tests/test-fchownat.c (fchownat): Likewise.
4194         * tests/test-fcntl.c (fcntl): Likewise.
4195         * tests/test-fdopendir.c (fdopendir): Likewise.
4196         * tests/test-fflush.c (fflush): Likewise.
4197         * tests/test-flock.c (flock): Likewise.
4198         * tests/test-floorf1.c (floorf): Likewise.
4199         * tests/test-floorl.c (floorl): Likewise.
4200         * tests/test-fnmatch.c (fnmatch): Likewise.
4201         * tests/test-fopen.c (fopen): Likewise.
4202         * tests/test-fprintf-posix.c (fprintf): Likewise.
4203         * tests/test-freopen.c (freopen): Likewise.
4204         * tests/test-frexp.c (frexp): Likewise.
4205         * tests/test-frexpl.c (frexpl): Likewise.
4206         * tests/test-fseek.c (fseek): Likewise.
4207         * tests/test-fseeko.c (fseeko): Likewise.
4208         * tests/test-fstatat.c (fstatat): Likewise.
4209         * tests/test-fsync.c (fsync): Likewise.
4210         * tests/test-ftell.c (ftell): Likewise.
4211         * tests/test-ftello.c (ftello): Likewise.
4212         * tests/test-futimens.c (futimens): Likewise.
4213         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
4214         (gai_strerror): Likewise.
4215         * tests/test-getcwd.c (getcwd): Likewise.
4216         * tests/test-getdelim.c (getdelim): Likewise.
4217         * tests/test-getdtablesize.c (getdtablesize): Likewise.
4218         * tests/test-getgroups.c (getgroups): Likewise.
4219         * tests/test-gethostname.c (gethostname): Likewise.
4220         * tests/test-getline.c (getline): Likewise.
4221         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
4222         Likewise.
4223         * tests/test-gettimeofday.c (gettimeofday): Likewise.
4224         * tests/test-glob.c (glob, globfree): Likewise.
4225         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
4226         * tests/test-inet_ntop.c (inet_ntop): Likewise.
4227         * tests/test-inet_pton.c (inet_pton): Likewise.
4228         * tests/test-isblank.c (isblank): Likewise.
4229         * tests/test-lchown.c (lchown): Likewise.
4230         * tests/test-ldexpl.c (ldexpl): Likewise.
4231         * tests/test-link.c (link): Likewise.
4232         * tests/test-linkat.c (linkat): Likewise.
4233         * tests/test-lseek.c (lseek): Likewise.
4234         * tests/test-lstat.c (lstat): Likewise.
4235         * tests/test-mbrtowc.c (mbrtowc): Likewise.
4236         * tests/test-mbsinit.c (mbsinit): Likewise.
4237         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
4238         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
4239         * tests/test-memchr.c (memchr): Likewise.
4240         * tests/test-memcmp.c (memcmp): Likewise.
4241         * tests/test-memmem.c (memmem): Likewise.
4242         * tests/test-memrchr.c (memrchr): Likewise.
4243         * tests/test-mkdir.c (mkdir): Likewise.
4244         * tests/test-mkdirat.c (mkdirat): Likewise.
4245         * tests/test-mkfifo.c (mkfifo): Likewise.
4246         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
4247         * tests/test-mknod.c (mknod): Likewise.
4248         * tests/test-nanosleep.c (nanosleep): Likewise.
4249         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
4250         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
4251         Likewise.
4252         * tests/test-open.c (open): Likewise.
4253         * tests/test-openat.c (openat): Likewise.
4254         * tests/test-perror.c (perror): Likewise.
4255         * tests/test-pipe2.c (pipe2): Likewise.
4256         * tests/test-poll.c (poll): Likewise.
4257         * tests/test-popen.c (popen, pclose): Likewise.
4258         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
4259         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
4260         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
4261         (posix_spawn_file_actions_destroy)
4262         (posix_spawn_file_actions_addclose)
4263         (posix_spawn_file_actions_addopen)
4264         (posix_spawn_file_actions_adddup2): Likewise.
4265         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
4266         * tests/test-pread.c (pread): Likewise.
4267         * tests/test-printf-posix.c (printf): Likewise.
4268         * tests/test-pty.c (openpty, forkpty): Likewise.
4269         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
4270         (random_r): Likewise.
4271         * tests/test-rawmemchr.c (rawmemchr): Likewise.
4272         * tests/test-readlink.c (readlink): Likewise.
4273         * tests/test-remove.c (remove): Likewise.
4274         * tests/test-rename.c (rename): Likewise.
4275         * tests/test-renameat.c (renameat): Likewise.
4276         * tests/test-rmdir.c (rmdir): Likewise.
4277         * tests/test-round1.c (round): Likewise.
4278         * tests/test-roundf1.c (roundf): Likewise.
4279         * tests/test-roundl.c (roundl): Likewise.
4280         * tests/test-setenv.c (setenv): Likewise.
4281         * tests/test-sigaction.c (sigaction): Likewise.
4282         * tests/test-sleep.c (sleep): Likewise.
4283         * tests/test-snprintf.c (snprintf): Likewise.
4284         * tests/test-sprintf-posix.c (sprintf): Likewise.
4285         * tests/test-stat.c (stat): Likewise.
4286         * tests/test-stpncpy.c (stpncpy): Likewise.
4287         * tests/test-strcasestr.c (strcasestr): Likewise.
4288         * tests/test-strchrnul.c (strchrnul): Likewise.
4289         * tests/test-strerror.c (strerror): Likewise.
4290         * tests/test-strsignal.c (strsignal): Likewise.
4291         * tests/test-strstr.c (strstr): Likewise.
4292         * tests/test-strtod.c (strtod): Likewise.
4293         * tests/test-strverscmp.c (strverscmp): Likewise.
4294         * tests/test-symlink.c (symlink): Likewise.
4295         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
4296         * tests/test-times.c (times): Likewise.
4297         * tests/test-trunc1.c (trunc): Likewise.
4298         * tests/test-truncf1.c (truncf): Likewise.
4299         * tests/test-truncl.c (truncl): Likewise.
4300         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
4301         Likewise.
4302         * tests/test-uname.c (uname): Likewise.
4303         * tests/test-unlink.c (unlink): Likewise.
4304         * tests/test-unlinkat.c (unlinkat): Likewise.
4305         * tests/test-unsetenv.c (unsetenv): Likewise.
4306         * tests/test-usleep.c (usleep): Likewise.
4307         * tests/test-utimensat.c (utimensat): Likewise.
4308         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
4309         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
4310         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
4311         * tests/test-vprintf-posix.c (vprintf): Likewise.
4312         * tests/test-vsnprintf.c (vsnprintf): Likewise.
4313         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
4314         * tests/test-wcrtomb.c (wcrtomb): Likewise.
4315         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
4316         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
4317         * tests/test-wcwidth.c (wcwidth): Likewise.
4318
4319         build: pull in conditional headers during GNULIB_POSIXCHECK
4320         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
4321         definitions from any conditionally-included headers.
4322         * lib/stdlib.in.h (includes): Likewise.
4323         * lib/unistd.in.h (includes): Likewise.
4324
4325 2009-12-24  Bruno Haible  <bruno@clisp.org>
4326
4327         * tests/test-argv-iter.c: Include header file being tested immediately
4328         after config.h.
4329         * tests/test-base64.c: Likewise.
4330         * tests/test-flock.c: Likewise.
4331         * tests/test-fsync.c: Likewise.
4332         * tests/test-getdate.c: Likewise.
4333         * tests/test-getndelim2.c: Likewise.
4334         * tests/test-isfinite.c: Likewise.
4335         * tests/test-isinf.c: Likewise.
4336         * tests/test-strerror.c: Likewise.
4337         * tests/test-strsignal.c: Likewise.
4338
4339 2009-12-23  Eric Blake  <ebb9@byu.net>
4340
4341         unistd: work around cygwin bug
4342         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
4343         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
4344         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
4345
4346 2009-12-23  Bruno Haible  <bruno@clisp.org>
4347
4348         localename: More tests.
4349         * tests/test-localename.c (SIZEOF): New macro.
4350         (categories): New variable.
4351         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
4352         test_locale_name_default): Add test w.r.t. thread locale.
4353         (test_locale_name_thread): New function.
4354         (main): Invoke it.
4355
4356         localename: Make aware of thread locale.
4357         * lib/localename.h (gl_locale_name_thread): New declaration.
4358         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
4359         behaviour with respect to thread locale.
4360         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
4361         <langinfo.h>, glthread/lock.h.
4362         (SIZE_BITS): New macro.
4363         (string_hash): New function.
4364         (struct hash_node): New type.
4365         (HASH_TABLE_SIZE): New macro.
4366         (struniq_hash_table, struniq_lock): New variables.
4367         (struniq): New function.
4368         (gl_locale_name_thread): New function.
4369         (gl_locale_name): Invoke it.
4370         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
4371         * modules/localename (Depends-on): Add lock.
4372         Reported by Mike Gran <spk121@yahoo.com>.
4373
4374 2009-12-23  Eric Blake  <ebb9@byu.net>
4375
4376         va-args: new module
4377         * modules/va-args: New file.
4378         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
4379         * MODULES.html.sh (Core language properties): Mention it.
4380
4381         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
4382         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
4383         named alias for __attribute__((__unused__)).
4384         * lib/chown.c: Update client.
4385         * lib/fchmodat.c: Likewise.
4386         * lib/fts.c: Likewise.
4387         * lib/getdate.y: Likewise.
4388         * lib/getgroups.c: Likewise.
4389         * lib/getopt.c: Likewise.
4390         * lib/getugroups.c: Likewise.
4391         * lib/mkdir.c: Likewise.
4392         * lib/mkfifo.c: Likewise.
4393         * lib/mkfifoat.c: Likewise.
4394         * lib/mknod.c: Likewise.
4395         * lib/mknodat.c: Likewise.
4396         * lib/readlink.c: Likewise.
4397         * lib/se-context.in.h: Likewise.
4398         * lib/se-selinux.in.h: Likewise.
4399         * lib/sockets.c: Likewise.
4400         * lib/symlink.c: Likewise.
4401         * lib/symlinkat.c: Likewise.
4402         * lib/unicodeio.c: Likewise.
4403         * lib/unistr.h: Likewise.
4404         * tests/test-areadlink.c: Likewise.
4405         * tests/test-areadlinkat.c: Likewise.
4406         * tests/test-filenamecat.c: Likewise.
4407         * tests/test-fseeko.c: Likewise.
4408         * tests/test-ftello.c: Likewise.
4409         * tests/test-getdate.c: Likewise.
4410         * tests/test-getgroups.c: Likewise.
4411         * tests/test-gethostname.c: Likewise.
4412         * tests/test-quotearg.c: Likewise.
4413         * tests/test-version-etc.c: Likewise.
4414         * tests/test-xalloc-die.c: Likewise.
4415         * tests/test-xfprintf-posix.c: Likewise.
4416         * tests/test-xprintf-posix.c: Likewise.
4417         * tests/test-xvasprintf.c: Likewise.
4418
4419         tests: avoid compiler warnings
4420         * tests/test-fcntl.c (main): Delete unused parameters.
4421         * tests/test-freopen-safer.c (main): Likewise.
4422         * tests/test-xalloc-die.c (main): Mark unused parameters.
4423         * tests/test-fseeko.c (main): Likewise.
4424         * tests/test-ftello.c (main): Likewise.
4425         * tests/test-nanosleep.c (main): Avoid declaration warning.
4426         * tests/test-sleep.c (main): Likewise.
4427         * tests/test-unsetenv.c (main): Silence warning about string
4428         literal.
4429         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
4430
4431 2009-12-23  Bruno Haible  <bruno@clisp.org>
4432
4433         * tests/test-localename.c (test_locale_name): New function, extracted
4434         from main. Also test mixed situations.
4435         (test_locale_name_posix, test_locale_name_environ,
4436         test_locale_name_default): New functions.
4437         (main): Invoke them all.
4438         * modules/localename-tests (configure.ac): Test for newlocale.
4439
4440 2009-12-23  Bruno Haible  <bruno@clisp.org>
4441
4442         unistd: Ensure getcwd gets declared before being overridden.
4443         * lib/unistd.in.h: Conditionally include <io.h>.
4444
4445 2009-12-22  Bruno Haible  <bruno@clisp.org>
4446
4447         wchar: Diagnose broken combination of glibc and gcc versions and flags.
4448         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
4449         (gl_WCHAR_H): Invoke it.
4450         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
4451         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
4452         Reported by Karl Berry <karl@freefriends.org>.
4453
4454 2009-12-22  Eric Blake  <ebb9@byu.net>
4455
4456         math, unistd: avoid redundant includes
4457         * lib/math.in.h (isnan): No need to re-include <math.h>.
4458         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
4459
4460         getsubopt: work around cygwin bug
4461         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
4462         avoid conflicting with system getsubopt.
4463         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
4464         bug.
4465
4466         getopt: synchronize from glibc
4467         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
4468         parameter order.  Adjust all callers.
4469         (_getopt_internal_r, main): Adjust quoting in error messages.
4470         Drop considerations for outdated POSIX 1003.2 error message.
4471         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
4472         callers.
4473         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
4474
4475         test-getopt: test stderr behavior
4476         * modules/getopt-posix-tests (Depends-on): Add dup2.
4477         * tests/test-getopt.c (ASSERT): Avoid stderr.
4478         (main): Move stderr to a temporary file.
4479         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
4480         Instead, add parameter to inform caller if output occurred.
4481         (test_getopt): Adjust all existing tests to expect silence, and
4482         add new tests of leading ":".
4483         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
4484         glibc shortcomings with leading "-:" or "+:" in optstring.
4485         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4486         Likewise.
4487         * doc/posix-functions/getopt.texi (getopt): Likewise.
4488
4489         test-getopt: enhance test
4490         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
4491         supports optind=0.
4492         * tests/test-getopt.c (OPTIND_MIN): Move...
4493         * tests/test-getopt.h (OPTIND_MIN): ...here.
4494         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
4495         Require that optind=0 works, since modern BSD supports it in
4496         addition to optreset, and since coreutils expects it.
4497         (test_getopt_long_only): New test.
4498         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
4499         glibc shortcomings with 'W;', and enforcement of optind=0.
4500         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4501         Likewise.
4502
4503 2009-12-21  Bruno Haible  <bruno@clisp.org>
4504
4505         localename: Improvements for MacOS X and Cygwin.
4506         * lib/localename.h (gl_locale_name_environ): New declaration.
4507         * lib/localename.c (gl_locale_name_environ): New function, extracted from
4508         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
4509         (gl_locale_name_posix): Invoke it.
4510         (gl_locale_name_default): Add comments. Use Windows native API also on
4511         Cygwin.
4512
4513 2009-12-21  Bruno Haible  <bruno@clisp.org>
4514
4515         Update list of Win32 locale ids.
4516         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
4517         (LANG_SAMI): Renamed from LANG_SAAMI.
4518         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
4519         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
4520         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
4521         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
4522         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
4523         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
4524         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
4525         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
4526         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
4527         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
4528         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
4529         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
4530         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
4531         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
4532         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
4533         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
4534         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
4535         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
4536         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
4537         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
4538         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
4539         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
4540         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
4541         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
4542         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
4543         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
4544         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
4545         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
4546         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
4547         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
4548         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
4549         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
4550         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
4551         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
4552         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
4553         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
4554         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
4555         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
4556         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
4557         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
4558         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
4559         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
4560         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
4561         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
4562         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
4563         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
4564         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
4565         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
4566         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
4567         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
4568         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
4569         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
4570         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
4571         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
4572         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
4573         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
4574         Add more languages and countries for Sami, Sorbian. Add more countries
4575         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
4576         for Pashto. Change country for Syriac, Tswana.
4577
4578 2009-12-21  Eric Blake  <ebb9@byu.net>
4579
4580         test-utimens: avoid spurious failure
4581         * tests/test-chown.h (nap): Factor...
4582         * tests/nap.h: ...into new file.
4583         * tests/test-lchown.h (nap): Avoid duplication.
4584         * tests/test-utimens-common.h (nap): Use shared implementation,
4585         necessary on file systems with 1-second resolution.
4586         * modules/chown-tests (Files): Include new file.
4587         * modules/fdutimensat-tests (Files): Likewise.
4588         * modules/futimens-tests (Files): Likewise.
4589         * modules/lchown-tests (Files): Likewise.
4590         * modules/openat-tests (Files): Likewise.
4591         * modules/utimens-tests (Files): Likewise.
4592         * modules/utimensat-tests (Files): Likewise.
4593
4594 2009-12-19  Eric Blake  <ebb9@byu.net>
4595
4596         futimens, utimensat: work around Linux bug
4597         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
4598         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4599         * lib/utimensat.c (rpl_utimensat): Work around it.
4600         * lib/futimens.c (rpl_futimens): Adjust comment.
4601
4602         utimens: work around Linux ctime bug
4603         * lib/utimens.c (detect_ctime_bug): New helper function.
4604         (update_timespec): Differentiate between workaround needed for
4605         this bug vs. what is needed for systems that lack utimensat.
4606         (fdutimens, lutimens): Work around bug.
4607
4608         utimens: check for ctime update
4609         * tests/test-utimens-common.h (check_ctime): Define.
4610         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
4611         * tests/test-futimens.h (test_futimens): Likewise.
4612         * tests/test-lutimens.h (test_lutimens): Likewise.
4613         * doc/posix-functions/futimens.texi (futimens): Document the bug.
4614         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
4615
4616 2009-12-19  Bruno Haible  <bruno@clisp.org>
4617
4618         dprintf-posix: Check against memory leak fixed on 2009-12-15.
4619         * tests/test-dprintf-posix2.sh: New file.
4620         * tests/test-dprintf-posix2.c: New file.
4621         * modules/dprintf-posix-tests (Files): Add them.
4622         (configure.ac): Check for getrlimit and setrlimit.
4623         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
4624
4625 2009-12-19  Bruno Haible  <bruno@clisp.org>
4626
4627         fprintf-posix: Check against memory leak fixed on 2009-12-15.
4628         * tests/test-fprintf-posix3.sh: New file.
4629         * tests/test-fprintf-posix3.c: New file.
4630         * modules/fprintf-posix-tests (Files): Add them.
4631         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
4632
4633 2009-12-19  Eric Blake  <ebb9@byu.net>
4634
4635         dirfd: fix prototype
4636         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
4637         * lib/dirfd.c (dirfd): Likewise.
4638
4639         canonicalize: reduce memory usage
4640         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
4641         allocation to size.
4642         Reported by Solar Designer <solar@openwall.com>.
4643
4644 2009-12-19  Bruno Haible  <bruno@clisp.org>
4645
4646         New module attribute 'Applicability'.
4647         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
4648         * gnulib-tool: New option --extract-applicability.
4649         (func_usage): Document it.
4650         (sed_extract_prog): Recognize it.
4651         (func_get_applicability): New function.
4652         (func_import): Generalize handling of 'link-warning' module.
4653         * modules/link-warning (Applicability): New section.
4654         * modules/arg-nonnull (Applicability): New section.
4655         Repoted by Simon Josefsson <simon@josefsson.org>.
4656
4657 2009-12-19  Bruno Haible  <bruno@clisp.org>
4658
4659         fflush: tweak
4660         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
4661         * lib/fseeko.c (rpl_fseeko): Likewise.
4662
4663 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
4664
4665         * lib/gl_list.h: Fix typo in comment.
4666
4667 2009-12-16  Eric Blake  <ebb9@byu.net>
4668
4669         fcntl: use to simplify other modules
4670         * modules/cloexec (Depends-on): Add fcntl.
4671         * modules/fchdir (Depends-on): Likewise.
4672         * modules/fd-safer-flag (Depends-on): Likewise.
4673         * modules/unistd-safer (Depends-on): Likewise.
4674         * modules/dup3 (configure.ac): Set module indicator.
4675         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
4676         missing.
4677         * lib/fchdir.c (_gl_register_dup): Fix comment.
4678         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
4679         * lib/dup-safer.c (dup_safer): Likewise.
4680         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
4681         * lib/dup3.c (dup3): Likewise.
4682         * tests/test-fchdir.c (main): Enhance test.
4683         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
4684
4685         fcntl: port portions of fcntl to mingw
4686         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
4687         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
4688         replacement for mingw.
4689         * modules/fcntl (Description): Update.
4690         (Depends-on): Add dup2.
4691         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
4692         * modules/fcntl-h (Makefile.am): Substitute it.
4693         * lib/fcntl.in.h (fcntl): Update declaration.
4694         (F_DUPFD, F_GETFD): New macros, when needed.
4695         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
4696         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
4697         * tests/test-fcntl.c (check_flags, main): Enhance test for items
4698         we now guarantee.
4699
4700         fcntl: work around cygwin bug in F_DUPFD
4701         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
4702         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
4703         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
4704         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
4705         * doc/posix-functions/fcntl.texi (fcntl): Document it.
4706
4707         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
4708         * modules/fcntl (Files): List new files.
4709         (configure.ac): Run a test.
4710         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
4711         * lib/fcntl.c (rpl_fcntl): Likewise.
4712         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
4713         (gl_FCNTL_H): Always replace fcntl.h.
4714         * modules/fcntl-h (Makefile.am): Substitute witnesses.
4715         * lib/fcntl.in.h (fcntl): Declare replacement.
4716         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
4717         needed, plus a witness.
4718         * doc/posix-functions/fcntl.texi (fcntl): Document this.
4719         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
4720         * tests/test-fcntl.c: New file.
4721         * modules/fcntl-tests: Likewise.
4722
4723         binary-io: avoid potential compilation warning
4724         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
4725         directives.
4726
4727         fflush: avoid compilation error on NetBSD
4728         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
4729         between off_t and fpos_t, since the latter is sometimes a struct.
4730         * lib/fseeko.c (rpl_fseeko): Likewise.
4731         Reported by Alexander Nasonov <alnsn@yandex.ru>.
4732
4733 2009-12-15  Eric Blake  <ebb9@byu.net>
4734
4735         fcntl-h, stdio, sys_ioctl: fix declarations
4736         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
4737         function must not take arguments.
4738         * lib/sys_ioctl.in.h (ioctl): Likewise.
4739         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
4740         (open): Add a link warning.
4741
4742 2009-12-15  Jim Meyering  <meyering@redhat.com>
4743
4744         areadlink, areadlink-with-size: relax license to LGPLv2+
4745         * modules/areadlink (License): Relax to LGPLv2+.
4746         * modules/areadlink-with-size (License): Likewise.
4747
4748 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
4749             Bruno Haible  <bruno@clisp.org>
4750
4751         *printf: Fix memory leak.
4752         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
4753         * lib/vfprintf.c (vfprintf): Likewise.
4754         * lib/dprintf.c (dprintf): Likewise.
4755         * lib/vdprintf.c (vdprintf): Likewise.
4756
4757 2009-12-14  Eric Blake  <ebb9@byu.net>
4758
4759         accept4: adjust module dependencies
4760         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
4761
4762         utimens: one more try at avoiding compiler warning
4763         * lib/utimens.c (lutimens): Lower scope of result.
4764
4765 2009-12-13  Bruno Haible  <bruno@clisp.org>
4766
4767         Move the malloc checking from module 'list' to new module 'xlist'.
4768         * modules/xlist: New file.
4769         * lib/gl_xlist.h: New file.
4770         * lib/gl_xlist.c: New file.
4771         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
4772         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
4773         gl_list_add_last, gl_list_add_before, gl_list_add_after,
4774         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
4775         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
4776         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
4777         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
4778         gl_sortedlist_nx_add): New declarations.
4779         (struct gl_list_implementation): Rename and change methods accordingly.
4780         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
4781         (gl_list_nx_create): Renamed from gl_list_create.
4782         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
4783         (gl_list_nx_set_at): Renamed from gl_list_set_at.
4784         (gl_list_nx_add_first): Renamed from gl_list_add_first.
4785         (gl_list_nx_add_last): Renamed from gl_list_add_last.
4786         (gl_list_nx_add_before): Renamed from gl_list_add_before.
4787         (gl_list_nx_add_after): Renamed from gl_list_add_after.
4788         (gl_list_nx_add_at): Renamed from gl_list_add_at.
4789         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
4790         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
4791         gl_list_create_empty.
4792         (gl_list_nx_create): Renamed from gl_list_create.
4793         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
4794         (gl_list_nx_set_at): Renamed from gl_list_set_at.
4795         (gl_list_nx_add_first): Renamed from gl_list_add_first.
4796         (gl_list_nx_add_last): Renamed from gl_list_add_last.
4797         (gl_list_nx_add_before): Renamed from gl_list_add_before.
4798         (gl_list_nx_add_after): Renamed from gl_list_add_after.
4799         (gl_list_nx_add_at): Renamed from gl_list_add_at.
4800         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
4801         * lib/gl_array_list.c: Don't include xalloc.h.
4802         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
4803         NULL upon out-of-memory.
4804         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
4805         out-of-memory.
4806         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
4807         Change return type to 'int'.
4808         (gl_array_nx_set_at): Renamed from gl_array_set_at.
4809         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
4810         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
4811         upon out-of-memory.
4812         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
4813         upon out-of-memory.
4814         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
4815         upon out-of-memory.
4816         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
4817         upon out-of-memory.
4818         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
4819         out-of-memory.
4820         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
4821         Update.
4822         (gl_array_list_implementation): Update.
4823         * lib/gl_carray_list.c: Don't include xalloc.h.
4824         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
4825         Return NULL upon out-of-memory.
4826         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
4827         out-of-memory.
4828         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
4829         Change return type to 'int'.
4830         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
4831         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
4832         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
4833         upon out-of-memory.
4834         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
4835         upon out-of-memory.
4836         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
4837         out-of-memory.
4838         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
4839         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
4840         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
4841         Update.
4842         (gl_carray_list_implementation): Update.
4843         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
4844         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
4845         gl_linked_create_empty. Return NULL upon out-of-memory.
4846         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
4847         out-of-memory.
4848         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
4849         Change return type to 'int'. Return -1 upon out-of-memory.
4850         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
4851         out-of-memory.
4852         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
4853         upon out-of-memory.
4854         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
4855         upon out-of-memory.
4856         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
4857         NULL upon out-of-memory.
4858         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
4859         upon out-of-memory.
4860         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
4861         out-of-memory.
4862         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
4863         Update.
4864         * lib/gl_linked_list.c: Don't include xalloc.h.
4865         (gl_linked_list_implementation): Update.
4866         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
4867         (add_to_bucket): Change return type to 'int'.
4868         (gl_linkedhash_list_implementation): Update.
4869         * lib/gl_anytree_list1.h (free_subtree): New function.
4870         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
4871         gl_tree_create_empty. Return NULL upon out-of-memory.
4872         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
4873         Change return type to 'int'. Return -1 upon out-of-memory.
4874         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
4875         out-of-memory.
4876         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
4877         (gl_tree_remove_node): New function, moved here from
4878         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
4879         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
4880         Update.
4881         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
4882         malloc, not xmalloc. Return NULL upon out-of-memory.
4883         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
4884         out-of-memory.
4885         (gl_tree_remove_node_from_tree): New function, extracted from
4886         gl_tree_remove_node.
4887         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
4888         upon out-of-memory.
4889         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
4890         out-of-memory.
4891         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
4892         upon out-of-memory.
4893         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
4894         upon out-of-memory.
4895         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
4896         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
4897         not xmalloc. Return NULL upon out-of-memory.
4898         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
4899         out-of-memory.
4900         (gl_tree_remove_node_from_tree): New function, extracted from
4901         gl_tree_remove_node.
4902         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
4903         upon out-of-memory.
4904         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
4905         out-of-memory.
4906         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
4907         upon out-of-memory.
4908         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
4909         upon out-of-memory.
4910         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
4911         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
4912         gl_anytree_list1.h before gl_anyavltree_list2.h.
4913         (gl_avltree_list_implementation): Update.
4914         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
4915         gl_anytree_list1.h before gl_anyavltree_list2.h.
4916         (gl_rbtree_list_implementation): Update.
4917         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
4918         Change return type to 'int'. Return -1 upon out-of-memory. Use
4919         __builtin_expect.
4920         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
4921         (gl_avltreehash_list_implementation): Update.
4922         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
4923         (gl_rbtreehash_list_implementation): Update.
4924         * modules/array-list (Depends-on): Remove xalloc.
4925         * modules/carray-list (Depends-on): Likewise.
4926         * modules/linked-list (Depends-on): Likewise.
4927         * modules/linkedhash-list (Depends-on): Likewise.
4928         * modules/avltree-list (Depends-on): Likewise.
4929         * modules/rbtree-list (Depends-on): Likewise.
4930         * modules/avltreehash-list (Depends-on): Likewise.
4931         * modules/rbtreehash-list (Depends-on): Likewise.
4932
4933         * modules/xsublist: New file.
4934         * lib/gl_xsublist.h: New file.
4935         * lib/gl_xsublist.c: New file.
4936         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
4937         (gl_sublist_nx_create): New declaration.
4938         * lib/gl_sublist.c: Don't include xalloc.h.
4939         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
4940         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
4941         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
4942         Change return type to 'int'. Return -1 upon out-of-memory.
4943         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
4944         upon out-of-memory.
4945         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
4946         NULL upon out-of-memory.
4947         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
4948         upon out-of-memory.
4949         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
4950         NULL upon out-of-memory.
4951         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
4952         NULL upon out-of-memory.
4953         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
4954         upon out-of-memory.
4955         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
4956         (gl_sublist_list_implementation): Update.
4957         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
4958         upon out-of-memory.
4959         * modules/sublist (Depends-on): Remove xalloc.
4960
4961         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
4962         * tests/test-carray_list.c: Likewise.
4963         * tests/test-linked_list.c: Likewise.
4964         * tests/test-linkedhash_list.c: Likewise.
4965         * tests/test-avltree_list.c: Likewise.
4966         * tests/test-rbtree_list.c: Likewise.
4967         * tests/test-avltreehash_list.c: Likewise.
4968         * tests/test-rbtreehash_list.c: Likewise.
4969         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
4970         * modules/carray-list-tests (Makefile.am): Likewise.
4971         * modules/linked-list-tests (Makefile.am): Likewise.
4972         * modules/linkedhash-list-tests (Makefile.am): Likewise.
4973         * modules/avltree-list-tests (Makefile.am): Likewise.
4974         * modules/rbtree-list-tests (Makefile.am): Likewise.
4975         * modules/avltreehash-list-tests (Makefile.am): Likewise.
4976         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
4977
4978         * NEWS: Mention the changes.
4979
4980         * lib/clean-temp.c: Include gl_xlist.h.
4981         * modules/clean-temp (Depends-on): Add xlist.
4982
4983         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
4984         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
4985
4986         * tests/test-array_oset.c: Include gl_xlist.h.
4987         * modules/array-oset-tests (Depends-on): Add xlist.
4988
4989         Reported by José E. Marchesi <jemarch@gnu.org>.
4990
4991 2009-12-13  Bruno Haible  <bruno@clisp.org>
4992
4993         Move the malloc checking from module 'oset' to new module 'xoset'.
4994         * modules/xoset: New file.
4995         * lib/gl_xoset.h: New file.
4996         * lib/gl_xoset.c: New file.
4997         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
4998         declarations.
4999         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
5000         (struct gl_oset_implementation): Rename and change methods accordingly.
5001         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
5002         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5003         'int'. Mark as __warn_unused_result__.
5004         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
5005         gl_oset_create_empty.
5006         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5007         'int'.
5008         * lib/gl_array_oset.c: Don't include xalloc.h.
5009         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
5010         malloc, not xmalloc.
5011         (grow): Change return type to 'int'. Don't call xalloc_die.
5012         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
5013         to 'int'.
5014         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
5015         'int'.
5016         (gl_array_oset_implementation): Update.
5017         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
5018         gl_tree_create_empty.
5019         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
5020         'int'.
5021         * lib/gl_avltree_oset.c: Don't include xalloc.h.
5022         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5023         xmalloc.
5024         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5025         not xmalloc.
5026         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5027         xmalloc.
5028         (gl_avltree_oset_implementation): Update.
5029         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
5030         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5031         xmalloc.
5032         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5033         not xmalloc.
5034         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5035         xmalloc.
5036         (gl_rbtree_oset_implementation): Update.
5037         * modules/array-oset (Depends-on): Remove xalloc.
5038         * modules/avltree-oset (Depends-on): Likewise.
5039         * modules/rbtree-oset (Depends-on): Likewise.
5040         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
5041         * tests/test-avltree_oset.c: Likewise.
5042         * tests/test-rbtree_oset.c: Likewise.
5043         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
5044         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
5045         * modules/rbtree-oset-tests (Makefile.am): Likewise.
5046         * NEWS: Mention the change.
5047
5048 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
5049
5050         maint.mk: allow a project to override release-prep commands
5051         * top/maint.mk (alpha, beta, stable): Move release-preparatory
5052         commands into a new rule.
5053         (release-prep): New rule.
5054         (release-prep-hook): New overridable variable.
5055
5056 2009-12-13  Bruno Haible  <bruno@clisp.org>
5057
5058         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
5059
5060 2009-12-13  Jim Meyering  <meyering@redhat.com>
5061
5062         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
5063         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
5064
5065 2009-12-12  Bruno Haible  <bruno@clisp.org>
5066
5067         duplocale: Tweak.
5068         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
5069
5070 2009-12-12  Karl Berry  <karl@gnu.org>
5071
5072         * config/srclist.txt (strtoll.c): tab changes, no more sync.
5073
5074 2009-12-12  Bruno Haible  <bruno@clisp.org>
5075
5076         * m4/po.m4: Undo incorrect untabification.
5077
5078 2009-12-12  Bruno Haible  <bruno@clisp.org>
5079
5080         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
5081         * modules/c-strtod (Depends-on): Add locale.
5082         * modules/c-strtold (Depends-on): Likewise.
5083
5084 2009-12-12  Bruno Haible  <bruno@clisp.org>
5085
5086         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
5087
5088 2009-12-11  Eric Blake  <ebb9@byu.net>
5089
5090         setenv: relax requirement in light of POSIX ruling
5091         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
5092         not NULL.
5093         * tests/test-setenv.c (main): Relax test.
5094         * tests/test-unsetenv.c (main): Likewise.
5095         * doc/posix-functions/setenv.texi (setenv): Document this.
5096         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
5097
5098 2009-12-11  Bruno Haible  <bruno@clisp.org>
5099
5100         New module 'fd-safer-flag'.
5101         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
5102         * lib/dup-safer.c (dup_safer_flag): Remove function.
5103         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
5104         * lib/fd-safer.c (fd_safer_flag): Remove function.
5105         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
5106         * modules/cloexec (configure.ac): Drop indicator macro.
5107         * modules/fd-safer-flag: New file.
5108         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
5109         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
5110         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
5111
5112 2009-12-11  Bruno Haible  <bruno@clisp.org>
5113
5114         Tests for module 'nl_langinfo'.
5115         * modules/nl_langinfo-tests: New file.
5116         * tests/test-nl_langinfo.sh: New file.
5117         * tests/test-nl_langinfo.c: New file.
5118
5119         New module 'nl_langinfo'.
5120         * lib/nl_langinfo.c: New file.
5121         * m4/nl_langinfo.m4: New file.
5122         * modules/nl_langinfo: New file.
5123         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
5124
5125 2009-12-11  Bruno Haible  <bruno@clisp.org>
5126
5127         Tests for module 'langinfo'.
5128         * modules/langinfo-tests: New file.
5129         * tests/test-langinfo.c: New file.
5130
5131         New module 'langinfo'.
5132         * lib/langinfo.in.h: New file.
5133         * m4/langinfo_h.m4: New file.
5134         * modules/langinfo: New file.
5135         * doc/posix-headers/langinfo.texi: Mention the new module.
5136
5137 2009-12-11  Bruno Haible  <bruno@clisp.org>
5138
5139         * lib/config.charset: Untabify.
5140
5141 2009-12-11  Bruno Haible  <bruno@clisp.org>
5142
5143         * modules/unistd-safer (configure.ac): Drop indicator macro.
5144
5145 2009-12-11  Bruno Haible  <bruno@clisp.org>
5146
5147         Move pipe2-safer code to its own file.
5148         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
5149         * lib/pipe-safer.c (pipe2_safer): Remove function.
5150         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
5151         (Makefile.am): Add it to lib_SOURCES.
5152
5153 2009-12-10  Bruno Haible  <bruno@clisp.org>
5154
5155         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
5156
5157 2009-12-10  Bruno Haible  <bruno@clisp.org>
5158
5159         Declare which arguments expect non-NULL values, for GCC and clang.
5160         * build-aux/arg-nonnull.h: New file.
5161         * modules/arg-nonnull: New file.
5162         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
5163         (inet_ntop, inet_pton): Use it.
5164         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
5165         (closedir, dirfd, opendir, scandir, alphasort): Use it.
5166         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
5167         (open, openat): Use it.
5168         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
5169         (fnmatch): Use it.
5170         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
5171         (getopt, getopt_long, getopt_long_only): Use it.
5172         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
5173         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
5174         Use it.
5175         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
5176         (iconv_open): Use it.
5177         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
5178         (strtoimax, strtoumax): Use it.
5179         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
5180         (duplocale): Use it.
5181         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
5182         (frexp, frexpl): Use it.
5183         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
5184         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
5185         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
5186         (tsearch, tfind, tdelete, twalk): Use it.
5187         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
5188         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
5189         sigpending): Use it.
5190         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
5191         (posix_spawn, posix_spawnp, posix_spawnattr_init,
5192         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
5193         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
5194         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
5195         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
5196         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
5197         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
5198         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
5199         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
5200         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
5201         Use it.
5202         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
5203         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
5204         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
5205         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
5206         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
5207         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
5208         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
5209         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
5210         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
5211         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
5212         strtoull, unsetenv): Use it.
5213         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
5214         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
5215         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
5216         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
5217         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
5218         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
5219         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
5220         (strcasecmp, strncasecmp): Use it.
5221         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
5222         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
5223         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
5224         rpl_setsockopt): Use it.
5225         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
5226         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
5227         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
5228         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
5229         (gettimeofday): Use it.
5230         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
5231         (times): Use it.
5232         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
5233         (uname): Use it.
5234         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
5235         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
5236         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
5237         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
5238         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
5239         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
5240         unlinkat, write): Use it.
5241         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
5242         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
5243         * lib/argv-iter.h: Include arg-nonnull.h.
5244         (_ATTRIBUTE_NONNULL_): Remove macro.
5245         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
5246         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
5247         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
5248         optimization.
5249         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
5250         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
5251         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
5252         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
5253         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
5254         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
5255         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
5256         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
5257         * modules/arpa_inet (Depends-on): Add arg-nonnull.
5258         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
5259         * modules/dirent (Depends-on): Add arg-nonnull.
5260         (Makefile.am): Insert arg-nonnull.h into dirent.h.
5261         * modules/fcntl-h (Depends-on): Add arg-nonnull.
5262         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
5263         * modules/fnmatch (Depends-on): Add arg-nonnull.
5264         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
5265         * modules/getopt-posix (Depends-on): Add arg-nonnull.
5266         (Makefile.am): Insert arg-nonnull.h into getopt.h.
5267         * modules/glob (Depends-on): Add arg-nonnull.
5268         (Makefile.am): Insert arg-nonnull.h into glob.h.
5269         * modules/iconv_open (Depends-on): Add arg-nonnull.
5270         (Makefile.am): Insert arg-nonnull.h into iconv.h.
5271         * modules/inttypes (Depends-on): Add arg-nonnull.
5272         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
5273         * modules/locale (Depends-on): Add arg-nonnull.
5274         (Makefile.am): Insert arg-nonnull.h into locale.h.
5275         * modules/math (Depends-on): Add arg-nonnull.
5276         (Makefile.am): Insert arg-nonnull.h into math.h.
5277         * modules/netdb (Depends-on): Add arg-nonnull.
5278         (Makefile.am): Insert arg-nonnull.h into netdb.h.
5279         * modules/search (Depends-on): Add arg-nonnull.
5280         (Makefile.am): Insert arg-nonnull.h into search.h.
5281         * modules/signal (Depends-on): Add arg-nonnull.
5282         (Makefile.am): Insert arg-nonnull.h into signal.h.
5283         * modules/spawn (Depends-on): Add arg-nonnull.
5284         (Makefile.am): Insert arg-nonnull.h into spawn.h.
5285         * modules/stdio (Depends-on): Add arg-nonnull.
5286         (Makefile.am): Insert arg-nonnull.h into stdio.h.
5287         * modules/stdlib (Depends-on): Add arg-nonnull.
5288         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
5289         * modules/string (Depends-on): Add arg-nonnull.
5290         (Makefile.am): Insert arg-nonnull.h into string.h.
5291         * modules/strings (Depends-on): Add arg-nonnull.
5292         (Makefile.am): Insert arg-nonnull.h into strings.h.
5293         * modules/sys_socket (Depends-on): Add arg-nonnull.
5294         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
5295         * modules/sys_stat (Depends-on): Add arg-nonnull.
5296         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
5297         * modules/sys_time (Depends-on): Add arg-nonnull.
5298         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
5299         * modules/sys_times (Depends-on): Add arg-nonnull.
5300         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
5301         * modules/sys_utsname (Depends-on): Add arg-nonnull.
5302         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
5303         * modules/time (Depends-on): Add arg-nonnull.
5304         (Makefile.am): Insert arg-nonnull.h into time.h.
5305         * modules/unistd (Depends-on): Add arg-nonnull.
5306         (Makefile.am): Insert arg-nonnull.h into unistd.h.
5307         * modules/wchar (Depends-on): Add arg-nonnull.
5308         (Makefile.am): Insert arg-nonnull.h into wchar.h.
5309         * modules/argv-iter (Depends-on): Add arg-nonnull.
5310         * tests/test-canonicalize.c (null_ptr): New function.
5311         (main): Use it.
5312         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
5313         (main): Use it.
5314         * tests/test-memmem.c (null_ptr): New function.
5315         (main): Use it.
5316         Reported by Jim Meyering.
5317
5318 2009-12-10  Bruno Haible  <bruno@clisp.org>
5319
5320         Use spaces for indentation, not tabs.
5321         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
5322         * m4/*.m4: Untabify.
5323         * build-aux/*.h: Untabify.
5324         * tests/**/*.[hc]: Untabify.
5325         * README: New section "Indent with spaces, not TABs", based on
5326         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
5327         * NEWS: Mention the change.
5328
5329 2009-12-10  Bruno Haible  <bruno@clisp.org>
5330
5331         pty test: Fix link error.
5332         * modules/pty-tests (Makefile.am): Add the default LDADD value to
5333         test_pty_LDADD.
5334
5335 2009-12-07  Simon Josefsson  <simon@josefsson.org>
5336
5337         * modules/pty: New file.
5338         * modules/pty-tests: New file.
5339         * m4/pty.m4: New file.
5340         * tests/test-pty.c: New file.
5341         * doc/glibc-headers/pty.texi: Modified.
5342         * doc/glibc-functions/forkpty.texi: Modified.
5343         * doc/glibc-functions/openpty.texi: Modified.
5344
5345 2009-12-10  Bruno Haible  <bruno@clisp.org>
5346
5347         Avoid syntax error in C++ mode.
5348         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
5349
5350 2009-12-10  Bruno Haible  <bruno@clisp.org>
5351
5352         Use sed with option -e.
5353         * gnulib-tool (func_version, func_emit_copyright_notice,
5354         func_emit_initmacro_end, func_import, func_create_testdir): Pass
5355         option -e to sed.
5356         * modules/link-warning (Makefile.am): Likewise.
5357
5358 2009-12-10  Jim Meyering  <meyering@redhat.com>
5359
5360         mgetgroups: do not write bytes beyond end of malloc'd buffer
5361         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
5362         username, we call getgroups with a one-element-shorter buffer,
5363         but still told it the length was original, max_n_groups.
5364
5365 2009-12-09  Eric Blake  <ebb9@byu.net>
5366
5367         cloexec: relax license
5368         * modules/cloexec (Maintainer): Add myself.
5369         (License): Use LGPL, not GPL.
5370
5371         link-warning: optimize generation
5372         * modules/link-warning (Makefile.am): Reduce process usage.
5373
5374 2009-12-09  Bruno Haible  <bruno@clisp.org>
5375
5376         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
5377         workaround was added on 2009-11-17.
5378
5379 2009-12-09  Jim Meyering  <meyering@redhat.com>
5380             Bruno Haible  <bruno@clisp.org>
5381
5382         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
5383         * modules/link-warning (Makefile.am): Make the comment-removing sed
5384         command more robust in the face of bootstrap-prepended comment lines.
5385
5386 2009-12-09  Bruno Haible  <bruno@clisp.org>
5387
5388         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
5389         most one group.
5390
5391 2009-12-09  Simon Josefsson <simon@josefsson.org>
5392             Bruno Haible  <bruno@clisp.org>
5393
5394         * build-aux/link-warning.h: Add copyright notice.
5395         * modules/link-warning (Makefile.am): Generate link-warning.h from
5396         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
5397         * NEWS: Mention change in link-warning module.
5398         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
5399         * modules/dirent (Makefile.am): Add dependency to dirent.h.
5400         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
5401         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
5402         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
5403         * modules/math (Makefile.am): Add dependency to math.h.
5404         * modules/search (Makefile.am): Add dependency to search.h.
5405         * modules/signal (Makefile.am): Add dependency to signal.h.
5406         * modules/spawn (Makefile.am): Add dependency to spawn.h.
5407         * modules/stdio (Makefile.am): Add dependency to stdio.h.
5408         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
5409         * modules/string (Makefile.am): Add dependency to string.h.
5410         * modules/strings (Makefile.am): Add dependency to strings.h.
5411         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
5412         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
5413         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
5414         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
5415         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
5416         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
5417         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
5418         * modules/unistd (Makefile.am): Add dependency to unistd.h.
5419         * modules/wchar (Makefile.am): Add dependency to wchar.h.
5420
5421 2009-12-09  Bruno Haible  <bruno@clisp.org>
5422
5423         fchdir: Optimize away rpl_fstat when possible.
5424         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
5425         REPLACE_OPEN_DIRECTORY.
5426         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
5427
5428 2009-12-09  Bruno Haible  <bruno@clisp.org>
5429
5430         * lib/fchdir.c: Update comment.
5431
5432 2009-12-09  Bruno Haible  <bruno@clisp.org>
5433
5434         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
5435
5436 2009-12-08  Eric Blake  <ebb9@byu.net>
5437
5438         fchdir: avoid memory leak on re-registration.
5439         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
5440
5441 2009-12-08  Jim Meyering  <meyering@redhat.com>
5442
5443         init.sh: avoid Solaris 10 /bin/sh portability problem
5444         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
5445         sourced script:
5446           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
5447           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
5448           bar
5449         tests/init.sh relied on that, accepting a --set-path=DIR argument,
5450         and two tests used that idiom.
5451         * tests/init.sh: Update suggested usage comments.
5452         (path_prepend_): New function, to be used in place
5453         of the --src-path=DIR option.
5454         (setup_): Move PATH-prepending code into path_prepend_.
5455         * tests/test-pread.sh: Adapt to new usage.
5456         * tests/test-xalloc-die.sh: Likewise.
5457
5458 2009-12-08  Simon Josefsson  <simon@josefsson.org>
5459
5460         * doc/gnulib.texi (Glibc pty.h): Add.
5461         * doc/glibc-functions/forkpty.texi: Add.
5462         * doc/glibc-functions/openpty.texi: Add.
5463         Suggested by Bruno Haible.
5464
5465 2009-12-08  Eric Blake  <ebb9@byu.net>
5466
5467         fchdir: fix logic bugs
5468         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
5469         * tests/test-fchdir.c (main): Enhance test.
5470         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
5471         is in use.
5472
5473         dup2: fix logic bugs
5474         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
5475         REPLACE_DUP2 to decide when rpl_dup2 is needed.
5476         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
5477         exists.
5478         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
5479
5480 2009-12-07  Eric Blake  <ebb9@byu.net>
5481
5482         unlink: fix m4 detection
5483         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
5484
5485         unistd-safer: add unit test
5486         * modules/unistd-safer-tests: New file.
5487         * tests/test-dup-safer.c: Likewise.
5488         * tests/test-cloexec.c (setmode): Avoid compiler warning.
5489         * tests/test-dup2.c (setmode): Likewise.
5490         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
5491
5492         cloexec: preserve text vs. binary across dup_cloexec
5493         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
5494         mode.
5495         * modules/dup2-tests (Depends-on): Add binary-io.
5496         * modules/cloexec-tests (Depends-on): Likewise.
5497         * tests/test-dup2.c (setmode, is_mode): New helpers.
5498         (main): Add tests that translation mode is preserved.
5499         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
5500         Reported by Bruno Haible.
5501
5502         mgetgroups: reduce duplicate listings
5503         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
5504         resulting array.
5505         * tests/test-chown.h (test_chown): Simplify client.
5506         * tests/test-lchown.h (test_lchown): Likewise.
5507
5508 2009-12-06  Bruno Haible  <bruno@clisp.org>
5509
5510         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
5511         value.
5512
5513 2009-12-06  Bruno Haible  <bruno@clisp.org>
5514
5515         * lib/progname.c: Include stdio.h, stdlib.h.
5516         (set_program_name): Reject a NULL argument.
5517
5518 2009-12-05  Eric Blake  <ebb9@byu.net>
5519
5520         pipe2-safer: new module
5521         * modules/pipe2-safer: New file.
5522         * lib/unistd-safer.h (pipe2_safer): New prototype.
5523         * lib/unistd--.h (pipe2): New wrapper.
5524         * lib/pipe-safer.c (pipe2_safer): New function.
5525         * modules/pipe (Depends-on): Add pipe2-safer.
5526         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
5527
5528         stdlib-safer: preserve cloexec flag for mkostemp[s]
5529         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
5530         fd_safer_flag.
5531
5532         unistd-safer: allow preservation of cloexec status via flag
5533         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
5534         prototypes.
5535         * lib/dup-safer.c (dup_safer_flag): New function.
5536         * lib/fd-safer.c (fd_safer_flag): Likewise.
5537         * modules/cloexec (configure.ac): Set witness.
5538
5539         test-dup2: enhance test
5540         * modules/dup2-tests (Depends-on): Add cloexec.
5541         * tests/test-dup2.c (main): Enhance test.
5542
5543         cloexec: add dup_cloexec
5544         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
5545         header and comments.
5546         * lib/cloexec.c (set_cloexec_flag): Add comments.
5547         (dup_cloexec): New function, with mingw implementation borrowed
5548         from...
5549         * lib/w32spawn.h (dup_noinherit): ...here.
5550         * modules/execute (Depends-on): Add cloexec.
5551         * modules/pipe (Depends-on): Likewise.
5552         * modules/cloexec (Depends-on): Add dup2.
5553         * modules/cloexec-tests (Files): New file.
5554         * tests/test-cloexec.c: Likewise.
5555
5556         test-xalloc-die: fix test for mingw
5557         * modules/xalloc-die-tests (Files): Add tests/init.sh.
5558         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
5559         directory and .exe suffix off argv[0] output.
5560
5561         test-fseeko: fix test for mingw
5562         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
5563         than undefining fseek, so test will pass on mingw.
5564
5565 2009-12-05  Bruno Haible  <bruno@clisp.org>
5566
5567         * lib/progname.h (set_program_name): Clarify specification.
5568         * lib/progname.c (set_program_name): Likewise.
5569         Reported by Jim Meyering.
5570
5571 2009-12-05  Jim Meyering  <meyering@redhat.com>
5572
5573         maint.mk: backslash-escape parens in default regexp
5574         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
5575         backslash-escape the literal parentheses.
5576
5577         maint.mk: news-date-check: use grep -E
5578         * top/maint.mk (today): Define a Make variable, not a...
5579         (news-date-check): ...shell variable.
5580         (news-date-regexp): Use the Make variable.
5581         Use grep's -E option.  Change the failing diagnostic to mention
5582         the variable, $(news-date-regexp).
5583
5584 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
5585
5586         maintainer-makefile: allow customization of NEWS entry format
5587         * top/maint.mk (news-date-regexp): New overridable variable.
5588         (news-date-check): Use it.
5589
5590 2009-12-04  Eric Blake  <ebb9@byu.net>
5591
5592         mgetgroups: add xgetgroups, and avoid ENOSYS failures
5593         * lib/mgetgroups.h (xgetgroups): New prototype.
5594         * lib/mgetgroups.c (xgetgroups): New wrapper.
5595         (mgetgroups): Handle ENOSYS.
5596         * modules/mgetgroups (Depends-on): Add realloc.
5597         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
5598
5599         mgetgroups: avoid argument promotion issues with -1
5600         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
5601         for invalid gid_t.
5602         * tests/test-chown.h (getegid, test_chown): Likewise.
5603         * tests/test-lchown.h (getegid, test_lchown): Likewise.
5604
5605 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
5606
5607         exclude: Fix header file problems.
5608         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
5609
5610 2009-12-01  Jim Meyering  <meyering@redhat.com>
5611
5612         fts: fts_open: do not let an empty string cause immediate failure
5613         This is required in support of GNU rm, for which the command
5614         "rm A '' B" must process and remove both A and B, in spite of
5615         the empty string argument.
5616         * lib/fts.c (fts_open): Do not let the presence of an empty string
5617         cause fts_open to fail immediately.  Most fts-using tools must be
5618         able to process all arguments, in order, and can be expected to
5619         diagnose such arguments themselves.
5620
5621 2009-11-30  Eric Blake  <ebb9@byu.net>
5622
5623         utimens: fix compilation error
5624         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
5625         Declare variable at right scope.
5626
5627 2009-11-29  Jim Meyering  <meyering@redhat.com>
5628
5629         bootstrap: handle perl-5.11's changed --version output
5630         * build-aux/bootstrap (get_version): Handle perl separately,
5631         since perl-5.11's --version output is different.
5632
5633 2009-11-28  Jim Meyering  <meyering@redhat.com>
5634
5635         userspec: depend on the inttostr module, too
5636         * modules/userspec (Depends-on): Add inttostr.
5637
5638         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
5639         * lib/userspec.c (parse_with_separator): Do not accept a user ID
5640         number of MAXUID when it evaluates to (uid_t) -1.
5641         Likewise for group ID.  Reported by Matt McCutchen in
5642         <http://savannah.gnu.org/bugs/?28113>
5643
5644         userspec: reformat to use spaces, not TABs
5645         * lib/userspec.c: Expand TABs to spaces.
5646         Add Emacs' "indent-tabs-mode: nil" hint.
5647
5648 2009-11-27  Eric Blake  <ebb9@byu.net>
5649
5650         getopt-gnu: flush out another BSD bug
5651         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
5652         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
5653         flush out BSD bug.
5654         * tests/test-getopt.h (test_getopt): End lists with NULL.
5655         * tests/test-getopt_long.h (test_getopt_long): Likewise.
5656         (test_getopt_long_posix): Enhance test.
5657         * modules/getopt-posix-tests (Depends-on): Add stdbool.
5658         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
5659         getopt-gnu.
5660         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5661         Likewise.
5662
5663 2009-11-27  Simon Josefsson  <simon@josefsson.org>
5664
5665         * modules/idpriv-droptemp-tests (Notice): Fix text.
5666
5667 2009-11-27  Jim Meyering  <meyering@redhat.com>
5668
5669         test-xalloc-die: avoid spurious failure due to libtool argv difference
5670         In a libtool-enabled project, this test would fail due to a difference
5671         in the emitted program name, e.g.,
5672         -test-xalloc-die: memory exhausted
5673         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
5674         Use program to avoid that.
5675         * modules/xalloc-die-tests (Depends-on): Add progname.
5676         * tests/test-xalloc-die.c: Include progname.h".
5677         (program_name): Remove decl.
5678         (main): Call set_program_name.
5679         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
5680
5681 2009-11-26  Richard Jones  <rjones@redhat.com>
5682
5683         w32sock: leave win32 error in place.
5684         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
5685
5686 2009-11-26  Eric Blake  <ebb9@byu.net>
5687
5688         init.sh: suggest to use skip_ and fail_ functions in comments
5689         * tests/init.sh: Add a sentence.
5690
5691 2009-11-25  Bruno Haible  <bruno@clisp.org>
5692
5693         init.sh: add documentation in comments
5694         * tests/init.sh: Add some developer and user documentation.
5695
5696 2009-11-26  Jim Meyering  <meyering@redhat.com>
5697
5698         init.sh: accommodate even those who specify bogus srcdir manually
5699         * tests/init.sh: Normally, srcdir is guaranteed by automake and
5700         configure-time tests to be sanitized, so that there is no need to
5701         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
5702         (with no double quotes) suffices.  However, since tests may be
5703         invoked manually, and since you may explicitly set srcdir to the
5704         name of a directory containing spaces, do quote its uses here.
5705         * tests/test-pread.sh: Likewise.
5706         Suggested by Bruno Haible.
5707
5708         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
5709         * tests/test-pread.sh: Write no data into the pipe, because
5710         test-pread actually reads none.  This avoids a diagnostic,
5711         "bash: echo: write error: Broken pipe", that arises in the unusual
5712         event something is ignoring SIGPIPE, and might be interpreted
5713         as some sort of failure.  Reported by Bruno Haible.
5714
5715 2009-11-25  Jim Meyering  <meyering@redhat.com>
5716
5717         test-pread: cover failure with ESPIPE and EINVAL
5718         * tests/test-pread.c (main): Test for failure, too.
5719         * tests/test-pread.sh: Invoke with stdin on a pipe.
5720         Suggested by Eric Blake.
5721
5722         pread: improvement and fix
5723         * modules/pread (Depends-on): Depend on lseek, for portability to
5724         e.g., mingw.  Suggested by Eric Blake.
5725         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
5726
5727         unistd.in.h: correct declaration of pread
5728         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
5729         Reported by Richard W.M. Jones.
5730
5731         test-pread.sh: distribute the test script
5732         * modules/pread-tests (Files): Include test-pread.sh.
5733
5734         test-pread.sh: clean up
5735         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
5736         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
5737         That is unnecessary, since it's always ".".
5738         Suggestion from Eric Blake.
5739
5740         test-pread.sh: make executable
5741         * tests/test-pread.sh: Set executable bit.
5742         Reported by Eric Blake.
5743
5744         correct typo in test-pread.sh
5745         * tests/test-pread.sh: Add #! line.
5746
5747         test pread
5748         * tests/test-pread.c: New file.
5749         * tests/test-pread.sh: Likewise.
5750         * modules/pread-tests: Likewise.
5751
5752         pread: new module
5753         * modules/pread: New file.
5754         * lib/unistd.in.h (pread): Define/declare.
5755         * lib/pread.c (pread): New file.
5756         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
5757         * modules/unistd (Makefile.am): Substitute witnesses.
5758         * doc/posix-functions/pread.texi (pread): Update.
5759         * MODULES.html.sh: Add pread.
5760
5761 2009-11-25  Jim Meyering  <meyering@redhat.com>
5762
5763         tests/init.sh: new file to be used via most *.sh tests
5764         * tests/init.sh: New file.
5765
5766 2009-11-25  Eric Blake  <ebb9@byu.net>
5767
5768         utimens: work around older Linux failure with symlinks
5769         * lib/utimens.c (lutimensat_works_really): New variable.
5770         (fdutimens, lutimens): Use it to manage kernels that support
5771         nanosecond times on files, but not on symlinks.
5772         Reported by OndÅ™ej Vašík.
5773
5774         utimes: fix configure grammar
5775         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
5776
5777 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
5778
5779         regex: Fix fastmap for multibyte character ranges.
5780         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
5781         characters when a multibyte character range is included.
5782
5783 2009-11-22  Andy Wingo  <wingo@pobox.com>
5784
5785         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
5786         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
5787
5788 2009-11-24  Bruno Haible  <bruno@clisp.org>
5789
5790         doc: Most *_l functions exist in MacOS X 10.5.
5791         * doc/posix-functions/duplocale.texi: Update platforms list.
5792         * doc/posix-functions/freelocale.texi: Likewise.
5793         * doc/posix-functions/newlocale.texi: Likewise.
5794         * doc/posix-functions/uselocale.texi: Likewise.
5795         * doc/posix-functions/isalnum_l.texi: Likewise.
5796         * doc/posix-functions/isalpha_l.texi: Likewise.
5797         * doc/posix-functions/isblank_l.texi: Likewise.
5798         * doc/posix-functions/iscntrl_l.texi: Likewise.
5799         * doc/posix-functions/isdigit_l.texi: Likewise.
5800         * doc/posix-functions/isgraph_l.texi: Likewise.
5801         * doc/posix-functions/islower_l.texi: Likewise.
5802         * doc/posix-functions/isprint_l.texi: Likewise.
5803         * doc/posix-functions/ispunct_l.texi: Likewise.
5804         * doc/posix-functions/isspace_l.texi: Likewise.
5805         * doc/posix-functions/isupper_l.texi: Likewise.
5806         * doc/posix-functions/iswalnum_l.texi: Likewise.
5807         * doc/posix-functions/iswalpha_l.texi: Likewise.
5808         * doc/posix-functions/iswblank_l.texi: Likewise.
5809         * doc/posix-functions/iswcntrl_l.texi: Likewise.
5810         * doc/posix-functions/iswctype_l.texi: Likewise.
5811         * doc/posix-functions/iswdigit_l.texi: Likewise.
5812         * doc/posix-functions/iswgraph_l.texi: Likewise.
5813         * doc/posix-functions/iswlower_l.texi: Likewise.
5814         * doc/posix-functions/iswprint_l.texi: Likewise.
5815         * doc/posix-functions/iswpunct_l.texi: Likewise.
5816         * doc/posix-functions/iswspace_l.texi: Likewise.
5817         * doc/posix-functions/iswupper_l.texi: Likewise.
5818         * doc/posix-functions/iswxdigit_l.texi: Likewise.
5819         * doc/posix-functions/isxdigit_l.texi: Likewise.
5820         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
5821         * doc/posix-functions/strcasecmp_l.texi: Likewise.
5822         * doc/posix-functions/strcoll_l.texi: Likewise.
5823         * doc/posix-functions/strfmon_l.texi: Likewise.
5824         * doc/posix-functions/strftime_l.texi: Likewise.
5825         * doc/posix-functions/strncasecmp_l.texi: Likewise.
5826         * doc/posix-functions/strxfrm_l.texi: Likewise.
5827         * doc/posix-functions/tolower_l.texi: Likewise.
5828         * doc/posix-functions/toupper_l.texi: Likewise.
5829         * doc/posix-functions/towctrans_l.texi: Likewise.
5830         * doc/posix-functions/towlower_l.texi: Likewise.
5831         * doc/posix-functions/towupper_l.texi: Likewise.
5832         * doc/posix-functions/wcscoll_l.texi: Likewise.
5833         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
5834         * doc/posix-functions/wctrans_l.texi: Likewise.
5835         * doc/posix-functions/wctype_l.texi: Likewise.
5836         * doc/glibc-functions/strptime_l.texi: Likewise.
5837         * doc/glibc-functions/strtod_l.texi: Likewise.
5838         * doc/glibc-functions/strtof_l.texi: Likewise.
5839         * doc/glibc-functions/strtol_l.texi: Likewise.
5840         * doc/glibc-functions/strtold_l.texi: Likewise.
5841         * doc/glibc-functions/strtoll_l.texi: Likewise.
5842         * doc/glibc-functions/strtoul_l.texi: Likewise.
5843         * doc/glibc-functions/strtoull_l.texi: Likewise.
5844         * doc/glibc-functions/wcsftime_l.texi: Likewise.
5845         * doc/glibc-functions/wcstod_l.texi: Likewise.
5846         * doc/glibc-functions/wcstof_l.texi: Likewise.
5847         * doc/glibc-functions/wcstol_l.texi: Likewise.
5848         * doc/glibc-functions/wcstold_l.texi: Likewise.
5849         * doc/glibc-functions/wcstoll_l.texi: Likewise.
5850         * doc/glibc-functions/wcstoul_l.texi: Likewise.
5851         * doc/glibc-functions/wcstoull_l.texi: Likewise.
5852
5853 2009-11-24  Bruno Haible  <bruno@clisp.org>
5854
5855         duplocale: Fix logic bug.
5856         * lib/duplocale.c: Don't include <langinfo.h>.
5857         (_NL_LOCALE_NAME): Remove macro.
5858         (rpl_duplocale): Use setlocale instead of nl_langinfo.
5859         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
5860
5861 2009-11-23  Jim Meyering  <meyering@redhat.com>
5862
5863         test-update-copyright: don't hard-code /usr/bin/perl
5864         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
5865         perl to print the current year.  Gilles Espinasse reported that
5866         the replaced use of perl was hard-coded as /usr/bin/perl.
5867
5868 2009-11-23  Bruno Haible  <bruno@clisp.org>
5869
5870         duplocale: Add support for glibc 2.3.x.
5871         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
5872
5873 2009-11-22  Bruno Haible  <bruno@clisp.org>
5874
5875         vasnprintf: Tiny optimization.
5876         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
5877         MacOS X.
5878
5879 2009-11-22  Bruno Haible  <bruno@clisp.org>
5880
5881         Tests for module 'duplocale'.
5882         * modules/duplocale-tests: New file.
5883         * tests/test-duplocale.c: New file.
5884
5885         New module 'duplocale'.
5886         * m4/duplocale.m4: New file.
5887         * lib/locale.in.h (duplocale): New declaration.
5888         * lib/duplocale.c: New file.
5889         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
5890         gl_LOCALE_H_DEFAULTS): New macros.
5891         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
5892         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
5893         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
5894         REPLACE_DUPLOCALE.
5895         * modules/duplocale: New file.
5896         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
5897
5898 2009-11-22  Bruno Haible  <bruno@clisp.org>
5899
5900         * modules/locale-tests (configure.ac): Test for newlocale function.
5901         * tests/test-locale.c: When the system has extended locale functions,
5902         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
5903
5904         locale: Make locale_t available when possible.
5905         * lib/locale.in.h: Include <xlocale.h> when it exists.
5906         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
5907         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
5908         * modules/locale (Depends-on): Add extensions.
5909         (Makefile.am): Also substitute HAVE_XLOCALE_H.
5910         * doc/posix-headers/locale.texi: Document the problem with locale_t.
5911
5912 2009-11-22  Bruno Haible  <bruno@clisp.org>
5913
5914         Add comments.
5915         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
5916         invocation.
5917         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
5918         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5919         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
5920
5921 2009-11-22  Bruno Haible  <bruno@clisp.org>
5922
5923         error: account for the possibility of freopen (stdout).
5924         * lib/error.c: Include <unistd.h>.
5925         (flush_stdout): New function, extracted from error and error_at_line.
5926         Determine stdout's fd dynamically.
5927         (error, error_at_line): Invoke flush_stdout.
5928         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
5929         * modules/error (Depends-on): Add unistd.
5930
5931 2009-11-22  Bruno Haible  <bruno@clisp.org>
5932
5933         diffseq: Add comment.
5934         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
5935
5936 2009-11-22  Jim Meyering  <meyering@redhat.com>
5937
5938         c-stack: avoid defining an unused static function
5939         * lib/c-stack.c (find_stack_direction): Do not define this function
5940         when it will not be used.
5941
5942         diffseq: avoid spurious gcc warnings
5943         * lib/diffseq.h (IF_LINT2): Define.
5944         (compareseq): Use it to initialize two members of "part".
5945         This avoids two used-uninitialized warnings.
5946
5947 2009-11-21  Jim Meyering  <meyering@redhat.com>
5948
5949         c-stack: avoid "ignoring return value of `write'" warning
5950         * lib/c-stack.c: Include "ignore-value.h".
5951         (die): Explicitly ignore each write return value.
5952         * modules/c-stack (Depends-on): Add ignore-value.
5953
5954 2009-11-21  Bruno Haible  <bruno@clisp.org>
5955
5956         diffseq: reduce scope of variable 'best'.
5957         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
5958         variable, earlier used for two different purposes.
5959
5960 2009-11-21  Jim Meyering  <meyering@redhat.com>
5961
5962         diffseq: remove useless assignment to "best"
5963         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
5964         assignment.  At that point "best" is already guaranteed to be zero.
5965
5966 2009-11-20  Eric Blake  <ebb9@byu.net>
5967
5968         build: mention ftp redirector in release announcements
5969         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
5970         values that used to come from cfg.mk; mention FTP redirect URL.
5971         * build-aux/announce-gen: Mention the mirror list.
5972         Suggested by Karl Berry.
5973
5974         nanosleep: improve port to mingw
5975         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
5976         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
5977         LIB_NANOSLEEP, but only when needed.
5978         * modules/select (Link): Document LIBSOCKET.
5979         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
5980         enough.
5981
5982         nanosleep: work around cygwin bug
5983         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
5984         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
5985         bug.
5986         (getnow): Delete, not needed.
5987         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
5988         LIB_CLOCK_GETTIME.
5989         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
5990         clock-time, gettime.
5991         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
5992         bug.
5993         * modules/nanosleep-tests: New test.
5994         * tests/test-nanosleep.c: New file.
5995
5996         sleep: work around cygwin bug
5997         * lib/sleep.c (rpl_sleep): Work around the bug.
5998         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
5999         (gl_PREREQ_SLEEP): Delete unused macro.
6000         * modules/sleep (Depends-on): Add verify.
6001         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6002         * modules/unistd (Makefile.am): Substitute witness.
6003         * lib/unistd.in.h (sleep): Update prototype.
6004         * doc/posix-functions/sleep.texi (sleep): Document the bug.
6005         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
6006         * modules/sleep-tests (Depends-on): Check for alarm.
6007
6008 2009-11-20  Jim Meyering  <meyering@redhat.com>
6009
6010         maint.mk: improve sc_prohibit_magic_number_exit
6011         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
6012         so it does not match uses like System.exit(1).
6013         Add comments showing how to correct all offenders.
6014
6015 2009-11-19  Eric Blake  <ebb9@byu.net>
6016
6017         xalloc-die-tests: add missing library
6018         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
6019
6020         test-xvasprintf: silence compiler warnings
6021         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
6022         empty string from gcc.
6023
6024 2009-11-19  Jim Meyering  <meyering@redhat.com>
6025
6026         xfreopen: new module, from coreutils
6027         * modules/xfreopen: New module.
6028         * lib/xfreopen.c: New file.
6029         * lib/xfreopen.h: New file.
6030         * MODULES.html.sh (File stream based Input/Output"): Add it.
6031
6032 2009-11-19  Eric Blake  <ebb9@byu.net>
6033
6034         manywarnings: depend on warnings
6035         * modules/manywarnings (Depends-on): Add warnings.
6036
6037         build: avoid compiler warnings
6038         * lib/select.c (rpl_select): Delete unused variable.
6039         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
6040
6041 2009-11-18  Eric Blake  <ebb9@byu.net>
6042
6043         tests: avoid false negative with --with-packager
6044         * tests/test-version-etc.sh: Discard packager information.
6045         * tests/test-argp-version-etc-1.sh: Likewise.
6046         Reported by Mike Frysinger.
6047
6048         utimens: fix regression on Solaris
6049         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
6050         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
6051         can only change fd timestamps via futimesat.  Instead, use an
6052         additional witness macro to avoid BSD bug.
6053         Reported by Jim Meyering.
6054
6055 2009-11-17  Eric Blake  <ebb9@byu.net>
6056
6057         usleep: use it to simplify tests
6058         * modules/stat-time-tests (Depends-on): Add usleep.
6059         (configure.ac): Drop usleep check.
6060         * modules/chown-tests (Depends-on, configure.ac): Likewise.
6061         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
6062         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
6063         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
6064         * modules/openat-tests (Depends-on, configure.ac): Likewise.
6065         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
6066         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
6067         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
6068         Likewise.
6069         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
6070         * tests/test-lchown.h (nap): Likewise.
6071         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
6072         * tests/test-stat-time.c (nap): Likewise.
6073         * tests/test-utimens-common.h (nap): Update comments.
6074
6075         usleep: new module
6076         * modules/usleep: New file.
6077         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
6078         * lib/usleep.c (usleep): Likewise.
6079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
6080         * modules/unistd (Makefile.am): Substitute witnesses.
6081         * lib/unistd.in.h (usleep): Add declaration.
6082         * doc/pastposix-functions/usleep.texi (usleep): Document this.
6083         * MODULES.html.sh (Date and time): Likewise.
6084         * modules/usleep-tests (Depends-on): New test.
6085         * tests/test-usleep.c: New file.
6086
6087         chown: work around OpenBSD bug
6088         * lib/chown.c (rpl_chown): Work around the bug.
6089         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
6090         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
6091         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
6092         * modules/chown (Depends-on): Add stdbool.
6093         * modules/lchown (Depends-on): Likewise.
6094         * doc/posix-functions/chown.texi (chown): Document the bug.
6095         * doc/posix-functions/lchown.texi (lchown): Likewise.
6096         * tests/test-lchown.h (test_chown): Relax test.
6097
6098         mkstemp: avoid conflict with C++ keyword template
6099         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
6100         * lib/mkostemp.c (mkostemp): Likewise.
6101         * lib/mkostemps.c (mkostemps): Likewise.
6102         * lib/mkstemp.c (mkstemp): Likewise.
6103         * lib/mkstemps.c (mkstemps): Likewise.
6104
6105         xalloc-die-tests: optimize
6106         * tests/test-xalloc-die.sh: Reduce number of processes.
6107
6108 2009-11-17  Simon Josefsson  <simon@josefsson.org>
6109
6110         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
6111         patch from ludo@gnu.org (Ludovic Courtès).
6112
6113 2009-11-17  Jim Meyering  <meyering@redhat.com>
6114
6115         version-etc: use proper license string
6116         * modules/version-etc (License): Use LGPL, not LGPLv3+.
6117         * modules/version-etc-fsf: Likewise.
6118
6119 2009-11-17  Simon Josefsson  <simon@josefsson.org>
6120
6121         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
6122         printed to stdout.  Deal with EOL differences.
6123
6124 2009-11-17  Eric Blake  <ebb9@byu.net>
6125
6126         unsetenv: work around Solaris bug
6127         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
6128         * lib/unsetenv.c (rpl_unsetenv): Work around it.
6129         Reported by Jim Meyering.
6130
6131         vasnprintf: avoid compiler warnings
6132         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
6133         variables.
6134         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
6135
6136 2009-11-17  Simon Josefsson  <simon@josefsson.org>
6137
6138         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
6139         settings since xalloc-die is no longer the self test,
6140         xalloc-die.sh is.
6141
6142 2009-11-17  Jim Meyering  <meyering@redhat.com>
6143
6144         test-xalloc-die.sh: make the code agree with the commit log
6145         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
6146         at the end, just in case you happen to have a test-xalloc-die
6147         program in some other PATH directory.
6148
6149         test-xalloc-die.sh: fix a portability bug
6150         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
6151         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
6152         Otherwise, argv[0] (as often seen in diagnostics) would be too
6153         system-dependent, sometimes with, and sometimes without the leading "./".
6154
6155         version-etc-fsf: relax license to LGPLv3+
6156         * modules/version-etc-fsf (License): Relax license.
6157
6158 2009-11-16  Eric Blake  <ebb9@byu.net>
6159
6160         xalloc-die-tests: avoid printing null pointer
6161         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
6162         shell script.
6163         * tests/test-xalloc-die.c (program_name): Declare.
6164         * tests/test-xalloc-die.sh (tmpfiles): New file.
6165
6166         setenv, unsetenv: work around various bugs
6167         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
6168         (setenv) [HAVE_SETENV]: Work around bugs.
6169         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
6170         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
6171         for bugs.
6172         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
6173         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
6174         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
6175         * modules/stdlib (Makefile.am): Update substitutions.
6176         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
6177         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
6178         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6179         * modules/setenv-tests: New test.
6180         * modules/unsetenv-tests: Likewise.
6181         * tests/test-setenv.c: New file.
6182         * tests/test-unsetenv.c: Likewise.
6183
6184 2009-11-16  Jim Meyering  <meyering@redhat.com>
6185
6186         version-etc: relax license to LGPLv3+
6187         * modules/version-etc (License): Relax license.
6188
6189         better AC_REQUIRE expanded-before-required-warning avoidance
6190         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
6191         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
6192         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
6193         which is no longer needed.
6194
6195 2009-11-16  Eric Blake  <ebb9@byu.net>
6196
6197         test-freading: clean up temporary file
6198         * tests/test-freading.c (main): Remove file on success, and use
6199         ASSERT more liberally.
6200         Reported by Jim Meyering.
6201
6202 2009-11-16  Jim Meyering  <meyering@redhat.com>
6203
6204         avoid new AC_REQUIRE expanded-before-required warnings
6205         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
6206         merely using it.
6207         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
6208         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
6209
6210 2009-11-15  Simon Josefsson  <simon@josefsson.org>
6211
6212         * tests/test-xalloc-die.c: New file.
6213         * modules/xalloc-die-tests: New file.
6214         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
6215         XFAIL_TESTS so it can be appended by modules.
6216
6217 2009-11-15  Simon Josefsson  <simon@josefsson.org>
6218
6219         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
6220         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
6221
6222 2009-11-14  Eric Blake  <ebb9@byu.net>
6223
6224         fnmatch: avoid compiler warning
6225         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
6226         to silence compiler warning about mismatch signedness in ?:.
6227         Reported by Robert Millan.
6228
6229         intprops: add double-inclusion guard
6230         * lib/intprops.h: Allow idempotent includes.
6231         Suggested by Bruce Korb.
6232
6233         openat: detect Solaris fchownat bug
6234         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
6235         penalizing glibc chownat when only lchownat is broken.
6236         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
6237         trailing slash bugs.
6238         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
6239         * modules/openat-tests (Files): Include more files.
6240         (Depends-on): Add mgetgroups, sleep, stat-time.
6241         (configure.ac): Add additional checks.
6242         (Makefile.am): Build new test.
6243         * tests/test-fchownat.c: New file.
6244
6245         lchown: detect Solaris and FreeBSD bug
6246         * lib/lchown.c (rpl_lchown): Work around bug.
6247         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
6248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6249         * modules/unistd (Makefile.am): Populate it.
6250         * lib/unistd.in.h (lchown): Update declaration.
6251         * doc/posix-functions/lchown.texi (lchown): Document the bug.
6252         * modules/lchown-tests: New file.
6253         * tests/test-lchown.h (test_lchown): Likewise.
6254         * tests/test-lchown.c (main): Likewise.
6255
6256         chown: detect Solaris and FreeBSD bug
6257         * lib/chown.c (rpl_chown): Work around bug.
6258         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
6259         (gl_PREREQ_CHOWN): Delete.
6260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6261         * modules/unistd (Makefile.am): Populate it.
6262         * lib/unistd.in.h (chown): Update declaration.
6263         * lib/lchown.c (chown): Update client.
6264         * modules/lchown (Depends-on): Add lstat.
6265         * doc/posix-functions/chown.texi (chown): Document the bug.
6266         * doc/posix-functions/getgroups.texi (getgroups): Document
6267         getgroups pitfall.
6268         * modules/chown-tests: New file.
6269         * tests/test-chown.h (test_chown): Likewise.
6270         * tests/test-chown.c (main): Likewise.
6271
6272 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
6273
6274         gnulib-tool: correctly detect absence of m4 directories
6275         * gnulib-tool: Avoid extra newline on data passed to wc -l.
6276
6277 2009-11-14  Jim Meyering  <meyering@redhat.com>
6278
6279         maint.mk: Prohibit inclusion of "xalloc.h" without use.
6280         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
6281
6282 2009-11-14  John W. Eaton  <jwe@gnu.org>
6283
6284         strftime.h: wrap funtion declaration in extern "C" block
6285         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
6286
6287 2009-11-13  Eric Blake  <ebb9@byu.net>
6288
6289         getgroups: avoid compiler warning
6290         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
6291
6292         getgroups: work around FreeBSD bug
6293         * lib/getgroups.c (rpl_getgroups): Work around the bug.
6294         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
6295         * doc/posix-functions/getgroups.texi (getgroups): Document it.
6296         * tests/test-getgroups.c (main): Fix buffer overrun.
6297
6298         getgroups: avoid compilation failure
6299         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
6300         * modules/getgroups (Depends-on): Add stdint.
6301
6302 2009-11-13  Jim Meyering  <meyering@redhat.com>
6303
6304         test-getgroups: avoid compilation failure
6305         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
6306
6307 2009-11-13  Eric Blake  <ebb9@byu.net>
6308
6309         mgetgroups: new module, taken from coreutils
6310         * modules/mgetgroups: New file.
6311         * lib/mgetgroups.h: Likewise.
6312         * lib/mgetgroups.c (mgetgroups): Likewise.
6313         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
6314         * MODULES.html.sh (Users and groups): Mention it.
6315
6316         getgroups: don't expose GETGROUPS_T to user
6317         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
6318         an element at a time if GETGROUPS_T is wrong size.
6319         * lib/getugroups.h (getugroups): Change signature.
6320         * lib/unistd.in.h (getgroups): Likewise.
6321         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
6322         signature needs fixing.
6323         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
6324         AC_TYPE_GETGROUPS.
6325         * modules/group-member (Depends-on): Add getgroups.
6326         * lib/group-member.c (group_info, get_group_info): Use gid_t.
6327         (group_member): Rely on getgroups replacement.
6328         * lib/getugroups.c (getugroups): Use gid_t.
6329         * tests/test-getgroups.c (main): Likewise.
6330         * NEWS: Mention the signature change.
6331         * doc/posix-functions/getgroups.texi (getgroups): Mention the
6332         problem with signature.
6333         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
6334         GETGROUPS_T is still useful for setgroups.
6335
6336         getgroups, getugroups: provide stubs for mingw
6337         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
6338         * lib/getugroups.c (getugroups): Likewise.
6339         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
6340         function.  Modernize replacement scheme.
6341         (gl_PREREQ_GETGROUPS): Delete.
6342         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
6343         * modules/getgroups (configure.ac): Declare witness.
6344         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6345         * modules/unistd (Depends-on): Substitute witness.
6346         * lib/unistd.in.h (getgroups): Declare replacement.
6347
6348         getgroups: avoid calling exit
6349         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
6350         drop xalloc.
6351         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
6352         dependencies.
6353         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
6354         exiting, in the rare case of malloc failure.
6355
6356         getgroups: fix logic error
6357         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
6358         has more than 20 groups.
6359         * modules/getgroups-tests: New test.
6360         * tests/test-getgroups.c: New file.
6361
6362 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6363
6364         * tests/test-base64.c: Improve.
6365
6366 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6367
6368         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
6369         Blake <ebb9@byu.net>.
6370
6371 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6372
6373         * tests/test-xvasprintf.c: Add %s%s related checks.
6374
6375 2009-11-12  Eric Blake  <ebb9@byu.net>
6376
6377         version-etc: match standards.texi style
6378         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
6379         and use <> only for URLs.
6380
6381 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
6382
6383         fts: do not fail on a submount during traversal
6384         * lib/fts.c (fts_build): Read the stat info again after opening
6385         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
6386         Original report at http://bugzilla.redhat.com/501848.
6387
6388 2009-11-12  Jim Meyering  <meyering@redhat.com>
6389
6390         bootstrap: sync from coreutils
6391         * build-aux/bootstrap (bootstrap_epilogue): New function.
6392         Use git_modules_config in one more place.  This make bootstrap's
6393         --gnulib-srcdir option more useful for testing.
6394
6395         bootstrap: generalize autoheader check
6396         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
6397         AC_CONFIG_HEADERS.
6398
6399 2009-11-11  Eric Blake  <ebb9@byu.net>
6400
6401         mkfifoat: use new modules for Solaris and BSD bugs
6402         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
6403         * lib/mkfifoat.c (mknodat): Split...
6404         * lib/mknodat.c (mknodat): ...into new file.
6405         * modules/mkfifoat (Files): Ship new file.
6406         (Depends-on): Add mkfifo, mknod.
6407         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
6408         (Depends-on): Add symlink.
6409         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
6410         redundant with test_mkfifo.h.
6411         (do_mkfifoat, do_mknodat): New helpers.
6412
6413         mknod: new module
6414         * modules/mknod: New file.
6415         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
6416         * lib/mknod.c (mknod): Likewise.
6417         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
6418         defaults.
6419         * modules/sys_stat (Makefile.am): Substitute them.
6420         * lib/sys_stat.in.h (mknod): Declare replacement.
6421         * MODULES.html.sh (Support for systems lacking POSIX:2008):
6422         Document it.
6423         * doc/posix-functions/mknod.texi (mknod): Likewise.
6424         * modules/mknod-tests: New test.
6425         * tests/test-mknod.c: Likewise.
6426
6427         mkfifo: new module
6428         * modules/mkfifo: New file.
6429         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
6430         * lib/mkfifo.c (mkfifo): Likewise.
6431         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
6432         defaults.
6433         * modules/sys_stat (Makefile.am): Substitute them.
6434         * lib/sys_stat.in.h (mkfifo): Declare replacement.
6435         * MODULES.html.sh (Support for systems lacking POSIX:2008):
6436         Document it.
6437         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
6438         * modules/mkfifo-tests: New test.
6439         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
6440         from test-mkfifoat.c.
6441         * tests/test-mkfifo.c: New file.
6442
6443         readlink: detect FreeBSD bug
6444         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
6445         slash on symlink.
6446         * doc/posix-functions/readlink.texi (readlink): Document the bug.
6447         * tests/test-readlink.h (test_readlink): Enhance test.
6448
6449         symlink: detect FreeBSD bug
6450         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
6451         slash on symlink.
6452         * doc/posix-functions/symlink.texi (symlink): Document the bug.
6453         * tests/test-symlink.h (test_symlink): Enhance test.
6454
6455 2009-11-10  Eric Blake  <ebb9@byu.net>
6456
6457         link: detect FreeBSD bug
6458         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
6459         symlink.
6460         * doc/posix-functions/link.texi (link): Document the bug.
6461         * tests/test-link.h (test_link): Enhance test.
6462         * tests/test-linkat.c (main): Update caller.
6463
6464         unlink, remove: detect FreeBSD bug
6465         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
6466         slash on symlink.
6467         * doc/posix-functions/unlink.texi (unlink): Document the bug.
6468         * doc/posix-functions/remove.texi (remove): Likewise.
6469         * tests/test-unlink.h (test_unlink): Enhance test.
6470         * tests/test-remove.c (main): Likewise.
6471
6472 2009-11-09  Eric Blake  <ebb9@byu.net>
6473
6474         rename: detect FreeBSD bug
6475         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
6476         slash on symlink.
6477         * modules/renameat-tests (Depends-on): Add filenamecat.
6478         * tests/test-rename.h (test_rename): Allow one more errno.
6479         * tests/test-renameat.c (main): Likewise.
6480         * doc/posix-functions/rename.texi (rename): Document the bug.
6481
6482         open: detect FreeBSD bug
6483         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
6484         symlink.
6485         * doc/posix-functions/open.texi (open): Document the bug.
6486         * doc/posix-functions/utimes.texi (utimes): Likewise.
6487         * tests/test-open.h (test_open): Add parameters, and test symlink
6488         handling.
6489         * tests/test-open.c (main): Adjust caller.
6490         * tests/test-fcntl-safer.c (main): Likewise.
6491         * modules/open-tests (Depends-on): Add stdbool, symlink.
6492         * modules/fcntl-safer-tests (Depends-on): Likewise.
6493         * tests/test-openat.c (main): Add test-open tests.
6494
6495         stat: detect FreeBSD bug
6496         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
6497         symlink.
6498         * doc/posix-functions/stat.texi (stat): Document the bug.
6499         * tests/test-stat.h (test_stat_func): Add argument.
6500         * tests/test-stat.c (main): Adjust caller.
6501         * tests/test-fstatat.c (main): Likewise.
6502         * modules/stat-tests (Depends-on): Add stdbool, symlink.
6503         Reported by Jim Meyering.
6504
6505 2009-11-09  James Youngman  <jay@gnu.org>
6506
6507         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
6508         * lib/strftime.c: Correct placement of #include "ignore-value.h".
6509
6510 2009-11-08  Jim Meyering  <meyering@redhat.com>
6511
6512         utimens: remove invalid futimesat call
6513         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
6514         It used the file descriptor of the target file as the DIR_FD
6515         parameter and NULL as the file name.  That caused failure with
6516         errno == EFAULT on FreeBSD-8.0-rc2
6517
6518 2009-11-07  Eric Blake  <ebb9@byu.net>
6519
6520         fflush, freadseek: use fseeko, not fseek
6521         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
6522         (clear_ungetc_buffer): Avoid potential problems on large files.
6523         * lib/freadseek.c (freadseek): Likewise.
6524         * modules/freadseek (Depends-on): Add fseeko.
6525         * modules/fseek (configure.ac): Set a witness.
6526         * tests/test-fflush.c (main): Use fseeko.
6527         * tests/test-fpurge.c (fseek): Disable link warning.
6528         * tests/test-freadable.c (fseek): Likewise.
6529         * tests/test-freading.c (fseek): Likewise.
6530         * tests/test-fseeko.c (fseek): Likewise.
6531         * tests/test-ftell.c (fseek): Likewise.
6532         * tests/test-ftello.c (fseek): Likewise.
6533         * tests/test-fwritable.c (fseek): Likewise.
6534         * tests/test-fwriting.c (fseek): Likewise.
6535
6536 2009-11-06  Simon Josefsson  <simon@josefsson.org>
6537
6538         * modules/memchr (Depends-on): Drop getpagesize dependency.
6539
6540 2009-11-06  Simon Josefsson  <simon@josefsson.org>
6541
6542         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
6543         Reported by Ludovic Courtès.
6544         * build-aux/pmccabe2html: Improve example usage.
6545         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
6546
6547 2009-11-06  Jim Meyering  <meyering@redhat.com>
6548
6549         do-release-commit-and-tag: New module.
6550         Automate the release-commit and tag process.
6551         * build-aux/do-release-commit-and-tag: New script, from coreutils.
6552         * modules/do-release-commit-and-tag: New file.
6553         * MODULES.html.sh (Support for maintaining and releasing): Add it.
6554
6555 2009-11-06  Simon Josefsson  <simon@josefsson.org>
6556
6557         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
6558         because test-select.c uses inet_pton.
6559
6560 2009-11-06  Simon Josefsson  <simon@josefsson.org>
6561
6562         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
6563         GETADDRINFO_LIB.  Bump serial number.
6564         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
6565         Suggested by Eric Blake <ebb9@byu.net>.
6566
6567 2009-11-05  Eric Blake  <ebb9@byu.net>
6568
6569         strtod: detect darwin bug
6570         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
6571         Reported by Leo Davis.
6572
6573         freopen-safer: new module
6574         * modules/freopen-safer: New module.
6575         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
6576         * lib/freopen-safer.c (freopen_safer): New file.
6577         * lib/stdio-safer.h (freopen_safer): New declaration.
6578         * lib/stdio--.h (freopen): New override.
6579         * MODULES.html.sh (File stream based Input/Output): Mention it.
6580         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
6581         freopen-safer module.
6582         * doc/posix-functions/stderr.texi (stderr): Likewise.
6583         * doc/posix-functions/stdin.texi (stdin): Likewise.
6584         * doc/posix-functions/stdout.texi (stdout): Likewise.
6585         * modules/freopen-safer-tests: New test.
6586         * tests/test-reopen-safer.c: New file.
6587
6588 2009-11-05  Jim Meyering  <meyering@redhat.com>
6589
6590         maint.mk: Prohibit inclusion of "close-stream.h" without use.
6591         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
6592
6593 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6594
6595         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
6596
6597 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6598
6599         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
6600
6601 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6602
6603         Fix link error.
6604         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
6605         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
6606
6607 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6608
6609         * tests/test-func.c: Also test value of __func__.
6610
6611 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6612
6613         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
6614         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
6615
6616 2009-11-05  Bruno Haible  <bruno@clisp.org>
6617
6618         Fix link error.
6619         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
6620         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
6621         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
6622
6623 2009-11-05  Bruno Haible  <bruno@clisp.org>
6624
6625         Tests for module 'inet_pton'.
6626         * modules/inet_pton-tests: New file.
6627         * tests/test-inet_pton.c: New file.
6628
6629 2009-11-05  Bruno Haible  <bruno@clisp.org>
6630
6631         Tests for module 'inet_ntop'.
6632         * modules/inet_ntop-tests: New file.
6633         * tests/test-inet_ntop.c: New file.
6634
6635 2009-11-04  Eric Blake  <ebb9@byu.net>
6636
6637         stdlib-safer: wrap all mkstemp variants
6638         * modules/mkostemp (configure.ac): Set witness.
6639         * modules/mkostemps (configure.ac): Likewise.
6640         * modules/mkstemps (configure.ac): Likewise.
6641         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
6642         (mkstemps_safer): Wrap more functions.
6643         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
6644         wrapping.
6645         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
6646         (mkstemps_safer): Implement the wrappers.
6647
6648         mkstemps, mkostemps: new modules
6649         * modules/mkostemps: New module.
6650         * modules/mkstemps: Likewise.
6651         * lib/mkostemps.c (mkostemps): New file.
6652         * lib/mkstemps.c (mkstemps): Likewise.
6653         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
6654         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
6655         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
6656         * modules/stdlib (Makefile.am): Substitute them.
6657         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
6658         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
6659         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
6660         * doc/gnulib.texi (Glibc stdlib.h): Include them.
6661         * MODULES.html.sh (File system functions): Mention them.
6662
6663         tempname: resync from glibc
6664         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
6665         same values for __GT_FILE as glibc.  Abort even when assertions
6666         are disabled.
6667         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
6668         match its value otherwise.  Allow idempotent inclusion.
6669         * lib/mkdtemp.c (mkdtemp): Adjust caller.
6670         * lib/mkostemp.c (mkostemp): Likewise.
6671         * lib/mkstemp.c (mkstemp): Likewise.
6672         * lib/tmpfile.c (tmpfile): Likewise.
6673         * NEWS: Document this.
6674
6675         utimens: fix use of futimens on older Linux
6676         * lib/utimens.c (fdutimens): Use updated, rather than original,
6677         timespec to avoid bug in older Linux kernel.
6678         Reported by Simon Josefsson.
6679
6680 2009-11-04  Bruno Haible  <bruno@clisp.org>
6681
6682         Make num_processors more flexible and consistent.
6683         * lib/nproc.h (enum nproc_query): New type.
6684         (num_processors): Add a 'query' argument.
6685         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
6686         (num_processors): Add a 'query' argument. Test the value of the
6687         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
6688         mingw, count the number of CPUs available for the current process.
6689         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
6690         Check for sched_getaffinity and sched_getaffinity_np.
6691         * modules/nproc (Depends-on): Add c-ctype, extensions.
6692         * NEWS: Mention the change.
6693
6694 2009-11-03  Bruno Haible  <bruno@clisp.org>
6695
6696         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
6697
6698 2009-11-03  Jim Meyering  <meyering@redhat.com>
6699
6700         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
6701         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
6702         if it is defined.
6703
6704 2009-11-02  Eric Blake  <ebb9@byu.net>
6705
6706         mktime, timegm: share common declaration
6707         * lib/mktime-internal.h: New file.
6708         * lib/mktime.c: Use it rather than open-coding a declaration.
6709         * lib/timegm.c: Likewise.
6710         * modules/mktime (Files): Ship it.
6711         * modules/timegm (Files): Likewise.
6712         Suggested by Bruno Haible.
6713
6714         test-update-copyright: update test to match script changes
6715         * tests/test-update-copyright.sh: Avoid hard-coding perl
6716         location.  Don't update *.bak created by earlier runs.
6717
6718 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
6719             Simon Josefsson  <simon@josefsson.org>
6720             Bruno Haible  <bruno@clisp.org>
6721
6722         Fix link error on Solaris 8.
6723         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
6724         also in libnsl. Define also INET_PTON_LIB.
6725         * modules/inet_pton (Link): New section.
6726
6727 2009-11-02  Simon Josefsson  <simon@josefsson.org>
6728             Bruno Haible  <bruno@clisp.org>
6729
6730         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
6731         * modules/inet_ntop (Link): New section.
6732         Reported by Boyan Kasarov <bkasarov@gmail.com>.
6733
6734 2009-11-02  Eric Blake  <ebb9@byu.net>
6735
6736         maint: avoid compiler warnings in m4 macros
6737         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
6738         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
6739
6740 2009-11-02  Simon Josefsson  <simon@josefsson.org>
6741
6742         * m4/pmccabe2html.m4: Remove file.
6743         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
6744         function.  Change maintainer.
6745         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
6746         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
6747         Courtès).
6748
6749 2009-10-31  Eric Blake  <ebb9@byu.net>
6750
6751         fseeko: fix m4 regression
6752         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
6753         regression from 2009-10-27.
6754         Reported by Ralf Wildenhues.
6755
6756 2009-10-31  Jim Meyering  <meyering@redhat.com>
6757
6758         inttostr: aesthetics and improved (compile-time) safety
6759         Define inttype_is_signed rather than inttype_is_unsigned,
6760         since the sole use is via "#if inttype_is_signed".
6761         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
6762         inttype_is_unsigned.
6763         * lib/offtostr.c (inttype_is_signed): Likewise.
6764         * lib/uinttostr.c (inttype_is_signed): Likewise.
6765         * lib/umaxtostr.c (inttype_is_signed): Likewise.
6766         * lib/inttostr.c (inttostr): Use verify to cross-check the
6767         inttype_is_signed value and the signedness of the actual type.
6768         * modules/inttostr (Depends-on): Add verify.
6769
6770 2009-10-30  Eric Blake  <ebb9@byu.net>
6771
6772         build: avoid compiler warnings
6773         * lib/fchmodat.c (lchmod): Mark unused variables.
6774         * lib/getopt.c (_getopt_initialize): Likewise.
6775         * lib/mktime.c (__mktime_internal): Provide prototype.
6776         * lib/inttostr.c (inttostr): Avoid compiler warning even with
6777         older gcc that do not understand #pragma GCC diagnostic.
6778         * lib/uinttostr.c (inttype_is_unsigned): Define.
6779         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
6780
6781 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
6782
6783         stat: fix compilation on AIX
6784         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
6785         only see struct stat64.
6786
6787 2009-10-30  Eric Blake  <ebb9@byu.net>
6788
6789         exclude: make more robust
6790         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
6791         rather than masking a coding bug.
6792         Suggested by Bruno Haible.
6793
6794 2009-10-30  Jim Meyering  <meyering@redhat.com>
6795
6796         perl scripts: remove #!/usr/bin/perl in favor of more portable...
6797         Rather than putting #!/usr/bin/perl on the first line,
6798         start with a variant of what's recommended by "man perlrun" that
6799         invokes the first "perl" program from your shell's search path.
6800         * build-aux/gitlog-to-changelog: Replace #!... as above.
6801         Add a "Local Variables" perl mode setting.
6802         Prompted by a patch from Ludovic Courtès.
6803         Improved by Eric Blake.
6804         * build-aux/useless-if-before-free: Likewise.
6805         * build-aux/announce-gen: Likewise.
6806         * build-aux/update-copyright: Likewise.
6807
6808 2009-10-29  Eric Blake  <ebb9@byu.net>
6809
6810         filenamecat-lgpl: adjust clients
6811         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
6812         filenamecat.
6813         * modules/renameat (Depends-on): Likewise.
6814
6815         filenamecat: split into filenamecat-lgpl
6816         * modules/filenamecat-lgpl: New module.
6817         * modules/filenamecat (Files): Move library-safe files into
6818         filenamecat-lgpl.
6819         (Depends-on): Add filenamecat-lgpl.
6820         (configure.ac): Declare witness.
6821         * lib/filenamecat.h (file_name_concat): Only declare when using
6822         GPL module.
6823         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
6824         Move...
6825         * lib/filenamecat-lgpl.c: ...into new file.
6826         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
6827         (gl_FILE_NAME_CONCAT): Use it.
6828         * MODULES.html.sh (File system functions): Mention new module.
6829
6830         argp: avoid memory leak
6831         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
6832         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
6833         base_name, since the latter malloc()s and can call exit().
6834         Leak introduced 2006-07-03.
6835
6836         dirname-lgpl: adjust clients that don't need full dirname
6837         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
6838         * modules/filenamecat (Depends-on): Likewise.
6839         * modules/linkat (Depends-on): Likewise.
6840         * modules/mkancesdirs (Depends-on): Likewise.
6841         * modules/mkdir (Depends-on): Likewise.
6842         * modules/openat (Depends-on): Likewise.
6843         * modules/savewd (Depends-on): Likewise.
6844         * modules/rename (Depends-on): Likewise.
6845         (License): Relax license.
6846         * modules/mkdir-tests (Depends-on): Drop progname.
6847         (Makefile.am): Delete unneeded LDADD.
6848         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
6849
6850         dirname: split into dirname-lgpl
6851         * modules/dirname-lgpl: New module.
6852         * modules/dirname (Files): Move library-safe files into
6853         dirname-lgpl.
6854         (Depends-on): Add dirname-lgpl.
6855         (configure.ac): Declare witness.
6856         * modules/double-slash-root (License): Relax license.
6857         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
6858         module.
6859         * lib/dirname.c (dir_len, mdir_name): Move...
6860         * lib/dirname-lgpl.c: ...into new file.
6861         * lib/basename.c (last_component, base_len): Move...
6862         * lib/basename-lgpl.c: ...into new file.
6863         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
6864         (gl_DIRNAME): Use it.
6865         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
6866         Mention new module.
6867         * modules/dirname-tests (Depends-on): Add progname.
6868         * tests/test-dirname.c (program_name): Delete.
6869
6870         mkdir: make safe for libraries
6871         * modules/mkdir (Depends-on): Drop xalloc.
6872         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
6873         exit.
6874
6875         tests: avoid some compiler warnings
6876         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
6877         literals.
6878         * tests/test-memchr.c (main): Avoid type mismatch.
6879         * tests/test-arpa_inet.c (main): Avoid unused parameters.
6880         * tests/test-base64.c (main): Likewise.
6881         * tests/test-getdelim.c (main): Likewise.
6882         * tests/test-gethostname.c (main): Likewise.
6883         * tests/test-getline.c (main): Likewise.
6884         * tests/test-netinet_in.c (main): Likewise.
6885         * tests/test-select.c (open_server_socket, main): Likewise.
6886         * tests/test-select-stdin.c (main): Likewise.
6887         * tests/test-sockets.c (main): Likewise.
6888         * tests/test-strsignal.c (main): Likewise.
6889         * tests/test-sys_select.c (main): Likewise.
6890         * tests/test-sys_socket.c (main): Likewise.
6891         * tests/test-u64.c (main): Likewise.
6892         * tests/test-xfprintf-posix.c (main): Likewise.
6893         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
6894
6895         sockets: avoid compiler warning
6896         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
6897
6898         maint: detect usage(1) and other suspicious exits
6899         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
6900
6901 2009-10-29  Jim Meyering  <meyering@redhat.com>
6902
6903         timespec: long-to-int truncation could make timespec_cmp malfunction
6904         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
6905         a multiple of 2^32 nanoseconds as no difference.
6906
6907 2009-10-28  Jim Meyering  <meyering@redhat.com>
6908
6909         fprintftime: wrap macro code argument in "do {...} while(0)"
6910         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
6911         cpy macro must be a statement that can be followed by a semicolon.
6912         Now that the else clause contains a comment and is hence longer
6913         than one line, I require curly braces.  That in turn requires
6914         that we wrap this code block in the standard do...while(0).
6915
6916         fprintftime: remove stray semicolon from previous change
6917         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
6918
6919         fprintftime: avoid a warning about ignored fwrite return value
6920         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
6921         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
6922         that is unsafe.
6923         * modules/fprintftime (Depends-on): Add ignore-value.
6924
6925         exclude: avoid an unwarranted warning
6926         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
6927
6928 2009-10-27  Eric Blake  <ebb9@byu.net>
6929
6930         fseek: avoid compilation failure when fflush is replaced
6931         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
6932         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
6933         module is in use.
6934         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
6935         module is not in use; since REPLACE_FSEEK worked otherwise.
6936         (GNULIB_FTELLO): Likewise for ftell.
6937         Reported by Ian Beckwith and others.
6938
6939 2009-10-27  Bruno Haible  <bruno@clisp.org>
6940
6941         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
6942         Reported by Jim Meyering.
6943
6944 2009-10-27  Jim Meyering  <jim@meyering.net>
6945             Bruno Haible  <bruno@clisp.org>
6946
6947         Avoid warning despite dropping the return value of fwrite.
6948         * lib/unicodeio.c: Include ignore-value.h.
6949         (fwrite_success_callback): Explicitly ignore fwrite's return value.
6950         * modules/unicodeio (Depends-on): Add ignore-value.
6951
6952 2009-10-26  Eric Blake  <ebb9@byu.net>
6953
6954         areadlinkat: fix fallback path
6955         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
6956         pointer and zero.
6957
6958 2009-10-22  Pádraig Brady  <P@draigBrady.com>
6959
6960         Use a better IO block size for modern systems
6961         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
6962         * lib/md2.c: Likewise.
6963         * lib/md4.c: Likewise.
6964         * lib/md5.c: Likewise.
6965         * lib/sha1.c: Likewise.
6966         * lib/sha256.c: Likewise.
6967         * lib/sha512.c: Likewise.
6968
6969 2009-10-22  Eric Blake  <ebb9@byu.net>
6970
6971         tests: avoid several compiler warnings
6972         * tests/test-getcwd.c (main): Avoid buffer underflow.
6973         * tests/test-getdate.c (main): String literals are not safe with
6974         putenv, so use setenv.  Declare unused argument.
6975         * modules/getdate-tests (Depends-on): Add setenv.
6976         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
6977         problems with string literals in char *.
6978         * tests/test-hash.c (main): Avoid shadowing declaration.
6979         (insert_new): Treat string literals as char const *.
6980         * tests/test-getopt.h (test_getopt): Likewise.
6981         (getopt_loop): Alter types to minimize casting elsewhere.
6982         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
6983         (test_getopt_long_posix): Likewise.
6984         (do_getopt_long): Add wrapper to minimize casting.
6985         * tests/test-atexit.c (clear_temp_file): Use void.
6986         * tests/test-areadlink-with-size.c (main): Declare unused
6987         arguments.
6988         * tests/test-areadlink.c (main): Likewise.
6989         * tests/test-areadlinkat-with-size.c (main): Likewise.
6990         * tests/test-areadlinkat.c (main): Likewise.
6991         * tests/test-canonicalize-lgpl.c (main): Likewise.
6992         * tests/test-canonicalize.c (main): Likewise.
6993         * tests/test-dirent-safer.c (main): Likewise.
6994         * tests/test-dirname.c (main): Likewise.
6995         * tests/test-dup2.c (main): Likewise.
6996         * tests/test-fchdir.c (main): Likewise.
6997         * tests/test-fcntl-h.c (main): Likewise.
6998         * tests/test-fcntl-safer.c (main): Likewise.
6999         * tests/test-fdopendir.c (main): Likewise.
7000         * tests/test-fdutimensat.c (main): Likewise.
7001         * tests/test-fflush.c (main): Likewise.
7002         * tests/test-filenamecat.c (main): Likewise.
7003         * tests/test-filevercmp.c (main): Likewise.
7004         * tests/test-fopen-safer.c (main): Likewise.
7005         * tests/test-fopen.c (main): Likewise.
7006         * tests/test-fpending.c (main): Likewise.
7007         * tests/test-fpurge.c (main): Likewise.
7008         * tests/test-freading.c (main): Likewise.
7009         * tests/test-fstatat.c (main): Likewise.
7010         * tests/test-fsync.c (main): Likewise.
7011         * tests/test-futimens.c (main): Likewise.
7012         * tests/test-getndelim2.c (main): Likewise.
7013         * tests/test-gettimeofday.c (main): Likewise.
7014         * tests/test-getopt.c (main): Likewise.
7015         * tests/test-i-ring.c (main): Likewise.
7016         * tests/test-inttypes.c (main): Likewise.
7017         * tests/test-link.c (main): Likewise.
7018         * tests/test-lstat.c (main): Likewise.
7019         * tests/test-math.c (main): Likewise.
7020         * tests/test-md5.c (main): Likewise.
7021         * tests/test-memchr2.c (main): Likewise.
7022         * tests/test-memrchr.c (main): Likewise.
7023         * tests/test-mkdir.c (main): Likewise.
7024         * tests/test-mkdirat.c (main): Likewise.
7025         * tests/test-mkfifoat.c (main): Likewise.
7026         * tests/test-open.c (main): Likewise.
7027         * tests/test-openat-safer.c (main): Likewise.
7028         * tests/test-openat.c (main): Likewise.
7029         * tests/test-quotearg.c (main): Likewise.
7030         * tests/test-rawmemchr.c (main): Likewise.
7031         * tests/test-readlink.c (main): Likewise.
7032         * tests/test-remove.c (main): Likewise.
7033         * tests/test-rename.c (main): Likewise.
7034         * tests/test-renameat.c (main): Likewise.
7035         * tests/test-rmdir.c (main): Likewise.
7036         * tests/test-sha1.c (main): Likewise.
7037         * tests/test-signal.c (main): Likewise.
7038         * tests/test-sigaction.c (main): Likewise.
7039         * tests/test-stat.c (main): Likewise.
7040         * tests/test-stat-time.c (main): Likewise.
7041         * tests/test-stddef.c (main): Likewise.
7042         * tests/test-stdint.c (main): Likewise.
7043         * tests/test-stdio.c (main): Likewise.
7044         * tests/test-stdlib.c (main): Likewise.
7045         * tests/test-strchrnul.c (main): Likewise.
7046         * tests/test-strerror.c (main): Likewise.
7047         * tests/test-string.c (main): Likewise.
7048         * tests/test-strtod.c (main): Likewise.
7049         * tests/test-strverscmp.c (main): Likewise.
7050         * tests/test-symlink.c (main): Likewise.
7051         * tests/test-symlinkat.c (main): Likewise.
7052         * tests/test-sys_stat.c (main): Likewise.
7053         * tests/test-sys_time.c (main): Likewise.
7054         * tests/test-time.c (main): Likewise.
7055         * tests/test-unistd.c (main): Likewise.
7056         * tests/test-unlink.c (main): Likewise.
7057         * tests/test-unlinkat.c (main): Likewise.
7058         * tests/test-utimens.c (main): Likewise.
7059         * tests/test-utimensat.c (main): Likewise.
7060         * tests/test-version-etc.c (main): Likewise.
7061         * tests/test-wchar.c (main): Likewise.
7062         * tests/test-wctype.c (main): Likewise.
7063         * tests/test-xprintf-posix.c (main): Likewise.
7064         * tests/test-posixtm.c (main): Likewise.
7065         (STREQ): Delete unused macro.
7066         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
7067         shadowed variables.
7068         * tests/test-memchr.c (main): Likewise.
7069
7070 2009-10-21  Eric Blake  <ebb9@byu.net>
7071
7072         areadlinkat: avoid failure on older glibc
7073         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
7074         rather than mis-comparing 0 against FUNC_RESULT of char*.
7075
7076 2009-10-21  Bruno Haible  <bruno@clisp.org>
7077
7078         * modules/stpncpy (License): Relicense under LGPLv2+.
7079         Reported by David Lutterkort <lutter@redhat.com>.
7080
7081 2009-10-20  Eric Blake  <ebb9@byu.net>
7082
7083         utimensat: work around Solaris 9 bug
7084         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
7085         has trailing slash bugs.
7086         * tests/test-lutimens.h (test_lutimens): Enhance test.
7087         * tests/test-utimens.h (test_utimens): Likewise.
7088         * doc/posix-functions/utime.texi (utime): Enhance documentation.
7089         * doc/posix-functions/utimes.texi (utimes): Likewise.
7090         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7091         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
7092         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
7093         * doc/posix-functions/futimens.texi (futimens): Likewise.
7094
7095         fdutimensat: new module
7096         * modules/fdutimensat: New file.
7097         * lib/fdutimensat.c (fdutimensat): Likewise.
7098         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
7099         * MODULES.html.sh (File system functions): Mention module.
7100         * modules/fdutimensat-tests: New test.
7101         * tests/test-fdutimensat.c: Likewise.
7102
7103         doc: regenerate INSTALL
7104         * doc/INSTALL: Reflect recent autoconf update.
7105         * doc/INSTALL.ISO: Likewise.
7106         * doc/INSTALL.UTF-8: Likewise.
7107
7108 2009-10-20  Pádraig Brady  <P@draigBrady.com>
7109
7110         acl: warn if ACL support is not detected
7111         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
7112
7113 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
7114
7115         * lib/nproc.h: Add extern "C" block for C++.
7116
7117 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
7118             Bruno Haible  <bruno@clisp.org>
7119
7120         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
7121         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
7122         * doc/posix-functions/isalpha.texi: Likewise.
7123         * doc/posix-functions/isblank.texi: Likewise.
7124         * doc/posix-functions/iscntrl.texi: Likewise.
7125         * doc/posix-functions/isdigit.texi: Likewise.
7126         * doc/posix-functions/isgraph.texi: Likewise.
7127         * doc/posix-functions/islower.texi: Likewise.
7128         * doc/posix-functions/isprint.texi: Likewise.
7129         * doc/posix-functions/ispunct.texi: Likewise.
7130         * doc/posix-functions/isspace.texi: Likewise.
7131         * doc/posix-functions/isupper.texi: Likewise.
7132         * doc/posix-functions/isxdigit.texi: Likewise.
7133
7134 2009-10-18  Bruno Haible  <bruno@clisp.org>
7135
7136         Tests for module 'isblank'.
7137         * modules/isblank-tests: New file.
7138         * tests/test-isblank.c: New file.
7139
7140         New module 'isblank'.
7141         * lib/isblank.c: New file.
7142         * m4/isblank.m4: New file.
7143         * modules/isblank: New file.
7144         * doc/posix-functions/isblank.texi: Mention the new module.
7145
7146 2009-10-18  Bruno Haible  <bruno@clisp.org>
7147
7148         New module 'ctype'.
7149         * lib/ctype.in.h: New file.
7150         * m4/ctype.m4: New file.
7151         * modules/ctype: New file.
7152         * doc/posix-headers/ctype.texi: Mention the new module.
7153
7154 2009-10-18  Jim Meyering  <meyering@redhat.com>
7155
7156         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
7157         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
7158         right after its initialization, rather than farther down.
7159         Keeping these in close proximity makes it easier to ensure
7160         that each such variable is initialized.  E.g.,
7161
7162             LIB_CLOCK_GETTIME=
7163             AC_SUBST([LIB_CLOCK_GETTIME])
7164
7165         This change also increments these serial numbers.
7166         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
7167         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7168         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7169
7170 2009-10-18  Bruno Haible  <bruno@clisp.org>
7171
7172         Don't let environment variables perturb build.
7173         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
7174         (gl_PREREQ_GETHRXTIME): ... not here.
7175
7176 2009-10-18  Bruno Haible  <bruno@clisp.org>
7177
7178         Avoid symlink attack in localcharset module.
7179         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
7180         (O_NOFOLLOW): Define fallback.
7181         (get_charset_aliases): Don't open the file if it is a symbolic link.
7182         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
7183         gl_FCNTL_H.
7184         (gl_FCNTL_H): Require it.
7185         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
7186         * modules/localcharset (Files): Add m4/fcntl_h.m4.
7187         Reported by Fergal Glynn <fglynn@veracode.com>.
7188
7189 2009-10-18  Bruno Haible  <bruno@clisp.org>
7190
7191         Implement nproc for mingw.
7192         * lib/nproc.c: Include <windows.h>
7193         (num_processors): On native Windows platforms, try GetSystemInfo.
7194
7195 2009-10-18  Bruno Haible  <bruno@clisp.org>
7196
7197         Implement nproc for IRIX.
7198         * lib/nproc.c: Include <sys/sysmp.h>.
7199         (num_processors): On IRIX systems, try sysmp.
7200         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
7201
7202 2009-10-18  Bruno Haible  <bruno@clisp.org>
7203
7204         Implement nproc for HP-UX.
7205         * lib/nproc.c: Include <sys/pstat.h>
7206         (num_processors): On HP-UX systems, try pstat_getdynamic.
7207         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
7208         pstat_getdynamic.
7209
7210 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
7211             Bruno Haible  <bruno@clisp.org>
7212
7213         Implement nproc for NetBSD, OpenBSD.
7214         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
7215         (ARRAY_SIZE): New macro.
7216         (num_processors): On BSD systems, try sysctl of HW_NCPU.
7217         * m4/nproc.m4: New file.
7218         * modules/nproc (Files): Add m4/nproc.m4.
7219         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
7220         (Makefile.am): Instead, augment lib_SOURCES.
7221
7222 2009-10-18  Bruno Haible  <bruno@clisp.org>
7223
7224         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
7225         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
7226         sys/param.h.
7227
7228 2009-10-16  Eric Blake  <ebb9@byu.net>
7229
7230         utimensat: new module
7231         * modules/utimensat: New file.
7232         * lib/utimensat.c (utimensat): Likewise.
7233         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7234         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
7235         so we can work around Linux bugs.
7236         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7237         * modules/sys_stat (Makefile.am): Substitute them.
7238         * lib/sys_stat.in.h (utimensat): Declare it.
7239         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7240         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7241         * modules/utimensat-tests: New test.
7242         * tests/test-utimensat.c: Likewise.
7243
7244         utimens: let lutimens work on non-symlinks
7245         * lib/utimens.c (lutimens): Fall back to utimens rather than
7246         failing with ENOSYS, when file is not a symlink.
7247         (utimens): Reduce redirection.
7248         * tests/test-lutimens.h (test_lutimens): Update test to cover
7249         non-symlinks.
7250         * tests/test-utimens.h (test_utimens): Update test to cover
7251         symlinks.
7252         * tests/test-utimens.c (main): Update caller.
7253
7254         utimens: cache whether utimensat syscall works
7255         * lib/utimens.c (utimensat_works_really): New cache variable.
7256         (fdutimens, lutimens): Use it to avoid failing syscall.
7257
7258         test-stat-time, test-utimens: improve portability
7259         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
7260         ext4 on alpha, and for cygwin.
7261         * tests/test-utimens-common.h: New file.
7262         (nap): Factor delays into single function.
7263         * tests/test-lutimens.h (test_lutimens): Use new header.
7264         * tests/test-futimens.h (test_futimens): Likewise.
7265         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
7266         timestamps to occur from same machine, as was done previously for
7267         test_utimens.
7268         * modules/utimens-tests (Files): Ship new file.
7269         * modules/futimens-tests (Files): Likewise.
7270         Reported in part by Jim Meyering.
7271
7272         sys_stat: sort replacement declarations
7273         * lib/sys_stat.in.h: Sort declarations.
7274         * lib/futimens.c (futimens): Fix typo.
7275
7276 2009-10-15  Jim Meyering  <meyering@redhat.com>
7277
7278         don't let environment settings perturb build
7279         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
7280         could cause a configure-time and/or build-time malfunction.
7281         Typically, a configure-time function-in-library test is performed
7282         via code like this:
7283
7284           LIB_VAR=
7285           AC_SUBST([LIB_VAR])
7286           prefix_saved_LIBS=$LIBS
7287             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
7288                        [test "$ac_cv_search_FUNC" = "none required" ||
7289                         LIB_VAR=$ac_cv_search_FUNC])
7290           LIBS=$prefix_saved_LIBS
7291
7292         However, in each of the files affected by this change, the LIB_VAR=
7293         initialization was omitted.  Thus, when set in the environment, its
7294         value would propagate into generated Makefiles when FUNC is not found
7295         in LIB_NAME.
7296         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
7297         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7298         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7299
7300 2009-10-14  Eric Blake  <ebb9@byu.net>
7301
7302         fchdir: avoid infinite recursion in mingw
7303         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
7304         recursing.
7305
7306         test-stat-time: port to mingw
7307         * tests/test-stat-time.c (force_unlink): Return a value.
7308         (test_ctime) [W32]: Fix compilation error.
7309         (nap): Don't call usleep with too large an argument.  Use
7310         force_unlink.
7311         * doc/pastposix-functions/usleep.texi (usleep): Document the
7312         portability issue.
7313
7314 2009-10-13  Jim Meyering  <meyering@redhat.com>
7315
7316         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
7317         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
7318         * modules/pipe-filter-ii: Likewise.
7319         * modules/sys_socket-tests: Likewise.
7320         * modules/tsearch-tests: Likewise.
7321         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
7322         (check): Depend on it.
7323
7324 2009-10-12  Eric Blake  <ebb9@byu.net>
7325
7326         utimens-tests: port to NFS file systems
7327         * tests/test-utimens.h (test_utimens): Refactor utimecmp
7328         comparisons to avoid spurious failures from timestamp drift
7329         between NFS machines.
7330
7331 2009-10-12  Eric Blake  <ebb9@byu.net>
7332
7333         stat-time-tests: minor cleanups
7334         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
7335         * tests/test-stat-time.c (nap): Separate assignment from call.
7336         Suggested by Paolo Bonzini and Bruno Haible.
7337
7338         sys_stat: guarantee struct timespec
7339         * lib/sys_stat.in.h (includes): Always include <time.h>
7340         * modules/sys_stat (Depends-on): Add time.
7341         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
7342         mode_t permission values.
7343         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
7344         get at subsecond timestamps.
7345
7346 2009-10-10  Eric Blake  <ebb9@byu.net>
7347
7348         futimens: new module
7349         * modules/futimens: New file.
7350         * lib/futimens.c (futimens): Likewise.
7351         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
7352         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
7353         we can work around Linux bugs.
7354         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7355         * modules/sys_stat (Makefile.am): Substitute them.
7356         * lib/sys_stat.in.h (futimens): Declare it.
7357         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7358         * doc/posix-functions/futimens.texi (futimens): Likewise.
7359         * modules/futimens-tests: New test.
7360         * tests/test-futimens.c: Likewise.
7361
7362         utimens: introduce fdutimens
7363         * lib/utimens.h (fdutimens): New prototype.
7364         * lib/utimens.c (gl_futimens): Move guts...
7365         (fdutimens): ...to new interface.
7366         * tests/test-utimens.c (do_fdutimens): Use it.
7367
7368         utimens: add UTIME_NOW and UTIME_OMIT support
7369         * lib/utimens.c (validate_timespec, update_timespec): New helper
7370         functions.
7371         (gl_futimens, lutimens): Use them.
7372         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
7373         stdbool, sys_stat.
7374         (Link): Mention resulting library dependency.
7375         * modules/utimecmp (Link): Likewise.
7376         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
7377         (Makefile.am): Pick up library dependency.
7378         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
7379         definition.
7380         * tests/test-sys_stat.c: Test the definitions.
7381         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
7382         * NEWS: Document library dependency.
7383
7384         utimecmp: support symlink timestamps
7385         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
7386         hashing when possible.  Use pathconf when available.
7387         (SYSCALL_RESOLUTION): Recognize tighter resolution.
7388         * modules/utimecmp (Depends-on): Add lstat.
7389
7390         utimens: add lutimens interface
7391         * lib/utimens.c (lutimens): New function.
7392         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
7393         * lib/utimens.h (lutimens): Declare new interface.
7394         * tests/test-utimens.c (main): Enhance test.
7395         * tests/test-lutimens.h (test_lutimens): New file.
7396         * modules/utimens-tests (Files): Distribute it.
7397         (Depends-on): Add symlink.
7398         (configure.ac): Check for usleep.
7399
7400         utimens: validate futimens usage
7401         * lib/utimens.c (gl_futimens): Require valid fd up front, using
7402         fewer syscalls on failure later on.  Avoid compiler warning on
7403         mingw.
7404         * modules/utimens (Depends-on): Add dup2.
7405
7406         utimens: add test
7407         * modules/utimens-tests: New test.
7408         * tests/test-utimens.h: New file.
7409         * tests/test-futimens.h: Likewise.
7410         * tests/test-utimens.c: Likewise.
7411
7412         doc: mention timestamp portability issues
7413         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
7414         instead.
7415         * doc/posix-functions/utime.texi (utime): Likewise.
7416         * doc/posix-functions/utimes.texi (utimes): Likewise.
7417         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
7418         instead.
7419         * doc/posix-functions/futimens.texi (futimens): Mention utimens
7420         module.
7421         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7422         Mention weakness with symlink timestamps.
7423         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
7424         to utimensat/futimens instead.
7425         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
7426
7427         test-dup2: enhance test
7428         * tests/test-dup2.c (main): Also check AT_FDCWD.
7429
7430         test-stat-time: avoid more spurious failures
7431         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
7432         xfs; and avoid race if the two timestamps cross quantization edge.
7433
7434         relocatable: prefer 'file system' over 'filesystem'
7435         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
7436         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
7437         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
7438         * doc/relocatable.texi (Enabling Relocatability): Likewise.
7439         * lib/relocatable.c (compute_curr_prefix): Likewise.
7440
7441 2009-10-10  Jim Meyering  <meyering@redhat.com>
7442
7443         stat-time-tests: check for the usleep function
7444         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
7445
7446 2009-10-10  Bruno Haible  <bruno@clisp.org>
7447
7448         * modules/xnanosleep: Put the Link section after the Include section.
7449
7450 2009-10-09  Eric Blake  <ebb9@byu.net>
7451
7452         dup2: work around FreeBSD 6.1 bug
7453         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
7454         * doc/posix-functions/dup2.texi (dup2): Document it.
7455         Reported by Nelson H. F. Beebe and Jim Meyering.
7456
7457         test-stat-time: port to buggy NFS clients
7458         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
7459         (test_ctime): Also skip test if mtime and ctime are skewed.
7460
7461         maint: prefer 'file system' over 'filesystem'
7462         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
7463         * doc/posix-functions/lstat.texi (lstat): Likewise.
7464         * lib/file-has-acl.c (file_has_acl): Likewise.
7465         * lib/fwriteerror.c [TEST]: Likewise.
7466         * tests/test-areadlink.h (test_areadlink): Likewise.
7467         * tests/test-areadlinkat-with-size.c (main): Likewise.
7468         * tests/test-areadlinkat.c (main): Likewise.
7469         * tests/test-canonicalize-lgpl.c (main): Likewise.
7470         * tests/test-canonicalize.c (main): Likewise.
7471         * tests/test-fstatat.c (main): Likewise.
7472         * tests/test-linkat.c (main): Likewise.
7473         * tests/test-lstat.h (test_lstat_func): Likewise.
7474         * tests/test-mkdir.h (test_mkdir): Likewise.
7475         * tests/test-readlink.h (test_readlink): Likewise.
7476         * tests/test-remove.c (main): Likewise.
7477         * tests/test-rename.h (test_rename): Likewise.
7478         * tests/test-renameat.c (main): Likewise.
7479         * tests/test-rmdir.h (test_rmdir_func): Likewise.
7480         * tests/test-symlink.h (test_symlink): Likewise.
7481         * tests/test-symlinkat.c (main): Likewise.
7482         * tests/test-unlink.h (test_unlink_func): Likewise.
7483         * tests/test-unlinkat.c (main): Likewise.
7484
7485         maint: make realtime library usage explicit
7486         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
7487         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
7488         * modules/settime (Link): Likewise.
7489         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
7490
7491         test-stat-time: speed up execution
7492         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
7493         warning on mingw.
7494         (nap): New helper function.
7495         (prepare_test): Use it to reduce sleep time.
7496         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
7497         execution.
7498         * modules/stat-time-tests (configure.ac): Check for usleep.
7499
7500 2009-10-09  Jim Meyering  <meyering@redhat.com>
7501
7502         selinux-h: always use getfilecon wrappers
7503         * lib/getfilecon.c: New file.
7504         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
7505         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
7506         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
7507         (fgetfilecon): Provide a stub.
7508         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
7509         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
7510         file unconditionally.
7511         When <selinux/selinux.h> is found, arrange to use wrappers.
7512         * modules/selinux-h (Files): Add getfilecon.c.
7513         (Makefile.am): Substitute include-next-related bits
7514         into the now-always-generated selinux/selinux.h file.
7515         * doc/glibc-functions/lgetfilecon.texi: New file.
7516         * doc/glibc-functions/fgetfilecon.texi: New file.
7517         * doc/glibc-functions/getfilecon.texi: New file.
7518         * doc/glibc-functions/getfilecon-desc.texi: New file.
7519         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
7520         which to pull in the new files.
7521         * MODULES.html.sh (Misc): Add selinux-h.
7522
7523 2009-10-08  Jim Meyering  <meyering@redhat.com>
7524
7525         unistd: fix comment typo
7526         * lib/unistd.in.h (euidaccess): Fix a comment typo.
7527
7528 2009-10-08  Eric Blake  <ebb9@byu.net>
7529
7530         areadlink: use SIZE_MAX consistently
7531         * modules/areadlink (Depends-on): Add stdint.
7532         * modules/areadlink-with-size (Depends-on): Likewise.
7533         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
7534         gives NULL; drop sys/types, since unistd gives size_t; and add
7535         stdint for SIZE_MAX.
7536         (SIZE_MAX): Rely on headers.
7537         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
7538         and add stdint.
7539         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
7540         (SIZE_MAX): Likewise.
7541         (INITIAL_BUF_SIZE): Turn into enum.
7542         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
7543
7544 2009-10-08  Jim Meyering  <meyering@redhat.com>
7545
7546         areadlinkat: avoid compilation failure
7547         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
7548         Fix typo in comment.
7549
7550 2009-10-07  Eric Blake  <ebb9@byu.net>
7551
7552         areadlinkat-with-size: new module
7553         * modules/areadlinkat-with-size: New module.
7554         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
7555         * lib/areadlink.h (areadlinkat): Declare it.
7556         * MODULES.html.sh (File system functions): Mention it.
7557         * modules/areadlinkat-with-size-tests: New test.
7558         * tests/test-areadlinkat-with-size.c: New file.
7559
7560         xreadlinkat: new module
7561         * modules/xreadlinkat: New module.
7562         * lib/xreadlinkat.c (xreadlinkat): New file.
7563         * lib/xreadlink.h (xreadlinkat): Declare it.
7564         * MODULES.html.sh (File system functions): Mention it.
7565
7566         areadlinkat: new module
7567         * lib/at-func.c (FUNC_FAIL): New define.
7568         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
7569         * modules/areadlinkat: New module.
7570         * lib/linkat.c (areadlinkat): Move...
7571         * lib/areadlinkat.c (areadlinkat): ...to new file.
7572         * lib/areadlink.h (areadlinkat): Declare it.
7573         * modules/linkat (Depends-on): Add areadlinkat.
7574         * MODULES.html.sh (File system functions): Mention it.
7575         * modules/areadlinkat-tests: New test.
7576         * tests/test-areadlinkat.c: New file.
7577
7578         areadlink, areadlink-with-size: add tests
7579         * modules/areadlink-tests: New test.
7580         * modules/areadlink-with-size-tests: Likewise.
7581         * tests/test-areadlink.h: New file.
7582         * tests/test-areadlink.c: Likewise.
7583         * tests/test-areadlink-with-size.c: Likewise.
7584
7585         maint: minor cleanups
7586         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
7587         _UNUSED_PARAMETER_ instead.
7588         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
7589         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
7590         * modules/linkat-tests (Files): Distribute test-link.h.
7591
7592         openat, utimens: whitespace cleanup
7593         * lib/openat.c: Prefer space throughout, rather than mix of 8
7594         spaces vs. tabs.
7595         * lib/at-func.c: Likewise.
7596         * lib/utimens.c: Likewise.
7597
7598         openat: avoid using wrong fd
7599         * lib/openat.c (openat_permissive): Reject user's fd if saving the
7600         working directory chooses same fd.
7601         * lib/at-func.c (AT_FUNC_NAME): Likewise.
7602
7603         mkdir, mkdirat: fix cygwin 1.5.x bug
7604         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
7605         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
7606         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
7607         bug.
7608         (gl_PREREQ_MKDIR): Delete unused macro.
7609         * modules/mkdir (Files): Track file rename.
7610         (configure.ac): Update macro name.
7611         * modules/openat (Depends-on): Add mkdir.
7612         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
7613
7614         mkdir, mkdirat: add tests
7615         * modules/mkdir-tests: New test.
7616         * tests/test-mkdir.h: New file.
7617         * tests/test-mkdir.c: Likewise.
7618         * tests/test-mkdirat.c: Likewise.
7619         * modules/openat-tests (Files): Add new files.
7620         (Makefile.am): Run new test.
7621
7622 2009-10-06  Eric Blake  <ebb9@byu.net>
7623
7624         doc: tweak *at function documentation
7625         * doc/posix-functions/faccessat.texi (faccessat): Mention
7626         known issue with replacement.
7627         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
7628         * doc/posix-functions/linkat.texi (linkat): Likewise.
7629         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
7630         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
7631         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
7632         * doc/posix-functions/renameat.texi (renameat): Likewise.
7633         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
7634
7635         openat: fix GNU/Hurd bug in unlinkat
7636         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
7637         broken.
7638         * doc/posix-functions/unlink.texi (unlink): Document this.
7639         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
7640
7641         fdopendir: fix GNU/Hurd bug
7642         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
7643         allowing non-directory fds.
7644         * lib/fdopendir.c (rpl_fdopendir): Work around it.
7645         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
7646         * modules/dirent (Makefile.am): Substitute it.
7647         * lib/dirent.in.h (fdopendir): Declare replacement.
7648         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
7649         * tests/test-fdopendir.c (main): Test something other than
7650         /dev/null, since on Hurd that behaves like a directory.
7651
7652         test-symlink: port to GNU/Hurd
7653         * tests/test-symlink.h (test_symlink): Relax expected errno.
7654
7655         doc: tweak more cygwin information
7656         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
7657         now compatible with glibc.
7658         * doc/posix-functions/getopt.texi (getopt): Likewise.
7659
7660         getopt-gnu: add another test
7661         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
7662         guarantee behavior relied on by m4.
7663         * tests/test-getopt.c (main): Use it.
7664         * modules/getopt-posix-tests (Depends-on): Add setenv.
7665         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
7666
7667         getopt: fix compilation on darwin
7668         * lib/getopt.in.h (includes): Leave breadcrumbs during system
7669         include.
7670         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
7671         Reported by Ludovic Courtès.
7672
7673 2009-10-06  Bruno Haible  <bruno@clisp.org>
7674
7675         * modules/size_max (Description): Discourage its use.
7676         Reported by Simon Josefsson.
7677
7678 2009-10-06  Jim Meyering  <meyering@redhat.com>
7679
7680         linkat: avoid compilation failure
7681         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
7682
7683 2009-10-05  Eric Blake  <ebb9@byu.net>
7684
7685         linkat: support Linux 2.6.17
7686         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
7687         linkat on Linux, but allow cache variable override.
7688         * lib/linkat.c (rpl_linkat): Define override.
7689         * modules/linkat (Depends-on): Add symlinkat.
7690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
7691         * modules/unistd (Makefile.am): Substitute it.
7692         * lib/unistd.in.h (linkat): Declare replacement.
7693         Reported by Pádraig Brady.
7694
7695         quotearg: port test to systems with C.UTF-8 locale
7696         * tests/test-quotearg.c (struct result_strings): Add another
7697         member, differentiating between C.ASCII and C.UTF-8 handling.
7698         (compare_strings): Add parameter.
7699         (main): Adjust all callers.
7700
7701         getopt: avoid clash with FreeBSD _getopt_internal
7702         * lib/getopt.in.h (_getopt_internal): Override the name.
7703         * lib/getopt_int.h (includes): Pick up any overrides.
7704         Reported by Reuben Thomas.
7705
7706         hash: allow C89 compilation
7707         * lib/hash.c (check_tuning): Move declaration before statement.
7708         Reported by Reuben Thomas.
7709
7710 2009-10-05  Karl Berry  <karl@gnu.org>
7711
7712         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
7713
7714 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
7715             Bruno Haible  <bruno@clisp.org>
7716
7717         * lib/uname.c (uname): Use a table-driven algorithm to compute
7718         Windows NT versions.
7719
7720 2009-10-04  Bruno Haible  <bruno@clisp.org>
7721
7722         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
7723         program_invocation_short_name.
7724         * modules/progname (configure.ac): Test for presence of
7725         program_invocation_short_name.
7726         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
7727
7728 2009-10-04  Bruno Haible  <bruno@clisp.org>
7729
7730         * lib/progname.c (set_program_name): Fix comment.
7731         Reported by Jim Meyering.
7732
7733 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
7734             Bruno Haible  <bruno@clisp.org>
7735
7736         * lib/uname.c: Include <string.h>.
7737         (uname): Do only one call to GetVersionEx in the common case.
7738
7739 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
7740             Bruno Haible  <bruno@clisp.org>
7741
7742         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
7743         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
7744         (uname): Add support for Windows CE and various non-x86 CPU types.
7745
7746 2009-10-03  Bruno Haible  <bruno@clisp.org>
7747
7748         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
7749         invocation to tests/configure.ac.
7750         Reported by Ian Beckwith <ianb@erislabs.net>.
7751
7752 2009-10-02  Eric Blake  <ebb9@byu.net>
7753
7754         fchdir: avoid compiler warning
7755         * lib/fchdir.c (canonicalize_file_name)
7756         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
7757
7758         test-open: support mingw errno values
7759         * tests/test-open.h (test_open): Relax test.
7760         * tests/test-fopen.h (test_fopen): Likewise.
7761         * tests/test-openat-safer.c (main): Likewise.
7762
7763         open: fix opening directory on mingw
7764         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
7765
7766         test-open: on GNU/Hurd, /dev/null is a directory
7767         * tests/test-fopen.h (main): Rename...
7768         (test_fopen): ...to this.  Use a guaranteed non-directory when
7769         confirming open behavior on trailing slash.
7770         * tests/test-openat-safer.c (main): Likewise.
7771         * tests/test-open.h (main): Likewise....
7772         (test_open): ...to this.
7773         * tests/test-fopen.c (main): Adjust caller.
7774         * tests/test-fopen-safer.c (main): Likewise.
7775         * tests/test-open.c (main): Likewise.
7776         * tests/test-fcntl-safer.c (main): Likewise.
7777         Reported by Samuel Thibault.
7778
7779         rename, fchdir: don't ignore chdir failure
7780         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
7781         * lib/rename.c (rpl_rename) [W32]: Likewise.
7782         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
7783         an empty destination directory if source cannot be renamed,
7784         although there is still possibility for failure.
7785         * doc/posix-functions/rename.texi (rename): Document the race.
7786         Reported by Jim Meyering.
7787
7788         maint: cleanup whitespace in recent commits
7789         * lib/rename.c (rpl_rename): Remove tabs.
7790         * tests/test-link.h (test_link): Likewise.
7791         * lib/fchdir.c (get_name): Likewise.
7792         Reported by Jim Meyering.
7793
7794 2009-10-02  Ben Pfaff  <blp@gnu.org>
7795
7796         relocatable-prog-wrapper: Add missing dependency on
7797         double-slash-root.
7798         * modules/relocatable-prog-wrapper: Add dependency.
7799         Reported by Ian Beckwith <ianb@erislabs.net>.
7800
7801 2009-10-02  Eric Blake  <ebb9@byu.net>
7802
7803         renameat: fix Solaris bugs
7804         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
7805         needed fixing.
7806         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
7807         * modules/stdio (Makefile.am): Substitute it.
7808         * lib/stdio.in.h (renameat): Declare replacement.
7809         * lib/renameat.c (rpl_renameat): Implement fix.
7810
7811         renameat: new module
7812         * modules/renameat: New file.
7813         * lib/renameat.c (renameat): Likewise.
7814         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
7815         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
7816         * modules/stdio (Makefile.am): Substitute them.
7817         * lib/stdio.in.h (renameat): Declare it.
7818         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7819         * doc/posix-functions/renameat.texi (renameat): Likewise.
7820         * modules/renameat-tests: New test.
7821         * tests/test-renameat.c: Likewise.
7822
7823         rename: fix mingw bugs
7824         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
7825         directory overwrite bugs.
7826
7827         rename: fix another cygwin 1.5 bug
7828         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
7829         checks.
7830         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
7831         unnecessary cygwin workarounds.  Also work around bug with moving
7832         full directory onto an empty one.
7833         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
7834
7835         rename-dest-slash: merge into rename module
7836         * modules/rename-dest-slash (Status): Mark obsolete.
7837         (Depends-on): Add rename.
7838         (Files): Let rename do it all.
7839         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
7840         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
7841         * m4/rename-dest-slash.m4: ...so this file can be deleted.
7842         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
7843         * lib/rename.c (rpl_rename): Update comments.
7844
7845         rename: fix cygwin 1.5.x bugs
7846         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
7847         * lib/rename.c (rpl_rename): Work around them.
7848         * modules/rename (Depends-on): Add same-inode.
7849
7850         rename: fix Solaris 10 bug
7851         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
7852         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
7853         was the only bug.
7854
7855         rename: fix Solaris 9 bug
7856         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
7857         on non-directory.  Avoid calling exit.
7858         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
7859         strdup.
7860         * modules/rename-tests (Depends-on): Drop lstat.
7861         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
7862         (gl_PREREQ_RENAME): Delete unused macro.
7863
7864         rename-dest-slash: fix NetBSD bug
7865         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
7866         links.
7867         * modules/rename-dest-slash (Depends-on): Add same-inode.
7868
7869         rename-tests: new test, exposes several platform bugs
7870         * modules/rename-tests: New file.
7871         * tests/test-rename.h: Likewise.
7872         * tests/test-rename.c: Likewise.
7873         * doc/posix-functions/rename.texi (rename): Improve documentation,
7874         including bugs that will eventually be fixed in gnulib.
7875
7876 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
7877
7878         * lib/uname.c: Include <stdlib.h>
7879         (uname): Assume version info is available.
7880
7881 2009-10-02  Jim Meyering  <meyering@redhat.com>
7882
7883         gnu-web-doc-update: correct --help output
7884         * build-aux/gnu-web-doc-update: Make --help output relevant.
7885
7886         gnu-web-doc-update: add standard options
7887         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
7888
7889         gnu-web-doc-update: New module.
7890         Use this script to automatically update the on-line web documentation
7891         for your GNU project at http://www.gnu.org/software/$pkg/manual/
7892         * modules/gnu-web-doc-update: New file, from coreutils.
7893         * build-aux/gnu-web-doc-update: New script.
7894
7895 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
7896
7897         link: LoadLibrary is not needed.
7898         * lib/link.c: Use GetModuleHandle.
7899
7900 2009-10-01  Eric Blake  <ebb9@byu.net>
7901
7902         getopt: bump serial number
7903         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
7904         change.
7905
7906         tests: tighten link, rmdir, and remove tests
7907         * tests/test-link.h (includes): No need to use <config.h> here.
7908         Clean up if directory hard link was created, otherwise test for
7909         trailing '.'.
7910         * tests/test-linkat.c (main): Simplify.
7911         * tests/test-remove.c (main): Enhance test for trailing '.'.
7912         * tests/test-rmdir.h (test_rmdir_func): Likewise.
7913
7914 2009-10-01  Jim Meyering  <meyering@redhat.com>
7915
7916         maint.mk: requiring "make major" was annoying, for a "minor" release.
7917         What is intended is "stable", to contrast with alpha and beta,
7918         so require "make stable", not "make major".
7919         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
7920         (get_tool_versions): Likewise.
7921         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
7922
7923 2009-09-30  Ben Pfaff  <blp@gnu.org>
7924
7925         Fix broken build of replacement for Windows tmpfile().
7926         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
7927         flags argument added along with the 'mkostemp' module.
7928
7929 2009-09-28  Bruno Haible  <bruno@clisp.org>
7930
7931         Avoid identifier clash with POSIX function 'remove' defined as a macro.
7932         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
7933         to 'remove_elt'.
7934         (gl_list_remove): Update.
7935         * lib/gl_list.c (gl_list_remove): Update.
7936         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
7937         to 'remove_elt'.
7938         (gl_oset_remove): Update.
7939         * lib/gl_list.c (gl_oset_remove): Update.
7940         Reported by Eric Blake.
7941
7942 2009-09-28  Eric Blake  <ebb9@byu.net>
7943
7944         doc: mention yet more cygwin 1.7 status
7945         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
7946         cygwin.
7947         * doc/glibc-functions/execvpe.texi (execvpe): New file.
7948         * doc/gnulib.texi (Glibc unistd.h): Mention it.
7949
7950         argp: fix test failure
7951         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
7952         that are not upper-case.  Pass correct range to tolower.
7953
7954 2009-09-27  Jim Meyering  <meyering@redhat.com>
7955
7956         test-yesno: work around sparc-dash here-document infelicity
7957         Without this change, the literal \177 byte in a here document
7958         would make dash 0.5.5.1-3 access uninitialized memory.
7959         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
7960         Instead, use a marker, "@", and filter through tr to create the desired
7961         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
7962
7963 2009-09-27  Bruno Haible  <bruno@clisp.org>
7964
7965         Disable untested support for new flavours of ACLs on AIX.
7966         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
7967         progress.
7968         * lib/set-mode-acl.c (qset_acl): Likewise.
7969
7970 2008-12-07  Bruno Haible  <bruno@clisp.org>
7971
7972         Add support for new flavours of ACLs on AIX. (Untested.)
7973         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
7974         (file_has_acl): Add support for newer AIX.
7975         * lib/set-mode-acl.c (qset_acl): Likewise.
7976         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
7977         Rainer Tammer <tammer@tammer.net>.
7978
7979 2009-09-26  Eric Blake  <ebb9@byu.net>
7980
7981         argp: fix compilation of getopt
7982         * lib/getopt.in.h (includes): Use different guard than glibc.
7983         Reported by Sergey Poznyakoff.
7984
7985         doc: mention more cygwin 1.7 status
7986         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
7987         bug.
7988         * doc/posix-functions/execl.texi (execl): Likewise.
7989         * doc/posix-functions/execle.texi (execle): Likewise.
7990         * doc/posix-functions/execlp.texi (execlp): Likewise.
7991         * doc/posix-functions/execv.texi (execv): Likewise.
7992         * doc/posix-functions/execve.texi (execve): Likewise.
7993         * doc/posix-functions/execvp.texi (execvp): Likewise.
7994         * doc/glibc-functions/canonicalize_file_name.texi
7995         (canonicalize_file_name): Cygwin 1.7 now provides this.
7996         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
7997         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
7998         on AT_SYMLINK_NOFOLLOW.
7999
8000 2009-09-24  Eric Blake  <ebb9@byu.net>
8001
8002         test-linkat: make test more robust
8003         * tests/test-linkat.c (main): Avoid collision with EEXIST.
8004
8005         getopt: fix inclusion guards for cygwin
8006         * modules/getopt-posix (Depends-on): Add include-next.
8007         (Makefile.am): Substitute more items in replacement header.
8008         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
8009         <getopt.h>.
8010         * lib/getopt.in.h (includes): Use split inclusion guard, and
8011         prefer <getopt.h> over include <unistd.h> when one is present.
8012         (option): Also override name of 'struct option'.
8013
8014         same-inode: revert prior change; it is not yet ready
8015         * NEWS: Undo mention of this change.
8016         * lib/same-inode.h (same-inode.h): Undo tri-state change.
8017         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
8018         * lib/cycle-check.c (cycle_check): Likewise.
8019         * lib/same.c (same_name): Likewise.
8020         * lib/at-func2.c (at_func2): Likewise.
8021
8022 2009-09-23  Eric Blake  <ebb9@byu.net>
8023
8024         linkat: new module
8025         * modules/linkat: New file.
8026         * lib/at-func2.c (at_func2): Likewise.
8027         * lib/linkat.c (linkat): Likewise.
8028         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8029         * lib/openat-priv.h (at_func2): Add declaration.
8030         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8031         * modules/unistd (Makefile.am): Substitute them.
8032         * lib/unistd.in.h (linkat): Declare it.
8033         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8034         * doc/posix-functions/linkat.texi (linkat): Likewise.
8035         * doc/posix-functions/link.texi (link): Tweak wording.
8036         * tests/test-link.c (main): Move guts...
8037         * tests/test-link.h (test_link): ...into new file.
8038         * modules/linkat-tests: New test.
8039         * tests/test-linkat.c: Likewise.
8040         * modules/link-tests (Files): Ship new file.
8041         (Depends-on): Add stdbool.
8042
8043         dirname: add library-safe mdir_name
8044         * lib/dirname.h (mdir_name): New prototype.
8045         * lib/dirname.c (dir_name): Move guts...
8046         (mdir_name): ...to new function that avoids xalloc_die.
8047
8048         fchdir: another mingw fix
8049         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
8050         * lib/fchdir.c (get_name): New helper method; skips canonicalize
8051         on mingw (where it has not yet been ported), and make it optional
8052         elsewhere.
8053         (_gl_register_fd): Use it.
8054
8055         same-inode: make SAME_INODE tri-state, to port to mingw
8056         * NEWS: Mention this change.
8057         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
8058         st_ino always being 0.
8059         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
8060         * lib/cycle-check.c (cycle_check): Likewise.
8061         * lib/same.c (same_name): Likewise.
8062
8063         lstat: avoid mingw compilation error
8064         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
8065         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
8066         lstat ourselves.
8067         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
8068         was adequate.
8069         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
8070         the checks for lstat.
8071         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
8072
8073         link: fix test failure on Solaris 9
8074         * lib/link.c (rpl_link): Don't assume link will catch bogus
8075         trailing slash on source.
8076
8077         test-symlinkat: enhance test
8078         * tests/test-readlink.c (main): Move guts...
8079         * tests/test-readlink.h (test_readlink): ...into new file.
8080         * tests/test-symlink.c (main): Move guts...
8081         * tests/test-symlink.h (test_symlink): ...into new file.
8082         * tests/test-symlinkat.c (main): Use new files for further
8083         coverage.
8084         (do_symlink, do_readlink): New helper functions.
8085         * modules/symlink-tests (Files): Ship new file.
8086         (Depends-on): Add stdbool.
8087         * modules/readlink-tests (Files): Ship new file.
8088         (Depends-on): Add stdbool.
8089         * modules/symlinkat-tests (Files): Use new files.
8090
8091 2009-09-23  Eric Blake  <ebb9@byu.net>
8092
8093         readlink: document portability issue with symlink length
8094         * doc/posix-functions/lstat.texi (lstat): Mention that some file
8095         systems have bogus st_size on symlinks, and mention the
8096         areadlink-with-size module.
8097         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8098         * doc/posix-functions/readlink.texi (readlink): Mention the
8099         areadlink module, and ERANGE failure.
8100         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8101         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
8102
8103         readlink: fix Solaris 9 bug with trailing slash
8104         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
8105         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
8106         * doc/posix-functions/readlink.texi (readlink): Document this.
8107         * modules/readlink-tests: New test.
8108         * tests/test-readlink.c: Likewise.
8109
8110         readlink: fix cygwin 1.5.x bug with return type
8111         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
8112         * lib/unistd.in.h (readlink): Use ssize_t.
8113         * lib/readlink.c (readlink): Likewise.
8114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8115         * modules/unistd (Makefile.am): Substitute it.
8116         * lib/unistd.in.h (readlink): Declare replacement.
8117         * doc/posix-functions/readlink.texi (readlink): Document this.
8118
8119         symlink: use throughout gnulib
8120         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
8121         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
8122         symlink is not used.
8123         * modules/symlinkat (Depends-on): Add symlink.
8124         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8125         * modules/canonicalize-tests (Depends-on): Likewise.
8126         * modules/lstat-tests (Depends-on): Likewise.
8127         * modules/openat-tests (Depends-on): Likewise.
8128         * modules/remove-tests (Depends-on): Likewise.
8129         * modules/rmdir-tests (Depends-on): Likewise.
8130         * modules/unlink-tests (Depends-on): Likewise.
8131         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
8132         * tests/test-canonicalize.c (symlink): Likewise.
8133         * tests/test-fstatat.c (symlink): Likewise.
8134         * tests/test-lstat.c (symlink): Likewise.
8135         * tests/test-remove.c (symlink): Likewise.
8136         * tests/test-rmdir.c (symlink): Likewise.
8137         * tests/test-unlink.c (symlink): Likewise.
8138         * tests/test-unlinkat.c (symlink): Likewise.
8139
8140         symlink: new module, for Solaris 9 bug
8141         * modules/symlink: New file.
8142         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
8143         * lib/symlink.c: Likewise.
8144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
8145         * modules/unistd (Makefile.am): Substitute them.
8146         * lib/unistd.in.h (symlink): Declare replacement.
8147         * MODULES.html.sh (File system functions): Mention it.
8148         * doc/posix-functions/symlink.texi (symlink): Likewise.
8149         * modules/symlink-tests: New test.
8150         * tests/test-symlink.c: Likewise.
8151
8152 2009-09-23  Bruno Haible  <bruno@clisp.org>
8153
8154         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
8155         when needed.
8156         Test case: gnulib-tool --import --with-tests atexit inttypes.
8157         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
8158
8159 2009-09-23  Bruno Haible  <bruno@clisp.org>
8160
8161         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
8162         subcommand, not in a subshell.
8163
8164 2009-09-22  Eric Blake  <ebb9@byu.net>
8165
8166         unistd: sort replacement declarations
8167         * lib/unistd.in.h: Sort declarations.
8168
8169         open, openat: minor optimization
8170         * lib/open.c (open): If open succeeded, len is non-zero.
8171         * lib/openat.c (rpl_openat): Likewise.
8172
8173         link-follow: ensure correct result
8174         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
8175         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
8176         distinguish between possible failures.
8177
8178 2009-09-21  Eric Blake  <ebb9@byu.net>
8179
8180         fts: avoid compiler warning
8181         * lib/fts.c (dirent_inode_sort_may_be_useful)
8182         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
8183
8184 2009-09-19  Bruno Haible  <bruno@clisp.org>
8185
8186         * lib/progreloc.c (canonicalize_file_name): New declaration.
8187
8188 2009-09-19  Eric Blake  <ebb9@byu.net>
8189
8190         link: fix quoting
8191         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
8192
8193         openat: fix openat bugs on Solaris 9
8194         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
8195         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
8196         * modules/openat (Depends-on): Add open.
8197         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
8198         * modules/fcntl-h (Makefile.am): Substitute it.
8199         * lib/fcntl.in.h (openat): Declare replacement.
8200         * doc/posix-functions/openat.texi (openat): Document this.
8201
8202         openat: move fstatat and unlinkat into correct files
8203         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
8204         compiled.
8205         * lib/openat.c (fstatat, unlinkat): Move...
8206         * lib/fstatat.c (fstatat): ...into correct files.
8207         * lib/unlinkat.c (unlinkat): Likewise.
8208
8209         openat: fix unlinkat bugs on Solaris 9
8210         * lib/unlinkat.c (unlinkat): New file.
8211         * modules/openat (Depends-on): Add unlink.
8212         (Files): Distribute it.
8213         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
8214         trailing slash behavior is broken.
8215         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8216         * modules/unistd (Makefile.am): Substitute it.
8217         * lib/unistd.in.h (unlinkat): Declare replacement.
8218         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
8219
8220         openat: fix fstatat bugs on Solaris 9
8221         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
8222         stat.
8223         * doc/posix-functions/fstatat.texi (fstatat): Document this.
8224
8225         test-unlinkat: enhance test, to expose Solaris 9 bug
8226         * tests/test-unlink.c (main): Factor guts...
8227         * tests/test-unlink.h (test_rmdir_func): ...into new file.
8228         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
8229         * tests/test-rmdir.c (main): Adjust caller.
8230         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
8231         (unlinker): New helper function.
8232         (rmdirat): Enhance check.
8233         * modules/rmdir-tests (Depends-on): Add stdbool.
8234         * modules/unlink-tests (Depends-on): Likewise.
8235         (Files): Add test-unlink.h.
8236         * modules/openat-tests (Files): Likewise.
8237         (Depends-on): Add unlinkdir.
8238
8239         test-fstatat: new test, to expose Solaris 9 bugs
8240         * tests/test-stat.c (main): Factor guts...
8241         * tests/test-stat.h (test_stat_func): ...into new file.
8242         * tests/test-lstat.c (main): Factor guts...
8243         * tests/test-lstat.h (test_lstat_func): ...into new file.
8244         * tests/test-fstatat.c: New file.
8245         * modules/stat-tests (Files): Add test-stat.h.
8246         * modules/lstat-tests (Files): Add test-lstat.h.
8247         (Depends-on): Add stdbool.
8248         * modules/openat-tests (Depends-on): Add pathmax.
8249         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
8250         (Makefile.am): Run new test.
8251
8252         remove: new module, for mingw and Solaris 9 bugs
8253         * modules/remove: New file.
8254         * lib/remove.c: Likewise.
8255         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
8256         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8257         * modules/stdio (Makefile.am): Use them.
8258         * lib/stdio.in.h (remove): Declare replacement.
8259         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8260         * doc/posix-functions/remove.texi (remove): Likewise.
8261         * modules/remove-tests: New test.
8262         * tests/test-remove.c: Likewise.
8263
8264         unlink: new module, for Solaris 9 bug
8265         * modules/unlink: New file.
8266         * lib/unlink.c: Likewise.
8267         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8269         * modules/unistd (Makefile.am): Use them.
8270         * lib/unistd.in.h (stat): Declare replacement.
8271         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8272         * doc/posix-functions/unlink.texi (unlink): Likewise.
8273         * modules/unlink-tests: New test.
8274         * tests/test-unlink.c: Likewise.
8275
8276         lstat: fix Solaris 9 bug
8277         * lib/lstat.c (lstat): Also check for trailing slash on
8278         non-symlink, non-directories.  Use stat module to simplify logic.
8279         * doc/posix-functions/lstat.texi (lstat): Document it.
8280         * modules/lstat-tests (Depends-on): Add errno, same-inode.
8281         (configure.ac): Check for symlink.
8282         * tests/test-lstat.c (main): Add more tests.
8283
8284         stat: add as dependency to other modules
8285         * modules/chown (Depends-on): Add stat.
8286         * modules/euidaccess (Depends-on): Likewise.
8287         * modules/fchdir (Depends-on): Likewise.
8288         * modules/isdir (Depends-on): Likewise.
8289         * modules/link (Depends-on): Likewise.
8290         * modules/lstat (Depends-on): Likewise.
8291         * modules/mkdir-p (Depends-on): Likewise.
8292         * modules/modechange (Depends-on): Likewise.
8293         * modules/open (Depends-on): Likewise.
8294         * modules/readlink (Depends-on): Likewise.
8295         * modules/same (Depends-on): Likewise.
8296
8297         stat: fix Solaris 9 bug
8298         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
8299         slash.
8300         * lib/stat.c (rpl_stat): Work around it.
8301         * doc/posix-functions/stat.texi (stat): Update documentation.
8302
8303         stat: new module, for mingw bug
8304         * modules/stat: New file.
8305         * lib/stat.c: Likewise.
8306         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8307         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8308         * modules/sys_stat (Makefile.am): Use them.
8309         * lib/sys_stat.in.h (stat): Declare replacement.
8310         * lib/openat.c (fstatat): Deal with lstat and stat being function
8311         macros.
8312         * modules/openat (Depends-on): Add inline.
8313         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8314         * doc/posix-functions/stat.texi (stat): Likewise.
8315         * modules/stat-tests: New test.
8316         * tests/test-stat.c: Likewise.
8317
8318 2009-09-19  Jim Meyering  <meyering@redhat.com>
8319
8320         syntax-check: detect unnecessary inclusion of canonicalize.h
8321         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
8322
8323 2009-09-19  Eric Blake  <ebb9@byu.net>
8324
8325         canonicalize-lgpl: adjust clients to use correct header
8326         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
8327         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
8328         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
8329         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
8330         * lib/progreloc.c (includes): Likewise.
8331
8332 2009-09-19  Jim Meyering  <meyering@redhat.com>
8333
8334         test-posixtm.c: correct a comment
8335         * tests/test-posixtm.c: Correct first-line comment.
8336         Spotted by Eric Blake.
8337
8338 2009-09-16  Jim Meyering  <meyering@redhat.com>
8339
8340         posixtm-tests: make T const-correct; add a test case
8341         * tests/test-posixtm.c (T): Declare const.
8342         Add a test for -(2^31+1).
8343         Remove useless can-succeed-only-in-2002 test.
8344
8345         posixtm-tests: adjust the sole failing test
8346         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
8347         expected output matches what mktime now produces.  Cross-checked via
8348         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
8349
8350         posixtm: move #ifdef'd tests into a new module
8351         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
8352         * tests/test-posixtm.c: ... this new file.
8353         * modules/posixtm-tests: New module.
8354
8355 2009-09-19  Eric Blake  <ebb9@byu.net>
8356
8357         openat: simplify use of at-func.c
8358         * lib/at-func.c (includes): Include prerequisites here, to
8359         simplify requirements on client files.
8360         * lib/openat-priv.h: Add double-inclusion guard.
8361         * lib/faccessat.c (includes): Simplify.
8362         * lib/fchmodat.c (includes): Likewise.
8363         * lib/fchownat.c (includes): Likewise.
8364         * lib/mkdirat.c (includes): Likewise.
8365         * lib/mkfifoat.c (includes): Likewise.
8366         * lib/symlinkat.c (includes): Likewise.
8367
8368         openat: allow return of fd 0
8369         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
8370         * modules/save-cwd (Depends-on): Replace fcntl-safer with
8371         unistd-safer.
8372         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
8373         <fcntl.h>; this module does not leak fds.
8374         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
8375         must be allowed to return 0, leaving openat_safer to add the
8376         safety.
8377         (openat_permissive): Avoid writing to just-opened fd 2 if
8378         restoring the current directory fails.
8379         * lib/openat-die.c (openat_restore_fail): Add comment.
8380         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
8381         (save_cwd): Guarantee safe fd, but without use of open_safer.
8382         * tests/test-openat.c: New test.
8383         * modules/openat-tests (Files, Makefile.am): Distribute and build
8384         new file.
8385
8386         relocatable-prog-wrapper: fix build
8387         * modules/relocatable-prog-wrapper (Files): Update name of
8388         canonicalize m4 file, broken on 2009-09-17.
8389         Reported by emad hajjar <aleppos@hotmail.com>.
8390
8391 2009-09-19  Bruno Haible  <bruno@clisp.org>
8392
8393         * lib/safe-alloc.h: Use the standard header with GPL copyright.
8394         * lib/safe-alloc.c: Likewise.
8395         Reported by Ian Beckwith <ianb@erislabs.net>.
8396
8397 2009-09-18  Bruno Haible  <bruno@clisp.org>
8398
8399         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
8400         Reported by <erobles@sensacd.com.mx>.
8401
8402 2009-09-17  Eric Blake  <ebb9@byu.net>
8403
8404         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
8405         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
8406         slashes when checking if last component is missing.
8407         * tests/test-canonicalize.c (main): Test this.
8408
8409         canonicalize, canonicalize-lgpl: honor // if distinct from /
8410         * modules/canonicalize (Files): Add double-slash-root.m4.
8411         * modules/canonicalize-lgpl (Files): Likewise.
8412         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
8413         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
8414         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
8415         fallback definition.
8416         (canonicalize_filename_mode): Use it to protect //.
8417         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
8418         (__realpath): Likewise.
8419         * tests/test-canonicalize.c (main): Test this.
8420         * tests/test-canonicalize-lgpl.c (main): Likewise.
8421         * modules/canonicalize-tests (Depends-on): Add same-inode.
8422         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8423
8424         canonicalize-lgpl: fix glibc bug with trailing slash
8425         * m4/canonicalize-lgpl.m4: Move contents...
8426         * m4/canonicalize.m4: ...here.
8427         (gl_CANONICALIZE_LGPL): Factor realpath check...
8428         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
8429         glibc 2.3.5 bug, fixed 2005-04-27.
8430         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
8431         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
8432         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
8433         * modules/canonicalize-lgpl (Files): Manage file rename.
8434         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
8435         * modules/stdlib (Makefile.am): Substitute witness.
8436         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
8437         is needed.
8438         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
8439         replacement is required.
8440         * lib/canonicalize.c (canonicalize_file_name): Likewise.
8441         * doc/glibc-functions/canonicalize_file_name.texi
8442         (canonicalize_file_name): Document this.
8443         * doc/posix-functions/realpath.texi (realpath): Likewise.
8444
8445         canonicalize-lgpl: reject non-directory with trailing slash
8446         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
8447         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
8448         catches failures in glibc 2.3.5.
8449         * tests/test-canonicalize.c (main): Likewise.
8450
8451         canonicalize-lgpl: use native realpath if it works
8452         * lib/canonicalize-lgpl.c (realpath): Guard with
8453         FUNC_REALPATH_WORKS.
8454         * lib/stdlib.in.h (realpath): Make declaration optional based on
8455         HAVE_REALPATH.
8456         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
8457         native realpath works.
8458         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
8459         * modules/stdlib (Makefile.am): Substitute witness.
8460
8461         canonicalize, canonicalize-lgpl: use <stdlib.h>
8462         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
8463         (Include): Mention <stdlib.h>.
8464         (configure.ac): Mention functions we provide.
8465         * modules/canonicalize (configure.ac): Likewise.
8466         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
8467         realpath if canonicalize_file_name is missing.
8468         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
8469         * modules/stdlib (Makefile.am): Substitute witnesses.
8470         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
8471         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
8472         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
8473         * NEWS: Document this.
8474         * doc/glibc-functions/canonicalize_file_name.texi
8475         (canonicalize_file_name): Likewise.
8476         * doc/posix-functions/realpath.texi (realpath): Likewise.
8477         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
8478
8479         test-canonicalize: consolidate into single C program
8480         * tests/test-canonicalize.sh: Delete; move setup into...
8481         * tests/test-canonicalize.c (main): ...the program, making it
8482         easier to run in debugger.  Add some tests.
8483         * modules/canonicalize-tests (Files): Remove unused file.
8484         (Depends-on): Add progname.
8485         (configure.ac, Makefile.am): Simplify.
8486
8487         test-canonicalize-lgpl: consolidate into single C program
8488         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
8489         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
8490         easier to run in debugger.  Add some tests.
8491         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
8492         (configure.ac, Makefile.am): Simplify.
8493
8494         canonicalize: avoid resolvepath
8495         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
8496         unnecessary checks.
8497         * lib/canonicalize.c (includes): Simplify.
8498         (canonicalize_file_name): Drop resolvepath implementation.
8499         * modules/canonicalize (Depends-on): Drop filenamecat.
8500
8501         canonicalize: don't lose errno
8502         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
8503         over calls to free.
8504
8505         canonicalize: simplify errno handling
8506         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
8507         assignment.
8508
8509         canonicalize, canonicalize-lgpl: update module dependencies
8510         * modules/canonicalize (Depends-on): Add extensions, lstat,
8511         pathmax, stdlib.
8512         (Files): Drop pathmax.h.
8513         (configure.ac): Adjust macro name.
8514         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
8515         lstat, stdlib, sys_stat.
8516         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
8517         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
8518         extensions.
8519         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
8520         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
8521         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
8522         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
8523         declaration, if available.
8524         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
8525         we can rely on the readlink module.
8526         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
8527         (includes): Use <unistd.h> unconditionally.
8528
8529 2009-09-17  Eric Blake  <ebb9@byu.net>
8530
8531         maint: make Include sections of modules consistent
8532         * modules/alloca: Use only header name; no need to list #include.
8533         * modules/alloca-opt: Likewise.
8534         * modules/arpa_inet: Likewise.
8535         * modules/canon-host: Likewise.
8536         * modules/configmake: Likewise.
8537         * modules/dirent: Likewise.
8538         * modules/eealloc: Likewise.
8539         * modules/environ: Likewise.
8540         * modules/fchdir: Likewise.
8541         * modules/fcntl: Likewise.
8542         * modules/fcntl-h: Likewise.
8543         * modules/gethrxtime: Likewise.
8544         * modules/gettime: Likewise.
8545         * modules/ignore-value: Likewise.
8546         * modules/inet_ntop: Likewise.
8547         * modules/inet_pton: Likewise.
8548         * modules/inttypes: Likewise.
8549         * modules/isnand-nolibm: Likewise.
8550         * modules/isnanf-nolibm: Likewise.
8551         * modules/mbchar: Likewise.
8552         * modules/mbfile: Likewise.
8553         * modules/mbiter: Likewise.
8554         * modules/mbuiter: Likewise.
8555         * modules/netdb: Likewise.
8556         * modules/netinet_in: Likewise.
8557         * modules/nproc: Likewise.
8558         * modules/pagealign_alloc: Likewise.
8559         * modules/poll: Likewise.
8560         * modules/printf-frexp: Likewise.
8561         * modules/pthread: Likewise.
8562         * modules/putenv: Likewise.
8563         * modules/random_r: Likewise.
8564         * modules/relocatable-prog: Likewise.
8565         * modules/search: Likewise.
8566         * modules/select: Likewise.
8567         * modules/selinux-h: Likewise.
8568         * modules/settime: Likewise.
8569         * modules/signal: Likewise.
8570         * modules/size_max: Likewise.
8571         * modules/socklen: Likewise.
8572         * modules/ssize_t: Likewise.
8573         * modules/stdarg: Likewise.
8574         * modules/stdbool: Likewise.
8575         * modules/stddef: Likewise.
8576         * modules/stdint: Likewise.
8577         * modules/stdio: Likewise.
8578         * modules/stdlib: Likewise.
8579         * modules/string: Likewise.
8580         * modules/strings: Likewise.
8581         * modules/sys_file: Likewise.
8582         * modules/sys_ioctl: Likewise.
8583         * modules/sys_select: Likewise.
8584         * modules/sys_socket: Likewise.
8585         * modules/sys_stat: Likewise.
8586         * modules/sys_time: Likewise.
8587         * modules/sys_times: Likewise.
8588         * modules/sys_utsname: Likewise.
8589         * modules/sys_wait: Likewise.
8590         * modules/sysexits: Likewise.
8591         * modules/time: Likewise.
8592         * modules/times: Likewise.
8593         * modules/tmpfile: Likewise.
8594         * modules/trim: Likewise.
8595         * modules/unistd: Likewise.
8596         * modules/wchar: Likewise.
8597         * modules/wctype: Likewise.
8598
8599 2009-09-17  Bruno Haible  <bruno@clisp.org>
8600
8601         Make getdate.y compile on QNX and NetBSD 5 / i386.
8602         * m4/getdate.m4 (gl_GETDATE): Conditionally define
8603         TIME_T_FITS_IN_LONG_INT.
8604         * lib/getdate.y (long_time_t): New type.
8605         (relative_time): Change type of 'seconds' field to long_time_t.
8606         (get_date): Update types of local variables. Check against overflow
8607         during conversion from long_time_t to time_t.
8608         Reported by Matt Kraai <kraai@ftbfs.org>
8609         and Hasso Tepper <hasso@netbsd.org>.
8610
8611 2009-09-17  Bruno Haible  <bruno@clisp.org>
8612
8613         * modules/COPYING: Update copyright years.
8614         * modules/README: Likeiwse.
8615         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
8616         Reported by Ian Beckwith <ianb@erislabs.net>.
8617
8618 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
8619
8620         * users.txt: Update references for gnuit package.
8621
8622 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
8623
8624         * m4/getdelim.m4: Fix typo in copyright line.
8625
8626 2009-09-17  Bruno Haible  <bruno@clisp.org>
8627
8628         * lib/atoll.c: Use the standard header with GPL copyright.
8629         * lib/argz.in.h: Likewise.
8630         * lib/glob.c: Likewise.
8631         * lib/glob-libc.h: Likewise.
8632         * lib/random_r.c: Likewise.
8633         * lib/siglist.h: Likewise.
8634         * lib/strsignal.c: Likewise.
8635         Reported by Ian Beckwith <ianb@erislabs.net>.
8636
8637 2009-09-17  Eric Blake  <ebb9@byu.net>
8638
8639         rmdir: ensure correct dependency order
8640         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
8641
8642 2009-09-17  Bruno Haible  <bruno@clisp.org>
8643
8644         Disable assertion that fails on NetBSD 5 / i386.
8645         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
8646         Reported by Sam Steingold <sds@gnu.org>
8647         and Hasso Tepper <hasso@netbsd.org>.
8648
8649 2009-09-16  Eric Blake  <ebb9@byu.net>
8650
8651         unlinkdir: port to mingw
8652         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
8653         on which no one can unlink a directory.
8654
8655         stdlib: sort witness names
8656         * modules/stdlib (Makefile.am): Sort replacements.
8657         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
8658         * lib/stdlib.in.h: Likewise.
8659
8660         parse-duration-tests: avoid link failure
8661         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
8662         LIBINTL.
8663         Reported by Tom G. Christensen.
8664
8665         openat-tests: ensure unlinkat behaves like rmdir
8666         * tests/test-rmdir.c (main): Factor guts...
8667         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
8668         * modules/rmdir-tests (Files): Ship new file.
8669         * modules/openat-tests: New test.
8670         * tests/test-unlinkat.c: Likewise.
8671
8672         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
8673         * modules/rmdir-errno (Status, Notice): Now obsolete.
8674
8675         rmdir: work around cygwin 1.5.x and mingw bugs
8676         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
8677         * lib/rmdir.c (rmdir): Work around it.
8678         * modules/rmdir (Status, Notice): No longer obsolete.
8679         (Files): Add dos.m4.
8680         (Depends-on): Add unistd.
8681         (configure.ac): Set witnesses.
8682         (License): Relax to LGPLv2+.
8683         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
8684         * modules/unistd (Makefile.am): Substitute witnesses.
8685         * lib/unistd.in.h (rmdir): Declare replacement.
8686         * doc/posix-functions/rmdir.texi (rmdir): Document this.
8687         * modules/rmdir-tests: New tests.
8688         * tests/test-rmdir.c: Likewise.
8689
8690 2009-09-15  Eric Blake  <ebb9@byu.net>
8691
8692         fchdir: improve use of replacement functions
8693         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
8694         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
8695         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
8696         REPLACE_CLOSEDIR.
8697         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
8698         * modules/sys_stat (Makefile.am): Substitute correct witness.
8699         * modules/dirent (Makefile.am): Likewise.
8700         * modules/unistd (Makefile.am): Likewise.
8701         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
8702         * lib/unistd.in.h (dup): Likewise.
8703         * lib/sys_stat.in.h (fstat): Likewise.
8704
8705         maint: ignore gnulib-tool temp files
8706         * .gitignore: Ignore files created during gnulib-tool --test.
8707
8708 2009-09-13  Jim Meyering  <meyering@redhat.com>
8709
8710         posixtm: don't reject a time that specify "60" as the number of seconds
8711         * lib/posixtm.c (posixtime): The code to reject invalid dates
8712         would also reject a time specified with the .60 suffix.
8713         But POSIX allows that, in order to accommodate leap seconds.
8714         So don't reject it.
8715         (main): Adjust tests accordingly.
8716         * modules/posixtm (Depends-on): Add stpcpy.
8717
8718 2009-09-11  Jim Meyering  <meyering@redhat.com>
8719
8720         announce-gen: include [$release_type] in emitted Subject:
8721         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
8722         e.g., [stable] in the emitted Subject: line.
8723
8724 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8725
8726         Remove obsolete macros from several modules.
8727         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
8728         obsolete Autoconf macros with their modern counterparts.
8729         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
8730         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
8731         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
8732         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
8733         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
8734         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8735         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
8736         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
8737         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
8738         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
8739         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8740         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8741         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
8742         * m4/sockets.m4 (gl_SOCKETS): Likewise.
8743         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
8744         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
8745         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
8746         * m4/time_r.m4 (gl_TIME_R): Likewise.
8747         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
8748         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
8749         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
8750
8751         Fix copyright header in build-aux scripts.
8752         * build-aux/git-version-gen: Fix copyright header to match GPLv3
8753         recommendation.
8754         * build-aux/ncftpput-ftp: Likewise.
8755         * build-aux/update-copyright: Likewise.
8756
8757 2009-09-09  Eric Blake  <ebb9@byu.net>
8758
8759         test-link: allow Linux choice of errno
8760         * tests/test-link.c (main): Relax test for alternate error.
8761
8762         strndup: fix improper m4 caching
8763         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
8764         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
8765         (gl_PREREQ_STRNDUP): Delete.
8766         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
8767         * modules/string (Makefile.am): Substitute it.
8768         * lib/string.in.h (strndup): Modernize prototype.
8769
8770         getcwd: port to mingw
8771         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
8772         different from the POSIX assumptions made throughout the getcwd
8773         module; fortunately, the mingw getcwd does not need replacement.
8774         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
8775         * modules/getcwd-tests: New test.
8776         * tests/test-getcwd.c: Likewise.
8777
8778         link: fix platform bugs
8779         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
8780         * lib/link.c (link): Work around them.  Fix related mingw bug.
8781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
8782         * modules/unistd (Makefile.am): Substitute it.
8783         * lib/unistd.in.h (link): Declare replacement.
8784         * doc/posix-functions/link.texi (link): Document this.
8785         * modules/link (Depends-on): Add strdup-posix, sys_stat.
8786
8787         test-link: consolidate into single C program, test more cases
8788         * tests/test-link.sh: Delete.
8789         * tests/test-link.c: Test more error conditions.  Exposes bugs on
8790         at least Cygwin and Solaris.
8791         * modules/link-tests (Files): Remove unused file.
8792         (Depends-on): Add errno, sys_stat.
8793         (Makefile.am): Simplify.
8794
8795 2009-09-08  Bruno Haible  <bruno@clisp.org>
8796
8797         Work around towlower, towupper bug on mingw.
8798         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
8799         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
8800         * doc/posix-functions/towlower.texi: Mention the mingw bug.
8801         * doc/posix-functions/towupper.texi: Likewise.
8802         Reported by Eric Blake.
8803
8804 2009-09-08  Jim Meyering  <meyering@redhat.com>
8805
8806         build: don't try to run autoheader if we don't use it
8807         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
8808         is not used in configure.ac.
8809
8810 2009-09-08  Eric Blake  <ebb9@byu.net>
8811
8812         euidaccess: fix compilation error
8813         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
8814
8815         rawmemchr: relax license
8816         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
8817         okay.
8818         Reported by Jim Meyering.
8819
8820         mkfifoat: new module
8821         * modules/mkfifoat: New file.
8822         * lib/mkfifoat.c: Likewise.
8823         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
8824         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8825         * modules/sys_stat (Makefile.am): Use them.
8826         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
8827         * MODULES.html.sh (File system functions): Mention module.
8828         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
8829         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
8830         * modules/mkfifoat-tests: New test.
8831         * tests/test-mkfifoat.c: Likewise.
8832
8833         strchrnul: relax license
8834         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
8835         okay.
8836         Reported by Jim Meyering.
8837
8838 2009-09-08  Eric Blake  <ebb9@byu.net>
8839
8840         fstatat: fix compilation on Solaris
8841         * lib/fstatat.c (includes): Add fcntl.h.
8842         Reported by Pádraig Brady.
8843
8844 2009-09-07  Eric Blake  <ebb9@byu.net>
8845
8846         rename: modernize replacement
8847         * modules/rename (Depends-on): Add stdio.
8848         (configure.ac): Declare witness.
8849         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
8850         stdio take care of replacement.
8851         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
8852         * modules/stdio (Makefile.am): Substitute them.
8853         * lib/stdio.in.h (rename): Declare replacement.
8854         * lib/rename.c (includes): Allow cross-compilation to non-windows
8855         machines.
8856         * doc/posix-functions/rename.texi (rename): Improve
8857         documentation.
8858
8859         stdio: sort witness names
8860         * modules/stdio (Makefile.am): Sort replacements.
8861         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
8862         * lib/stdio.in.h: Likewise.
8863
8864         getcwd: minor cleanups
8865         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
8866         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
8867
8868         openat: provide more convenience names
8869         * modules/faccessat (configure.ac): Add C witness.
8870         * lib/unistd.in.h (readlinkat): Fix typo.
8871         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
8872         convenience wrappers.
8873         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
8874         wrappers in syntax checks.
8875
8876 2009-09-06  Eric Blake  <ebb9@byu.net>
8877
8878         doc: fix comments in recent patches
8879         * lib/faccessat.c: Mention correct function.
8880         * lib/fchmodat.c: Likewise.
8881         * lib/fchownat.c: Likewise.
8882         * lib/symlinkat.c: Likewise.
8883         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
8884         constants.
8885
8886         faccessat, symlinkat: continue cleanup of previous patch
8887         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
8888         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
8889         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
8890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
8891         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
8892         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
8893         set.
8894
8895 2009-09-06  Bruno Haible  <bruno@clisp.org>
8896
8897         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
8898         (fstatat): Declare if GNULIB_FSTATAT is set.
8899         (mkdirat): Declare if GNULIB_MKDIRAT is set.
8900         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
8901         (unlinkat): Declare if GNULIB_UNLINKAT is set.
8902         * modules/fcntl-h (Files): Remove m4/openat.m4.
8903         * modules/sys_stat (Files): Remove m4/openat.m4.
8904         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
8905         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
8906         * modules/unistd (Files): Remove m4/openat.m4.
8907         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
8908         GNULIB_OPENAT.
8909         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
8910         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
8911         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
8912         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
8913         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
8914         gl_OPENAT_DEFAULTS.
8915         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
8916         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
8917         Don't require gl_OPENAT_DEFAULTS.
8918         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
8919         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
8920         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
8921         (gl_OPENAT_DEFAULTS): Remove macro.
8922
8923 2009-09-06  Bruno Haible  <bruno@clisp.org>
8924
8925         * modules/openat (configure.ac): Remove unneeded witness.
8926
8927 2009-09-06  Bruno Haible  <bruno@clisp.org>
8928
8929         Set errno to ENOSYS when a function is entirely unsupported.
8930         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
8931         EOPNOTSUPP.
8932         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
8933         * modules/chown (Depends-on): Remove errno.
8934
8935 2009-09-06  Bruno Haible  <bruno@clisp.org>
8936
8937         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
8938
8939 2009-09-06  Bruno Haible  <bruno@clisp.org>
8940
8941         * lib/sys_stat.in.h: Fix preprocessor command indentation.
8942
8943 2009-09-06  Ben Pfaff  <blp@gnu.org>
8944             Bruno Haible  <bruno@clisp.org>
8945
8946         Work around a glibc bug in strtok_r.
8947         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
8948         Undefine if UNDEFINE_STRTOK_R is set.
8949         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
8950         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8951         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
8952         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
8953         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
8954         UNDEFINE_STRTOK_R.
8955         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
8956
8957 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
8958
8959         exclude: minor fix
8960         * lib/exclude.c: Include wctype.h
8961
8962 2009-09-06  Akim Demaille  <demaille@gostai.com>
8963
8964         bootstrap: improve error message
8965         * build-aux/bootstrap (find_tool): Upon failure, report the list
8966         of candidates.
8967         Honor the initial value of the envvar.
8968
8969 2009-09-05  Eric Blake  <ebb9@byu.net>
8970
8971         symlinkat: new module
8972         * modules/symlinkat: New file.
8973         * lib/symlinkat.c: Likewise.
8974         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
8975         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8976         * modules/unistd (Makefile.am): Use them.
8977         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
8978         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
8979         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
8980         * MODULES.html.sh (File system functions): Mention module.
8981         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
8982         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8983         * modules/symlinkat-tests: New test.
8984         * tests/test-symlinkat.c: Likewise.
8985
8986         test-openat-safer: add more checks
8987         * tests/test-openat-safer.c (main): Check more code paths.
8988
8989 2009-09-05  Jim Meyering  <meyering@redhat.com>
8990
8991         syntax-check: detect unnecessary inclusion of openat.h
8992         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
8993
8994 2009-09-05  Bruno Haible  <bruno@clisp.org>
8995
8996         Support towlower, towupper.
8997         * doc/posix-functions/towlower.texi: Mention module wctype.
8998         * doc/posix-functions/towupper.texi: Likewise.
8999         * lib/wctype.in.h (towlower, towupper): New functions.
9000         * tests/test-wctype.c: Include stdio.h, stdlib.h.
9001         (ASSERT): New macro.
9002         (e): New variable.
9003         (main): Test also towlower, towupper. Test WEOF argument.
9004         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9005
9006 2009-09-05  Bruno Haible  <bruno@clisp.org>
9007
9008         Fix conversion behaviour when the input is invalid.
9009         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
9010         mark occurring in first pass of indirect conversion.
9011         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
9012         input.
9013         Found by clang's static analyzer.
9014
9015 2009-09-05  Bruno Haible  <bruno@clisp.org>
9016
9017         * tests/test-striconveh.c (main): Test indirect conversion on platforms
9018         where direct conversion is possible.
9019
9020 2009-09-04  Eric Blake  <ebb9@byu.net>
9021
9022         openat: fail with ENOENT on empty name
9023         * lib/openat-proc.c (openat_proc_name): Special-case the empty
9024         buffer.
9025
9026         link-follow: fix logic bug in prior patch
9027         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
9028         reversed sense of yes and no in prior patch.  Avoid confusing
9029         compilation failure with desired semantics.
9030
9031         link-follow: accomodate mingw and cross-compilation
9032         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
9033         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
9034         cross-compilation results to -1, to make linkat easier to
9035         implement when cross-compiling.  Trivially support mingw.
9036         * modules/link-follow (configure.ac): Call new name.
9037         * NEWS: Mention this.
9038
9039 2009-09-03  Eric Blake  <ebb9@byu.net>
9040
9041         faccessat: compile replacement
9042         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
9043         needed.
9044
9045         fts: fix compilation error
9046         * lib/fts.c (includes): Re-add "openat.h", for
9047         openat_needs_fchdir.
9048
9049         faccessat: new module
9050         * modules/faccessat: New file.
9051         * lib/faccessat.c: Likewise.
9052         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9054         * modules/unistd (Makefile.am): Use it.
9055         * lib/unistd.in.h (faccessat): Declare it.
9056         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
9057         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
9058         * MODULES.html.sh (File system functions): Mention it.
9059         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
9060         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
9061
9062         euidaccess: prefer POSIX over non-standard implementation
9063         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
9064         * lib/euidaccess.c (euidaccess): Use it if available.
9065
9066         openat: make template easier to use
9067         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
9068         AT_FUNC_F2 to be undefined.
9069         (VALIDATE_FLAG): New macro; use it to reject bad flags.
9070         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
9071         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
9072         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
9073         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
9074         Likewise.
9075         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
9076         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
9077         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
9078         Likewise.
9079
9080         openat: declare in POSIX headers
9081         * NEWS: Mention this.
9082         * modules/openat (configure.ac): Declare witnesses.
9083         (Depends-on): Add fcntl-h, sys_stat, unistd.
9084         (Include): Mention correct headers.
9085         * modules/fcntl-h (Depends-on): Add link-warning.
9086         (Files): Add openat.m4.
9087         (Makefile.am): Substitute witnesses.
9088         * modules/sys_stat (Files, Makefile.am): Likewise.
9089         * modules/unistd (Files, Makefile.am): Likewise.
9090         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
9091         (gl_OPENAT_DEFAULTS): New macro.
9092         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
9093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
9094         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
9095         (SYS_STAT_H): Remove unused variable.
9096         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
9097         * lib/fcntl--.h (includes): Remove unneeded header.
9098         * lib/openat-safer.c (includes): Likewise.
9099         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
9100         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
9101         appropriate headers.
9102         (__OPENAT_PREFIX): Delete.
9103         * lib/fcntl.in.h (openat): Provide declaration.
9104         (AT_FDCWD): Fix Solaris bug.
9105         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
9106         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
9107         * lib/fchmodat.c (includes):  Adjust to find declaration.
9108         * lib/fchownat.c (includes): Likewise.
9109         * lib/mkdirat.c (includes): Likewise.
9110         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
9111         still visible.
9112
9113 2009-09-02  Eric Blake  <ebb9@byu.net>
9114
9115         errno: use consistently
9116         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
9117         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
9118         * lib/canonicalize.c (ELOOP): Likewise.
9119         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
9120         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
9121         * lib/lchown.c (EOPNOTSUPP): Likewise.
9122         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
9123         * lib/savewd.c (ESTALE): Likewise.
9124         * lib/settime.c (ENOSYS): Likewise.
9125         * lib/utimens.c (ENOSYS): Likewise.
9126         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
9127         * lib/chdir-safer.c (ELOOP): Likewise.
9128         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
9129         * modules/c-stack (Depends-on): Add errno.
9130         * modules/canonicalize (Depends-on): Likewise.
9131         * modules/chdir-safer (Depends-on): Likewise.
9132         * modules/fdopendir (Depends-on): Likewise.
9133         * modules/inet_ntop (Depends-on): Likewise.
9134         * modules/inet_pton (Depends-on): Likewise.
9135         * modules/lchown (Depends-on): Likewise.
9136         * modules/openat (Depends-on): Likewise.
9137         * modules/savewd (Depends-on): Likewise.
9138         * modules/settime (Depends-on): Likewise.
9139         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
9140
9141         fts: avoid leaking fds
9142         * modules/fts (Depends-on): Add cloexec.
9143         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
9144         flag.
9145
9146         fts: make directory fds more robust
9147         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
9148         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
9149
9150         backupfile, chdir-long, fts, savedir: make safer
9151         * lib/backupfile.c (includes): Use "dirent--.h", since
9152         numbered_backup can write to stderr during readdir.
9153         * lib/savedir.c (includes): Likewise.
9154         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
9155         emulation can write to stderr on failure.
9156         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
9157         * lib/getcwd.c: Document why opendir_safer is unused.
9158         * lib/glob.c: Likewise.
9159         * lib/scandir.c: Likewise.
9160         * lib/openat-proc.c: Likewise, for open_safer.
9161         * modules/backupfile (Depends-on): Add dirent-safer.
9162         * modules/savedir (Depends-on): Likewise.
9163         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
9164         * modules/chdir-long (Depends-on): Add openat-safer.
9165
9166         openat-safer: new module
9167         * modules/openat-safer: New file.
9168         * lib/openat-safer.c: Likewise.
9169         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
9170         * lib/fcntl-safer.h (openat_safer): Declare.
9171         * lib/fcntl--.h (openat): Override.
9172         * MODULES.html.sh (File descriptor based I/O): Mention it.
9173         * lib/openat.h: Add double-inclusion guards.
9174         * lib/openat.c (includes): Only include "fcntl-safer.h", not
9175         "fcntl--.h", so we can implement openat.
9176         * modules/openat-safer-tests: New test.
9177         * tests/test-openat-safer.c: New file.
9178
9179         dirent-safer: new module
9180         * modules/dirent-safer: New file.
9181         * lib/dirent--.h: Likewise.
9182         * lib/dirent-safer.h: Likewise.
9183         * lib/opendir-safer.c: Likewise.
9184         * m4/dirent-safer.m4: Likewise.
9185         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
9186         * modules/dirent-safer-tests: New test.
9187         * tests/test-dirent-safer.c: New file.
9188         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
9189
9190         fdopendir: optimize on mingw
9191         * lib/unistd.in.h (_gl_directory_name): New prototype.
9192         * lib/fchdir.c (_gl_directory_name): Implement it.
9193         (fchdir): Use it to simplify implementation.
9194         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
9195         fchdir, when available, to avoid calling [f]chdir().
9196
9197         fdopendir: split into its own module
9198         * lib/openat.c (fdopendir): Move...
9199         * lib/fdopendir.c: ...into new file.
9200         * modules/fdopendir: New module.
9201         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
9202         * modules/openat (Depends-on): Add fdopendir.
9203         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
9204         fdopendir here.
9205         * modules/savedir (Depends-on): Only need fdopendir, not full
9206         openat.
9207         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
9208         * lib/openat.h (fdopendir): Drop prototype.
9209         * lib/dirent.in.h (fdopendir): Provide prototype.
9210         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
9211         * modules/dirent (Makefile.am): Substitute them.
9212         * MODULES.html.sh (File system functions): Mention it.
9213         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
9214         * modules/fdopendir-tests: New file.
9215         * tests/test-fdopendir.c: Likewise.
9216
9217         fchdir: use more consistent macro convention
9218         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
9219         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
9220         REPLACE_FCHDIR, rather than relying on config.h macros.
9221         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
9222         inside a single make-time REPLACE_FCHDIR block, rather than using
9223         the config.h FCHDIR_REPLACEMENT.
9224         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
9225         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
9226         Manage fstat replacement.
9227         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
9228         REPLACE_FCHDIR.
9229         * modules/sys_stat (Files): Add m4/unistd_h.m4.
9230         (Makefile.am): Substitute REPLACE_FCHDIR.
9231         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
9232         FCHDIR_REPLACEMENT.
9233         * lib/dup-safer.c (dup_safer): Likewise.
9234         * lib/dup2.c (rpl_dup2): Likewise.
9235         * lib/dup3.c (rpl_dup3): Likewise.
9236         * lib/open.c (rpl_open): Likewise.
9237
9238         fchdir: simplify error handling, and support dup3
9239         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
9240         stdbool, malloc-posix, realloc-posix.
9241         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
9242         (ensure_dirs_slot): Return false on allocation failure.
9243         (rpl_dup2): Delete.
9244         (_gl_register_dup): New function.
9245         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
9246         (_gl_register_fd): Close fd on allocation failure.
9247         * lib/fcntl.in.h (_gl_register_fd): Update signature.
9248         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
9249         prototype.
9250         (rpl_dup2_fchdir): Delete prototype.
9251         * lib/open.c (open): Update caller.
9252         * lib/dup2.c (dup2): Track fchdir metadata.
9253         * lib/dup3.c (dup3): Likewise.
9254         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
9255         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
9256
9257 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9258
9259         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
9260         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
9261         don't pass arguments to AC_OUTPUT.
9262
9263 2009-09-02  Bruno Haible  <bruno@clisp.org>
9264
9265         * modules/mkdtemp (License): Relicense under LGPLv2+.
9266         Reported by Paolo Bonzini.
9267
9268 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9269
9270         Replace uses of obsolete autoconf macros in Jim's modules.
9271         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
9272         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
9273         can evoke a warning from autoconf when run with -Wobsolete
9274         enabled.  They were declared obsolete for good reasons (see
9275         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
9276         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
9277         should not continue using the deprecated macros.
9278         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
9279         obsolete Autoconf macros with modern counterparts.
9280         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9281         * m4/dos.m4 (gl_AC_DOS): Likewise.
9282         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
9283         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9284         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
9285         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
9286         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
9287         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
9288         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
9289         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
9290         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
9291         Likewise.
9292         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
9293         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
9294         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
9295         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
9296         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
9297         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
9298
9299 2009-09-01  Eric Blake  <ebb9@byu.net>
9300
9301         fchdir: fix off-by-one bug in previous patch
9302         * lib/fchdir.c (rpl_fstat): Use correct bounds.
9303         (_gl_unregister_fd): Delete useless if.
9304
9305 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
9306
9307         maint.mk: sort the list of syntax-check rules
9308         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
9309         easier to get a sense of progress when the rules are run sequentially
9310         and take a long time.
9311
9312 2009-09-01  Simon Josefsson  <simon@josefsson.org>
9313
9314         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
9315         * modules/netinet_in: Likewise.
9316         * modules/sys_file: Likewise.
9317         * modules/sys_ioctl: Likewise.
9318         * modules/sys_select: Likewise.
9319         * modules/sys_socket: Likewise.
9320         * modules/sys_stat: Likewise.
9321         * modules/sys_time: Likewise.
9322         * modules/sys_times: Likewise.
9323         * modules/sys_utsname: Likewise.
9324         * modules/sys_wait: Likewise.
9325
9326 2009-09-01  Jim Meyering  <meyering@redhat.com>
9327
9328         fts: help ensure that return values are not ignored
9329         * lib/fts_.h (__GNUC_PREREQ): Define.
9330         (__attribute_warn_unused_result__): Define.
9331         (fts_children, fts_close, fts_open, fts_read): Declare with
9332         __attribute_warn_unused_result__.
9333
9334         fts: fts_close now fails also when closing a dir file descriptor fails
9335         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
9336         and propagate to caller, along with errno.
9337
9338         announce-gen: correct formatting in --help output
9339         * build-aux/announce-gen (usage): Move the one-line description in
9340         --help output "up", to where it belongs, just after Usage:.
9341
9342 2009-08-31  Eric Blake  <ebb9@byu.net>
9343
9344         fchdir: port to mingw
9345         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
9346         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
9347         opened, then use a substitute.
9348         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
9349         replacement.
9350         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
9351         (_gl_register_fd): No need to check stat if open already filters
9352         all directories.
9353         (fchdir): Fix error condition to match POSIX.
9354         * modules/fchdir (Depends-on): Add sys_stat.
9355         * doc/posix-functions/open.texi (open): Document the limitation.
9356         * modules/fchdir-tests: New file.
9357         * tests/test-fchdir.c: Likewise.
9358
9359         canonicalize: allow cross-testing from cygwin to mingw
9360         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
9361         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
9362         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
9363         Likewise.
9364         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
9365         target does not support symlinks.
9366         * tests/test-canonicalize-lgpl.sh: Likewise.
9367
9368         chown: avoid compilation warning on mingw
9369         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
9370         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
9371         mingw.
9372         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9373         * modules/chown (Depends-on): Add errno.
9374
9375 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9376
9377         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
9378         command.
9379
9380 2009-08-31  Jim Meyering  <meyering@redhat.com>
9381
9382         canonicalize: remove useless initialization
9383         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
9384         initialization of local, "end".
9385
9386 2009-08-30  Bruno Haible  <bruno@clisp.org>
9387
9388         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
9389         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
9390         ENOSYS.
9391
9392 2009-08-30  Bruno Haible  <bruno@clisp.org>
9393
9394         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
9395         /usr/xpg4/bin/tr when it exists.
9396         * tests/test-pipe-filter-gi1.sh: Likewise.
9397
9398 2009-08-30  Bruno Haible  <bruno@clisp.org>
9399
9400         Work around deficient /usr/bin/id program on Solaris.
9401         * tests/test-file-has-acl.sh (ID): New variable.
9402         * tests/test-set-mode-acl.sh (ID): Likewise.
9403         * tests/test-copy-acl.sh (ID): Likewise.
9404         * tests/test-copy-file.sh (ID): Likewise.
9405
9406 2009-08-30  Bruno Haible  <bruno@clisp.org>
9407
9408         New module 'xstriconveh'.
9409         * lib/xstriconveh.h: New file.
9410         * lib/xstriconveh.c: New file.
9411         * modules/xstriconveh: New file.
9412
9413 2009-08-30  Bruno Haible  <bruno@clisp.org>
9414
9415         Make it easier to use mem_cd_iconveh.
9416         * lib/striconveh.h (iconveh_t): New type.
9417         (iconveh_open, iconveh_close): New declarations.
9418         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
9419         with a single 'const iconveh_t *' argument.
9420         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
9421         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
9422         with a single 'const iconveh_t *' argument.
9423         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
9424         * tests/test-striconveh.c (main): Update.
9425         * NEWS: Mention the change.
9426
9427 2009-08-30  Bruno Haible  <bruno@clisp.org>
9428
9429         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
9430         problem.
9431
9432 2009-08-30  Bruno Haible  <bruno@clisp.org>
9433
9434         Work around iconv_open problem on Solaris.
9435         * lib/iconv_open-solaris.gperf: New file.
9436         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
9437         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
9438         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
9439         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
9440         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
9441         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
9442
9443 2009-08-29  Jim Meyering  <meyering@redhat.com>
9444
9445         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
9446         * top/maint.mk (cvs-check): Remove target; it was just an alias
9447         to the better-named vc-diff-check.
9448         (maintainer-distcheck): Remove rule.  It was used only from
9449         the (alpha/beta/major) target, and all of its commands but one
9450         were coreutils-specific.
9451         (vc-dist): Remove rule.
9452         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
9453         Run vc-diff-check, not vc-dist.
9454         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
9455
9456 2009-08-27  Bruno Haible  <bruno@clisp.org>
9457
9458         * tests/test-bitrotate.c (main): Remove test that uses a shift count
9459         of 0.
9460
9461 2009-08-27  Bruno Haible  <bruno@clisp.org>
9462
9463         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
9464         compilers.
9465         * doc/func.texi: Document the SunPRO C bug.
9466
9467 2009-08-27  Bruno Haible  <bruno@clisp.org>
9468
9469         Fix link error on Solaris.
9470         * tests/test-parse-duration.c (xstrdup): Remove function.
9471
9472 2009-08-26  Pádraig Brady  <P@draigbrady.com>
9473
9474         ignore-value: handle pointer types, too
9475         * lib/ignore-value.h (__attribute__): Remove definition.
9476         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
9477         of a more concise and more-often effective "(void) i" statement.
9478         (ignore_ptr): New function to suppress warnings from functions that
9479         return pointers, and to make it explicit that one function doesn't
9480         handle all cases.
9481
9482 2009-08-25  Bruno Haible  <bruno@clisp.org>
9483
9484         dup2: work around a Linux bug.
9485         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
9486         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
9487         * doc/posix-functions/dup2.texi: Mention the Linux bug.
9488         Reported by Simon Josefsson.
9489
9490 2009-08-25  Jim Meyering  <meyering@redhat.com>
9491
9492         libguestfs uses gnulib
9493         * users.txt: Add libguestfs.
9494
9495 2009-08-24  Eric Blake  <ebb9@byu.net>
9496
9497         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
9498         * lib/pipe2.c (includes): Add binary-io.h.
9499         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
9500
9501 2009-08-24  Bruno Haible  <bruno@clisp.org>
9502
9503         Tolerate declared but missing accept4 syscall.
9504         * lib/accept4.c (accept4): Invoke original accept4 function first, if
9505         available.
9506         * lib/sys_socket.in.h (accept4): If the function is already present,
9507         override it.
9508         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
9509         * modules/accept4 (Makefile.am): Compile accept4.c always.
9510         Reported by Paolo Bonzini and Eric Blake.
9511
9512 2009-08-23  Bruno Haible  <bruno@clisp.org>
9513
9514         New module 'accept4'.
9515         * lib/sys_socket.in.h (accept4): New declaration.
9516         * lib/accept4.c: New file.
9517         * m4/accept4.m4: New file.
9518         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
9519         GNULIB_ACCEPT4, HAVE_ACCEPT4.
9520         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
9521         HAVE_ACCEPT4.
9522         * modules/accept4: New file.
9523         * doc/glibc-functions/accept4.texi: Mention the new module.
9524
9525 2009-08-24  Jim Meyering  <meyering@redhat.com>
9526
9527         progname: also set global program_invocation_name, when possible
9528         Before this change, a libtool-enabled program that calls glibc's
9529         error function would report the program name as
9530         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
9531         * modules/progname (configure.ac): Check for a declaration of
9532         program_invocation_name.
9533         * lib/progname.c:  Include <errno.h>.
9534         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
9535         Set program_invocation_name.
9536
9537 2009-08-23  Bruno Haible  <bruno@clisp.org>
9538
9539         * lib/dup3.c: Include <string.h>.
9540
9541 2009-08-23  Bruno Haible  <bruno@clisp.org>
9542
9543         * lib/dup3.c (dup3): Test only once whether the system actually exists.
9544         * lib/pipe2.c (pipe2): Likewise.
9545         Suggested by Eric Blake.
9546
9547 2009-08-23  Bruno Haible  <bruno@clisp.org>
9548
9549         Tolerate declared but missing dup3 syscall.
9550         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
9551         * lib/unistd.in.h (dup3): If the function is already present,
9552         override it.
9553         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
9554         * modules/dup3 (Makefile.am): Compile dup3.c always.
9555         Reported by Paolo Bonzini.
9556
9557 2009-08-23  Bruno Haible  <bruno@clisp.org>
9558
9559         Tolerate declared but missing pipe2 syscall.
9560         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
9561         available.
9562         * lib/unistd.in.h (pipe2): If the function is already present,
9563         override it.
9564         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
9565         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
9566         Reported by Paolo Bonzini.
9567
9568 2009-08-23  Bruno Haible  <bruno@clisp.org>
9569
9570         * lib/pipe2.c (pipe2): Move #ifs inside function.
9571
9572 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
9573
9574         quotearg: document limitations of quote_these_too
9575         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
9576         those limitations are created.
9577         * lib/quotearg.h (set_char_quoting): Document that digits and
9578         letters that are special after backslash are not permitted.
9579         (quotearg_char): Cross-reference set_char_quoting documentation.
9580
9581 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
9582
9583         quotearg: implement custom_quoting_style
9584         * lib/quotearg.c: (struct quoting_options): Add left_quote and
9585         right_quote fields.
9586         (set_custom_quoting): New public function.
9587         (quotearg_buffer_restyled): Add left_quote and right_quote
9588         arguments, handle them very much like locale quoting, and update
9589         all uses.
9590         (quotearg_n_custom): New public function.
9591         (quotearg_n_custom_mem): New public function.
9592         (quotearg_custom): New public function.
9593         (quotearg_custom_mem): New public function.
9594         * lib/quotearg.h: Prototype and document new public functions.
9595         (enum quoting_style): For escape_quoting_style and
9596         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
9597         ignored even though they're otherwise like c_quoting_style.
9598         Add custom_quoting_style member and document with comparison to
9599         clocale_quoting_style.
9600         * tests/test-quotearg.c (custom_quotes): New array.
9601         (custom_results): New array.
9602         (main): Extend to test custom quoting.
9603
9604 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
9605
9606         quotearg: fix right quote escaping when it's in quote_these_too
9607         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
9608         quote, be sure to prepend only one backslash.
9609         * tests/test-quotearg.c (use_quote_double_quotes): New function.
9610         (main): Test it.
9611
9612 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
9613
9614         quotearg-tests: test escaping of embedded locale quotes
9615         * tests/test-quotearg.c (struct result_strings): Add member for
9616         new input.
9617         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
9618         (inputs): Add new input.
9619         (results_g): Add expected results.
9620         (flag_results): Likewise.
9621         (locale_results): Likewise.
9622         (compare_strings): Check those.
9623
9624 2009-08-23  Bruno Haible  <bruno@clisp.org>
9625
9626         Tests for module 'dup3'.
9627         * modules/dup3-tests: New file.
9628         * tests/test-dup3.c: New file.
9629
9630         New module 'dup3'.
9631         * lib/unistd.in.h (dup3): New declaration.
9632         * lib/dup3.c: New file.
9633         * m4/dup3.m4: New file.
9634         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
9635         HAVE_DUP3.
9636         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
9637         * modules/dup3: New file.
9638         * doc/glibc-functions/dup3.texi: Mention the new module.
9639
9640 2009-08-23  Bruno Haible  <bruno@clisp.org>
9641
9642         Tweak the dup2 test.
9643         * tests/test-dup2.c (main): Create the test file empty. Verify that an
9644         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
9645         the test file is still empty. Fix argument order of lseek.
9646
9647 2009-08-23  Bruno Haible  <bruno@clisp.org>
9648
9649         Avoid test link errors when the modules getopt-gnu, gettext are used.
9650         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
9651         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9652
9653 2009-08-23  Bruno Haible  <bruno@clisp.org>
9654
9655         Fix getdtablesize() on mingw.
9656         * lib/getdtablesize.c (getdtablesize): Implement differently.
9657         * lib/unistd.in.h (getdtablesize): Improve comment.
9658
9659 2009-08-23  Bruno Haible  <bruno@clisp.org>
9660
9661         New module 'mkostemp'.
9662         Based on Ulrich Drepper's 2007-08-10 change in glibc.
9663         * lib/stdlib.in.h (mksotemp): New declaration.
9664         * lib/mkostemp.c: New file, from glibc with modifications.
9665         * lib/tempname.h (GT_FILE): Remove outdated comment.
9666         (gen_tempname): Add flags argument.
9667         * lib/tempname.c (__GT_BIGFILE): Remove macro.
9668         (__GT_FILE): Map to 1.
9669         (small_open, large_open): Remove macros.
9670         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
9671         * lib/mkstemp.c (mkstemp): Update.
9672         * lib/mkdtemp.c (mkdtemp): Likewise.
9673         * m4/mkostemp.m4: New file.
9674         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
9675         HAVE_MKOSTEMP.
9676         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
9677         HAVE_MKOSTEMP.
9678         * modules/mkostemp: New file, based on modules/mkstemp.
9679         * doc/glibc-functions/mkostemp.texi: Mention the new module.
9680         * NEWS: Mention the change.
9681
9682 2009-08-23  Bruno Haible  <bruno@clisp.org>
9683
9684         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
9685         Reported by Eric Blake.
9686
9687 2009-08-23  Bruno Haible  <bruno@clisp.org>
9688
9689         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
9690         Reported by Eric Blake.
9691
9692 2009-08-23  Bruno Haible  <bruno@clisp.org>
9693
9694         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
9695         * modules/pipe2 (Depends-on): Likewise.
9696
9697 2009-08-23  Eric Blake  <ebb9@byu.net>
9698
9699         fcntl-h: add O_TTY_INIT support
9700         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
9701         * tests/test-fcntl-h.c (o): Test it.
9702         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
9703
9704         fcntl-h: rename from fcntl, in preparation for fcntl(2)
9705         * modules/fcntl: Move <fcntl.h> header replacement...
9706         * modules/fcntl-h: ...to new name, so as not to collide with
9707         like-named function.
9708         * tests/test-fcntl.c: Rename...
9709         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
9710         * modules/fcntl-tests: Rename...
9711         * modules/fcntl-h-tests: ...to this.  Update test file name.
9712         * modules/chdir-long (Depends-on): Update clients.
9713         * modules/chdir-safer (Depends-on): Likewise.
9714         * modules/fcntl-safer (Depends-on): Likewise.
9715         * modules/fts (Depends-on): Likewise.
9716         * modules/mkancesdirs (Depends-on): Likewise.
9717         * modules/mkdir-p (Depends-on): Likewise.
9718         * modules/open (Depends-on): Likewise.
9719         * modules/savewd (Depends-on): Likewise.
9720         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
9721         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
9722
9723 2009-08-22  Bruno Haible  <bruno@clisp.org>
9724
9725         * modules/binary-io (License): Relicense under LGPL.
9726         * modules/pipe2 (License): Likewise.
9727
9728 2009-08-22  Bruno Haible  <bruno@clisp.org>
9729
9730         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
9731         return value.
9732         * lib/pipe-filter-gi.c (filter_init): Likewise.
9733         Reported by Eric Blake.
9734
9735 2009-08-22  Bruno Haible  <bruno@clisp.org>
9736
9737         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
9738         * modules/pipe (Depends-on): Add pipe2.
9739
9740 2009-08-22  Bruno Haible  <bruno@clisp.org>
9741
9742         Tests for module 'pipe2'.
9743         * modules/pipe2-tests: New file.
9744         * tests/test-pipe2.c: New file.
9745
9746         New module 'pipe2'.
9747         * lib/unistd.in.h (pipe2): New declaration.
9748         * lib/pipe2.c: New file.
9749         * m4/pipe2.m4: New file.
9750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
9751         HAVE_PIPE2.
9752         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
9753         * modules/pipe2: New file.
9754         * doc/glibc-functions/pipe2.texi: Mention the new module.
9755
9756 2009-08-22  Bruno Haible  <bruno@clisp.org>
9757
9758         Reference some new glibc functions.
9759         * doc/glibc-functions/accept4.texi: New file.
9760         * doc/glibc-functions/dup3.texi: New file.
9761         * doc/glibc-functions/mkostemp.texi: New file.
9762         * doc/glibc-functions/pipe2.texi: New file.
9763         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
9764         (Glibc sys/socket.h): Refer to accept4.
9765         (Glibc unistd.h): Refer to dup3, pipe2.
9766         Reported by Eric Blake.
9767
9768 2009-08-22  Jim Meyering  <meyering@redhat.com>
9769             Bruno Haible  <bruno@clisp.org>
9770
9771         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
9772         This makes it so packages using automake-1.11's silent-rules option
9773         can print e.g., a single "GEN    configmake.h" line, rather than
9774         the 30+ statements that perform the job.  If you want to see the
9775         actual commands, you can still run "make V=1".
9776         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
9777         so that make output is abbreviated when those variables are defined
9778         appropriately.
9779         * modules/argz: Likewise.
9780         * modules/arpa_inet: Likewise.
9781         * modules/byteswap: Likewise.
9782         * modules/configmake: Likewise.
9783         * modules/dirent: Likewise.
9784         * modules/errno: Likewise.
9785         * modules/fcntl: Likewise.
9786         * modules/float: Likewise.
9787         * modules/fnmatch: Likewise.
9788         * modules/getopt-posix: Likewise.
9789         * modules/glob: Likewise.
9790         * modules/iconv_open: Likewise.
9791         * modules/inttypes: Likewise.
9792         * modules/localcharset: Likewise.
9793         * modules/locale: Likewise.
9794         * modules/math: Likewise.
9795         * modules/netdb: Likewise.
9796         * modules/netinet_in: Likewise.
9797         * modules/poll: Likewise.
9798         * modules/posix_spawnp-tests: Likewise.
9799         * modules/sched: Likewise.
9800         * modules/search: Likewise.
9801         * modules/selinux-h: Likewise.
9802         * modules/signal: Likewise.
9803         * modules/spawn: Likewise.
9804         * modules/stdarg: Likewise.
9805         * modules/stdbool: Likewise.
9806         * modules/stddef: Likewise.
9807         * modules/stdint: Likewise.
9808         * modules/stdio: Likewise.
9809         * modules/stdlib: Likewise.
9810         * modules/string: Likewise.
9811         * modules/strings: Likewise.
9812         * modules/sys_file: Likewise.
9813         * modules/sys_ioctl: Likewise.
9814         * modules/sys_select: Likewise.
9815         * modules/sys_socket: Likewise.
9816         * modules/sys_stat: Likewise.
9817         * modules/sys_time: Likewise.
9818         * modules/sys_times: Likewise.
9819         * modules/sys_utsname: Likewise.
9820         * modules/sys_wait: Likewise.
9821         * modules/sysexits: Likewise.
9822         * modules/time: Likewise.
9823         * modules/unistd: Likewise.
9824         * modules/wchar: Likewise.
9825         * modules/wctype: Likewise.
9826
9827 2009-08-22  Jim Meyering  <meyering@redhat.com>
9828
9829         announce-gen: detect write failure
9830         * build-aux/announce-gen: Add Coda at end.
9831         Remove equivalent-but-more-verbose block at top.
9832
9833 2009-08-19  Akim Demaille  <demaille@gostai.com>
9834
9835         bootstrap: --help to stdout.
9836         * bootstrap (usage): Don't send --help to stderr.
9837         Use a here doc instead of a long string.
9838
9839 2009-08-21  Eric Blake  <ebb9@byu.net>
9840
9841         test-popen-safer: split from test-popen
9842         * tests/test-popen.c (main): Move...
9843         * tests/test-popen.h: ...into new file.
9844         * tests/test-popen-safer2.c: New file.
9845         * modules/popen-tests (Files): Add test-popen.h.
9846         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
9847         Suggested by Bruno Haible.
9848
9849         test-fcntl-safer: split from test-open
9850         * tests/test-open.c (main): Move...
9851         * tests/test-open.h: ...into new file.
9852         * tests/test-fcntl-safer.c: New file.
9853         * modules/open-tests (Files): Add test-open.h.
9854         * modules/fcntl-safer-tests: New file.
9855         Suggested by Bruno Haible.
9856
9857         test-fopen-safer: split from test-fopen
9858         * tests/test-fopen.c (main): Move...
9859         * tests/test-fopen.h: ...into new file.
9860         * tests/test-fopen-safer.c: New file.
9861         * modules/fopen-tests (Files): Add test-fopen.h.
9862         * modules/fopen-safer-tests: New file.
9863         Suggested by Bruno Haible.
9864
9865 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
9866
9867         popen-safer: test O_CLOEXEC at run-time.
9868         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
9869
9870 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
9871
9872         fcntl: move more flags to the header
9873         * lib/cloexec.c: Do not define FD_CLOEXEC here.
9874         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
9875         * lib/fcntl.in.h: Do both things here.
9876
9877 2009-08-21  Jim Meyering  <meyering@redhat.com>
9878
9879         consistently remove $@-t before redirecting to it
9880         * modules/argz: Remove $@-t and $@ before redirecting to the former.
9881         * modules/alloca-opt: Likewise.
9882         * modules/byteswap: Likewise.
9883         * modules/fnmatch: Likewise.
9884         * modules/getopt-posix: Likewise.
9885         * modules/glob: Likewise.
9886         * modules/poll: Likewise.
9887         * modules/posix_spawnp-tests: Likewise.
9888         * modules/sys_socket: Likewise.
9889         * modules/sysexits: Likewise.
9890
9891 2009-08-21  Eric Blake  <ebb9@byu.net>
9892
9893         popen: simplify access to original popen
9894         * lib/popen.c (rpl_popen): No need to worry about popen being a
9895         macro.
9896         Reported by Bruno Haible.
9897
9898 2009-08-20  Eric Blake  <ebb9@byu.net>
9899
9900         build: avoid some compiler warnings
9901         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
9902         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
9903         type.
9904         (new_exclude_segment, excluded_file_pattern_p)
9905         (excluded_file_name_p): Reduce scope.
9906         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
9907         old-style declaration.
9908
9909 2009-08-20  Simon Josefsson  <simon@josefsson.org>
9910
9911         * tests/test-exclude1.sh: Handle Windows EOL.
9912         * tests/test-exclude2.sh: Likewise.
9913         * tests/test-exclude3.sh: Likewise.
9914         * tests/test-exclude4.sh: Likewise.
9915         * tests/test-exclude5.sh: Likewise.
9916         * tests/test-exclude6.sh: Likewise.
9917         * tests/test-exclude7.sh: Likewise.
9918
9919 2009-08-19  Akim Demaille  <demaille@gostai.com>
9920
9921         bootstrap: find sha1sum when named gsha1sum.
9922         * bootstrap (find_tool): New.
9923         ($SHA1SUM): New.
9924         Use it.
9925
9926 2009-08-20  Jim Meyering  <meyering@redhat.com>
9927
9928         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
9929         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
9930         expression that converts "." in a file name to "\." in the resulting
9931         regexp.  Start with a dummy statement, so that prior shell variable
9932         definitions are expanded portably.  Reported by Simon Josefsson.
9933
9934 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
9935
9936         Fix polling for writeability of a screen buffer.
9937         * lib/poll.c: Distinguish input and screen buffers for the
9938         Win32 implementation.
9939         * lib/select.c: Likewise.
9940
9941 2009-08-19  Eric Blake  <ebb9@byu.net>
9942
9943         popen-safer: prevent popen from clobbering std descriptors
9944         * modules/popen-safer: New file.
9945         * lib/popen-safer.c: Likewise.
9946         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
9947         * lib/stdio--.h (popen): Provide override.
9948         * lib/stdio-safer.h (popen_safer): Provide declaration.
9949         * tests/test-popen.c (includes): Partially test this.
9950         * modules/popen-safer-tests: New file, for more tests.
9951         * tests/test-popen-safer.c: Likewise.
9952         * MODULES.html.sh (file stream based Input/Output): Mention it.
9953
9954         tests: test some of the *-safer modules
9955         * modules/fopen-safer (Depends-on): Add fopen.
9956         * modules/fcntl-safer (Depends-on): Add fcntl.
9957         * modules/stdlib-safer (Depends-on): Add stdlib.
9958         (configure.ac): Set indicator.
9959         * modules/unistd-safer (configure.ac): Likewise.
9960         * modules/tmpfile-safer (configure.ac): Likewise.
9961         (Depends-on): Add tmpfile.
9962         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
9963         active.
9964         * tests/test-fopen.c (includes): Test safer versions when they are
9965         in use.
9966         * tests/test-open.c (includes): Likewise.
9967
9968         popen: fix cygwin 1.5 bug when stdin closed
9969         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
9970         * modules/popen: New file.
9971         * modules/popen-tests: Likewise.
9972         * tests/test-popen.c: Likewise.
9973         * m4/popen.m4: Likewise.
9974         * lib/popen.c: Likewise.
9975         * lib/stdio.in.h (popen): New declaration.
9976         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
9977         * modules/stdio (Makefile.am): Likewise.
9978         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
9979
9980 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
9981
9982         maint.mk: give full control over update-copyright exclusions
9983         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
9984         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
9985         (update-copyright): Don't force inclusion of top-level
9986         ChangeLog.  Don't force exclusion of all COPYING files, but make
9987         them the default exclusion instead.
9988
9989 2009-08-16  Bruno Haible  <bruno@clisp.org>
9990
9991         Fix test failures on Solaris 10.
9992         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
9993         tests when Solaris iconv() is used.
9994         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
9995         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
9996         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
9997         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
9998         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
9999
10000 2009-08-16  Bruno Haible  <bruno@clisp.org>
10001
10002         Fix test failures on Solaris 10.
10003         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
10004         'tr' program and pass it as first argument.
10005         * tests/test-pipe-filter-gi1.sh: Likewise.
10006         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
10007         program as first argument.
10008         * tests/test-pipe-filter-gi1.c (main): Likewise.
10009
10010 2009-08-16  Eric Blake  <ebb9@byu.net>
10011
10012         fpurge: fix previous commits
10013         * modules/fpurge (Makefile.am): Make replacement conditional,
10014         partially reverting 2007-04-29 change; missed in previous
10015         attempt.
10016         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
10017         is missing.
10018
10019 2009-08-16  Bruno Haible  <bruno@clisp.org>
10020
10021         Clarify fpurge's effect on the file position.
10022         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
10023         * tests/test-fpurge.c (main): Make a second pass for checking the file
10024         position.
10025
10026 2009-08-16  Bruno Haible  <bruno@clisp.org>
10027
10028         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
10029         declaration of fpurge is missing.
10030         * tests/test-fpurge.c (main): Check that the file has not more contents
10031         than expected. Close the file before removing it.
10032
10033 2009-08-15  Eric Blake  <ebb9@byu.net>
10034
10035         fpurge: don't wrap working cygwin implementation
10036         * lib/fpurge.c (fpurge): Fix comment typo.
10037         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
10038         1.7 to avoid replacement.
10039         * tests/test-fpurge.c (main): Enhance test.
10040
10041 2009-08-15  Eric Blake  <ebb9@byu.net>
10042         and Jim Meyering  <meyering@redhat.com>
10043
10044         test-update-copyright: skip if perl is insufficient
10045         * tests/test-update-copyright.sh: Failure to run maintainer tool
10046         should not cause testsuite failure on cygwin 1.5.
10047
10048 2009-08-14  Eric Blake  <ebb9@byu.net>
10049
10050         doc: mention more functions added in cygwin 1.7.0
10051         * doc/posix-headers/limits.texi (limits.h): Update for recent
10052         cygwin additions.
10053         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
10054         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10055         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
10056         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
10057         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
10058
10059 2009-08-14  Eric Blake  <ebb9@byu.net>
10060
10061         maint.mk: simplify update-copyright rule
10062         * top/maint.mk (update-copyright-local): Delete, and document how
10063         to do it in cfg.mk instead.
10064         (update-copyright-exclude-regexp): Delete, and document how to do
10065         it in .x-update-copyright instead.
10066         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
10067         exclude ChangeLog.
10068
10069 2009-08-14  Bruno Haible  <bruno@clisp.org>
10070
10071         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
10072
10073 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
10074
10075         maint.mk: support update-copyright-env
10076         * top/maint.mk (update-copyright-env): Define place-holder.
10077         (update-copyright): Expand $(update-copyright-env) before
10078         invoking update-copyright.
10079
10080 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
10081
10082         update-copyright: implement forced reformatting
10083         * build-aux/update-copyright: Implement and document
10084         UPDATE_COPYRIGHT_FORCE.
10085         * tests/test-update-copyright.sh: Test it.
10086
10087 2009-08-14  Eric Blake  <ebb9@byu.net>
10088         and Bruno Haible  <bruno@clisp.org>
10089
10090         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
10091         * tests/test-locale.c: Revert previous patch related to NULL.
10092         * tests/test-stdio.c: Likewise.
10093         * tests/test-stdlib.c: Likewise.
10094         * tests/test-string.c: Likewise.
10095         * tests/test-unistd.c: Likewise.
10096         * modules/time-tests (Depends-on): Add verify.
10097         * modules/wchar-tests (Depends-on): Likewise.
10098         * tests/test-time.c: Test for NULL compliance.
10099         * tests/test-wchar.c: Likewise.
10100         * modules/locale (Depends-on): Add stddef.
10101         * modules/stdio (Depends-on): Likewise.
10102         * modules/stdlib (Depends-on): Likewise.
10103         * modules/string (Depends-on): Likewise.
10104         * modules/time (Depends-on): Likewise.
10105         * modules/unistd (Depends-on): Likewise.
10106         * modules/wchar (Depends-on): Likewise.
10107         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
10108         * lib/stdlib.in.h (includes): Likewise.
10109         * lib/string.in.h (includes): Likewise.
10110         * lib/time.in.h (includes): Likewise.
10111         * lib/unistd.in.h (includes): Likewise.
10112         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
10113         replaced.
10114         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
10115         * m4/stddef_h.m4: New file.
10116         * modules/stddef: Likewise.
10117         * lib/stddef.in.h: Likewise.
10118         * modules/stddef-tests: Likewise.
10119         * tests/test-stddef.c: Likewise.
10120         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
10121         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
10122         * doc/posix-headers/locale.texi (locale.h): Likewise.
10123         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
10124         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10125         * doc/posix-headers/string.texi (string.h): Likewise.
10126         * doc/posix-headers/time.texi (time.h): Likewise.
10127         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
10128         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
10129
10130 2009-08-14  Eric Blake  <ebb9@byu.net>
10131
10132         doc: improve git diff of texinfo files
10133         * .gitattributes: Add rule for *.texi files, with hint on how to
10134         use it.
10135         Copied from m4, and based on a report by Bruno Haible.
10136
10137 2009-08-14  Bruno Haible  <bruno@clisp.org>
10138
10139         Disable multithread support by default on Cygwin 1.5.x for real.
10140         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
10141
10142 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
10143
10144         update-copyright: much ado about intervals
10145         * build-aux/update-copyright: Implement and document
10146         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
10147         of copyright year intervals.
10148         Also, document UPDATE_COPYRIGHT_YEAR.
10149         * tests/test-update-copyright.sh: Test it.
10150
10151         update-copyright: convert 2-digit to 4-digit years
10152         * build-aux/update-copyright: Implement and document.
10153         * tests/test-update-copyright.sh: Update.
10154
10155 2009-08-14  Jim Meyering  <meyering@redhat.com>
10156
10157         test-exclude: avoid coreutils "make check" failure
10158         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
10159         just as in test-argmatch.c.
10160
10161 2009-08-13  Eric Blake  <ebb9@byu.net>
10162
10163         test-dup2: fix bad assumption
10164         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
10165         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
10166
10167         test-version-etc: fix CRLF portability issue
10168         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
10169         recognize \r.
10170         * tests/test-argp-version-etc-1.sh: Likewise.
10171
10172         getopt: update client modules
10173         * modules/argp (Depends-on): Use getopt-gnu.
10174         * modules/git-merge-changelog (Depends-on): Likewise.
10175         * modules/long-options (Depends-on): Likewise.
10176         * modules/xstrtol (Depends-on): Likewise.
10177
10178 2009-08-13  Simon Josefsson  <simon@josefsson.org>
10179
10180         * tests/test-version-etc.sh: Don't fail on different
10181         project/version.  Don't fail on CRLF differences.  Rewrite to use
10182         multiple -e instead of multiple sed forks, suggested by Eric Blake
10183         <ebb9@byu.net>.
10184         * tests/test-argp-version-etc-1.sh: Likewise.
10185
10186 2009-08-13  Simon Josefsson  <simon@josefsson.org>
10187
10188         * tests/test-version-etc.sh: Don't fail on different
10189         project/version.
10190
10191 2009-08-12  Bruno Haible  <bruno@clisp.org>
10192
10193         Tests for modules 'getopt-posix', 'getopt-gnu'.
10194         * modules/getopt-posix-tests: New file.
10195         * tests/test-getopt.c: New file.
10196         * tests/test-getopt.h: New file.
10197         * tests/test-getopt_long.h: New file.
10198
10199         New modules 'getopt-posix', 'getopt-gnu'.
10200         * modules/getopt-gnu: New file, renamed from modules/getopt.
10201         * modules/getopt-posix: New file.
10202         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
10203         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
10204         (gl_GETOPT): Remove macro.
10205         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
10206         Disable the test against BSD systems that declare optreset. Test
10207         against mingw bug. Test against lack of support of optional arguments
10208         on many platforms.
10209         * doc/glibc-headers/getopt.texi: Update module name and list of
10210         relevant platforms.
10211         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
10212         'getopt-gnu' and more portability problems.
10213         * NEWS: Mention the changes.
10214
10215 2009-08-12  Bruno Haible  <bruno@clisp.org>
10216
10217         Ensure that optarg etc. get declared by <unistd.h>.
10218         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
10219         AC_USE_SYSTEM_EXTENSIONS.
10220         * modules/getopt (Depends-on): Add 'extensions'.
10221
10222 2009-08-12  Bruno Haible  <bruno@clisp.org>
10223
10224         Avoid test link errors.
10225         * modules/pipe-filter-ii-tests (Makefile.am): Define
10226         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
10227         * modules/pipe-filter-gi-tests (Makefile.am): Define
10228         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
10229         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10230
10231 2009-08-12  Bruno Haible  <bruno@clisp.org>
10232
10233         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
10234         gl_GETOPT_SUBSTITUTE before.
10235         (gl_GETOPT): Use it.
10236         * m4/argp.m4 (gl_ARGP): Update.
10237         Reported by Sergey Poznyakoff.
10238
10239         * m4/getopt.m4: Reorder macros.
10240         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
10241         (gl_GETOPT_SUBSTITUTE): Remove macro.
10242
10243 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
10244
10245         Minor improvement in gitlog-to-changelog
10246
10247         * build-aux/gitlog-to-changelog: New option `--format' makes
10248         output format string configurable.
10249
10250 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
10251
10252         Optimize exclude: use hash tables for non-wildcard patterns.
10253
10254         * lib/exclude.c: Include hash.h and mbuiter.h
10255         (struct exclude_pattern, exclude_segment): New data types.
10256         (struct exclude): Rewrite.
10257         (fnmatch_pattern_has_wildcards): New function.
10258         (new_exclude_segment, free_exclude_segment): New functions.
10259         (excluded_file_pattern_p, excluded_file_name_p): New functions.
10260         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
10261         * lib/exclude.h (is_fnmatch_pattern): New prototype.
10262         * modules/exclude: Depend on hash and mbuiter.
10263
10264         * modules/exclude-tests: New file.
10265         * tests/test-exclude.c: New file.
10266         * tests/test-exclude1.sh: New file.
10267         * tests/test-exclude2.sh: New file.
10268         * tests/test-exclude3.sh: New file.
10269         * tests/test-exclude4.sh: New file.
10270         * tests/test-exclude5.sh: New file.
10271         * tests/test-exclude6.sh: New file.
10272         * tests/test-exclude7.sh: New file.
10273
10274 2009-08-12  Bruno Haible  <bruno@clisp.org>
10275
10276         Ensure that getopt() gets declared by <unistd.h>.
10277         * lib/unistd.in.h: Conditionally include getopt.h.
10278         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
10279         Set GNULIB_UNISTD_H_GETOPT.
10280         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10281         GNULIB_UNISTD_H_GETOPT.
10282         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
10283
10284 2009-08-12  Bruno Haible  <bruno@clisp.org>
10285
10286         Clarify logic.
10287         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
10288         gl_replace_getopt instead of GETOPT_H.
10289
10290 2009-08-12  Bruno Haible  <bruno@clisp.org>
10291
10292         * m4/getopt.m4: Add comments.
10293
10294 2009-08-12  Bruno Haible  <bruno@clisp.org>
10295
10296         Disable multithread support by default on Cygwin 1.5.x.
10297         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
10298         set gl_use_threads=no if not specified otherwise.
10299
10300 2009-08-11  Bruno Haible  <bruno@clisp.org>
10301
10302         Avoid compilation error on NetBSD 5.0.
10303         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
10304         * tests/test-stdio.c: Likewise.
10305         * tests/test-stdlib.c: Likewise.
10306         * tests/test-string.c: Likewise.
10307         * tests/test-unistd.c: Likewise.
10308         Reported by Greg Troxel <gdt@ir.bbn.com>
10309         at <https://savannah.gnu.org/support/?106973>.
10310
10311 2009-08-11  Bruno Haible  <bruno@clisp.org>
10312
10313         * modules/dup2-tests (Depends-on): Remove close.
10314
10315         Undo 2009-07-19 commit.
10316         * modules/acl-tests (Depends-on): Remove close.
10317         * modules/binary-io-tests (Depends-on): Likewise.
10318         * modules/closein-tests (Depends-on): Likewise.
10319         * modules/flock-tests (Depends-on): Likewise.
10320         * modules/fsync-tests (Depends-on): Likewise.
10321         * modules/lseek-tests (Depends-on): Likewise.
10322         * modules/pipe-tests (Depends-on): Likewise.
10323         * modules/posix_spawn-tests (Depends-on): Likewise.
10324         * modules/posix_spawnp-tests (Depends-on): Likewise.
10325         * modules/stat-time-tests (Depends-on): Likewise.
10326         * modules/yesno-tests (Depends-on): Likewise.
10327
10328 2009-08-10  Bruno Haible  <bruno@clisp.org>
10329
10330         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
10331
10332 2009-08-10  Bruno Haible  <bruno@clisp.org>
10333
10334         Fix a gcc warning.
10335         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
10336
10337 2009-08-10  Bruno Haible  <bruno@clisp.org>
10338
10339         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
10340         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
10341         not only the first time.
10342         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
10343         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
10344         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
10345         is 1, not only the the first time.
10346
10347 2009-08-10  Bruno Haible  <bruno@clisp.org>
10348
10349         Make it possible to use module 'gethostname' without module 'close'.
10350         * lib/unistd.in.h (close): Evoke a link error only if
10351         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
10352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10353         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10354         * modules/unistd (Makefile.am): Substitute
10355         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10356         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
10357         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
10358         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
10359         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10360         * modules/sys_ioctl (Makefile.am): Substitute
10361         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10362         * modules/socket (configure.ac): On native Windows, set
10363         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
10364         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10365         Reported by Sam Steingold <sds@gnu.org>.
10366
10367 2009-08-10  Bruno Haible  <bruno@clisp.org>
10368
10369         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
10370         * modules/ioctl (configure.ac): Likewise.
10371
10372 2009-08-10  Bruno Haible  <bruno@clisp.org>
10373
10374         Avoid collision between gnulib wrapper and libintl wrapper.
10375         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
10376         already defined in intl/printf.c.
10377         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
10378         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
10379
10380 2009-08-09  Bruno Haible  <bruno@clisp.org>
10381
10382         Make <sys/select.h> really self-contained, also on Solaris 10.
10383         * lib/sys_select.in.h: Include <string.h>.
10384         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
10385         Solaris 10 problem.
10386         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
10387         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
10388         Reported by Jim Meyering.
10389
10390 2009-08-09  Bruno Haible  <bruno@clisp.org>
10391
10392         Avoid warnings from 'aclocal' that are due to a use of macro name
10393         AM_XGETTEXT_OPTION that is not defined in automake.
10394         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
10395         automake.
10396         * modules/error (configure.ac): Likewise.
10397         * modules/propername (configure.ac): Likewise.
10398         * modules/vasprintf (configure.ac): Likewise.
10399         * modules/verror (configure.ac): Likewise.
10400         * modules/xprintf (configure.ac): Likewise.
10401         * modules/xvasprintf (configure.ac): Likewise.
10402
10403 2009-08-08  Bruno Haible  <bruno@clisp.org>
10404
10405         Avoid compilation error in C++ mode.
10406         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
10407         Reported by Sam Steingold <sds@gnu.org>.
10408
10409 2009-08-08  Bruno Haible  <bruno@clisp.org>
10410
10411         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
10412         for the various Unix platforms.
10413         * doc/posix-headers/limits.texi: Update platforms list regarding
10414         HOST_NAME_MAX.
10415         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10416
10417 2009-08-07  Jim Meyering  <meyering@redhat.com>
10418
10419         selinux-at: fix typo in a comment
10420         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
10421         Spotted by Paolo Bonzini.
10422
10423         selinux-at: remove redundant m4 code, add documentation
10424         * modules/selinux-at (configure.ac): Remove redundant code.
10425         LIB_SELINUX is already set via the dependent module, selinux-h.
10426         (Include): Add quotes around selinux-at.h.
10427         * lib/selinux-at.h: Add documentation.
10428         Reported by Bruno Haible in
10429         http://marc.info/?l=gnulib-bug&m=124958988300749
10430
10431 2009-08-07  Bruno Haible  <bruno@clisp.org>
10432
10433         Avoid link error on MacOS X 10.3 and 10.4.
10434         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
10435         on non-ELF systems.
10436         * lib/argp-pv.c (argp_program_version): Likewise.
10437         Reported by Simon Josefsson.
10438
10439 2009-08-07  Simon Josefsson  <simon@josefsson.org>
10440
10441         * tests/test-version-etc.sh: Use $EXEEXT.
10442
10443 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
10444
10445         update-copyright: update documentation to point to maint.mk
10446         * build-aux/update-copyright: Here.
10447
10448 2009-08-06  Jim Meyering  <meyering@redhat.com>
10449
10450         maint.mk: support update-copyright-local
10451         * top/maint.mk (update-copyright-local): Define place-holder.
10452         (update-copyright): Depend on $(update-copyright-local).
10453
10454 2009-08-06  Jim Meyering  <meyering@redhat.com>
10455
10456         selinux-at: new module
10457         Initially written for coreutils, this module will soon be
10458         used by findutils, too.
10459         * MODULES.html.sh [Misc]: Add selinux-at.
10460         * lib/selinux-at.h: New file, from coreutils.
10461         * lib/selinux-at.c: Likewise.
10462         * modules/selinux-at: Likewise.
10463         (License): Change from LGPL to GPL, since it depends
10464         on the GPL'd openat module.
10465
10466         doc: update README
10467         * README: Remove references to cogito.
10468         Remove cvs-repo-updating instructions from 2007.
10469         Don't imply that CVS is better if you have limited disk space.
10470
10471 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10472
10473         update-copyright: support C-style comments
10474         * build-aux/update-copyright: Implement and document.
10475         * tests/test-update-copyright.sh: Test.
10476
10477 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10478
10479         update-copyright: support omitted "(C)"
10480         * build-aux/update-copyright: Implement and document.  Also,
10481         allow variable whitespace before "(C)".
10482         * tests/test-update-copyright.sh: Test.
10483
10484 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10485
10486         update-copyright: don't trip on non-FSF copyright statements
10487         * build-aux/update-copyright: Fix so that the first correctly
10488         formatted FSF copyright statement is recognized no matter what
10489         appears before it.  Update documentation.
10490         * tests/test-update-copyright.sh: Test that.
10491
10492 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10493
10494         update-copyright: clean up code a little
10495         * build-aux/update-copyright: Append "_re" to the name of any
10496         variable holding a regular expression.
10497         Replace "old" and "new" with "stmt" in variable names.
10498         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
10499         handled correctly.
10500         Format code more consistently.
10501
10502 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10503
10504         update-copyright-tests: improve portability
10505         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
10506         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
10507
10508 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
10509
10510         update-copyright: support @copyright{} and &copy;
10511         * build-aux/update-copyright: Implement and document.
10512         * tests/test-update-copyright.sh: Test.
10513
10514 2009-08-04  Jim Meyering  <meyering@redhat.com>
10515
10516         update-copyright-tests: correctly test EOL=\r\n handling
10517         * tests/test-update-copyright.sh: Put \r at the end of some lines
10518         for the dos-eol tests.  Based on a patch by Joel E. Denny.
10519
10520         maint.mk: make update-copyright exclusion list more configurable
10521         * top/maint.mk (update-copyright): Default to excluding COPYING,
10522         but allow an override, in case someone does want to update that file.
10523
10524         maint.mk: don't update copyright date in COPYING
10525         * top/maint.mk (update-copyright): Exclude COPYING.
10526
10527         maint.mk: add a copyright-updating rule
10528         * top/maint.mk (update-copyright): New rule.
10529         Derived from coreutils/Makefile.am.
10530
10531         update-copyright: rename some variables
10532         * build-aux/update-copyright: Rename a few variables for clarity.
10533         Tweak syntax.  List Joel E. Denny as coauthor.
10534
10535 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
10536
10537         update-copyright: fix bug for 2-digit last year and add tests
10538         * build-aux/update-copyright: Fix bug.
10539         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
10540         specified.
10541         * modules/update-copyright-tests: New
10542         * tests/test-update-copyright.sh: New.
10543
10544 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
10545
10546         update-copyright: handle leading tabs in line prefix
10547         * build-aux/update-copyright: Count leading tabs as 8 spaces
10548         when computing margin.  This helps with the formatting of
10549         ChangeLogs, for example.
10550         Fix documentation a little.
10551
10552 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
10553
10554         update-copyright: support EOL=\r\n
10555         * build-aux/update-copyright: Implement that.
10556
10557 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
10558
10559         update-copyright: automatically format copyright statements
10560         * build-aux/update-copyright: Implement that.
10561         Also, be a little more predictable and safer by always failing
10562         when the full copyright format is not perfectly recognized as an
10563         unbroken whole.  Discussed at
10564         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
10565         Rewrite documentation.
10566
10567 2009-08-03  Bruno Haible  <bruno@clisp.org>
10568
10569         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
10570
10571 2009-08-02  Bruno Haible  <bruno@clisp.org>
10572
10573         Tests for module 'uname'.
10574         * modules/uname-tests: New file.
10575         * tests/test-uname.c: New file.
10576
10577         New module 'uname'.
10578         * lib/uname.c: New file.
10579         * m4/uname.m4: New file.
10580         * modules/uname: New file.
10581         * doc/posix-functions/uname.texi: Mention the new module.
10582
10583 2009-08-02  Bruno Haible  <bruno@clisp.org>
10584
10585         Tests for module 'sys_utsname'.
10586         * modules/sys_utsname-tests: New file.
10587         * tests/test-sys_utsname.c: New file.
10588
10589         New module 'sys_utsname'.
10590         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
10591         * m4/sys_utsname_h.m4: New file.
10592         * modules/sys_utsname: New file.
10593         * doc/posix-headers/sys_utsname.texi: Mention the new module.
10594
10595 2009-08-02  Bruno Haible  <bruno@clisp.org>
10596
10597         Implicitly initialize the sockets library.
10598         * lib/gethostname.c: Include sockets.h.
10599         (rpl_gethostname): Invoke gl_sockets_startup.
10600         * lib/socket.c: Include sockets.h.
10601         (rpl_socket): Invoke gl_sockets_startup.
10602         * modules/gethostname (Depends-on): Add sockets.
10603         * modules/socket (Depends-on): Likewise.
10604         * tests/test-poll.c: Don't include sockets.h.
10605         (main): Don't invoke gl_sockets_startup.
10606         * tests/test-select.c: Don't include sockets.h.
10607         (main): Don't invoke gl_sockets_startup.
10608
10609 2009-08-02  Bruno Haible  <bruno@clisp.org>
10610
10611         Allow multiple calls to gl_sockets_startup.
10612         * lib/sockets.c (initialized_sockets_version): New variable.
10613         (gl_sockets_startup): Do nothing if already called for this or a higher
10614         version.
10615         (gl_sockets_cleanup): Reset initialized_sockets_version.
10616
10617 2009-08-03  Simon Josefsson  <simon@josefsson.org>
10618
10619         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
10620         different project/version.
10621
10622 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
10623             Bruno Haible  <bruno@clisp.org>
10624
10625         Tests for module 'pipe-filter-gi'.
10626         * modules/pipe-filter-gi-tests: New file.
10627         * tests/test-pipe-filter-gi1.sh: New file.
10628         * tests/test-pipe-filter-gi1.c: New file.
10629         * tests/test-pipe-filter-gi2.sh: New file.
10630         * tests/test-pipe-filter-gi2-main.c: New file.
10631         * tests/test-pipe-filter-gi2-child.c: New file.
10632
10633         New module 'pipe-filter-gi'.
10634         * lib/pipe-filter-gi.c: New file.
10635         * modules/pipe-filter-gi: New file.
10636
10637 2009-08-02  Bruno Haible  <bruno@clisp.org>
10638             Paolo Bonzini  <bonzini@gnu.org>
10639
10640         Tests for module 'pipe-filter-ii'.
10641         * modules/pipe-filter-ii-tests: New file.
10642         * tests/test-pipe-filter-ii1.sh: New file.
10643         * tests/test-pipe-filter-ii1.c: New file.
10644         * tests/test-pipe-filter-ii2.sh: New file.
10645         * tests/test-pipe-filter-ii2-main.c: New file.
10646         * tests/test-pipe-filter-ii2-child.c: New file.
10647
10648         New module 'pipe-filter-ii'.
10649         * lib/pipe-filter.h: New file.
10650         * lib/pipe-filter-ii.c: New file.
10651         * lib/pipe-filter-aux.h: New file.
10652         * modules/pipe-filter-ii: New file.
10653
10654 2009-08-02  Simon Josefsson  <simon@josefsson.org>
10655
10656         * lib/gc-libgcrypt.c: Change copyright to FSF.
10657         * lib/gc-gnulib.c: Likewise.
10658
10659 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
10660
10661         * lib/gethostname.c: Include limits.h.
10662
10663 2009-08-02  Simon Josefsson  <simon@josefsson.org>
10664             Bruno Haible  <bruno@clisp.org>
10665
10666         Ensure HOST_NAME_MAX as part of the gethostname module.
10667         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
10668         define also HOST_NAME_MAX.
10669         * tests/test-gethostname.c: Include <limits.h>.
10670         (main): Check also HOST_NAME_MAX.
10671         * doc/posix-headers/limits.texi: Document the mingw problem.
10672
10673 2009-08-02  Bruno Haible  <bruno@clisp.org>
10674
10675         * lib/gethostname.c (gethostname): Fix handling of large len argument.
10676         Add comments.
10677
10678 2009-03-31  Simon Josefsson  <simon@josefsson.org>
10679
10680         * lib/gethostname.c: Add Windows wrapper.
10681         * m4/gethostname.m4: Look for gethostname in -lws2_32.
10682         * modules/gethostname: Depend on sys_socket & errno, for also
10683         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
10684         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
10685
10686 2009-07-31  Jim Meyering  <meyering@redhat.com>
10687
10688         getloadavg: fix symbol name in comment
10689         * lib/getloadavg.c: Correct a typo I introduced when adding
10690         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
10691         Matt Kraai spotted the problem.
10692
10693 2009-07-29  Matt Kraai  <mkraai@beckman.com>
10694
10695         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
10696         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
10697         code also if ! defined N_NAME_POINTER.
10698         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
10699         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
10700         but the n_name member is a 12-byte array.
10701
10702 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
10703
10704         update-copyright: generalize comment handling
10705         * build-aux/update-copyright: Handle copyright statements
10706         within more comment styles.
10707         Document usage.
10708         Report any file with an external copyright holder or parse failure.
10709
10710 2009-07-29  Jim Meyering  <meyering@redhat.com>
10711
10712         mktime: correct setting of REPLACE_MKTIME
10713         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
10714
10715         update-copyright: new module
10716         * modules/update-copyright: New file.
10717         * build-aux/update-copyright: New file.
10718         * MODULES.html.sh (maint+release support): Add update-copyright.
10719
10720 2009-07-27  Bruno Haible  <bruno@clisp.org>
10721
10722         Fix compilation error when <ctime> is used and mktime is replaced.
10723         * lib/time.in.h (mktime): New declaration.
10724         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
10725         REPLACE_MKTIME instead of defining mktime in config.h.
10726         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
10727         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
10728         Reported by Ross McFarland <rwmcfa1@neces.com>.
10729
10730 2009-07-27  Bruno Haible  <bruno@clisp.org>
10731
10732         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
10733         Reported by Matt Kraai <mkraai@beckman.com>.
10734
10735 2009-07-25  Jim Meyering  <meyering@redhat.com>
10736
10737         maint.mk: avoid warnings about missing files
10738         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
10739         diagnostic when .prev-version does not exist.
10740         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
10741         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
10742         nonexistent cfg.mk.
10743         Suggestions from Simon Josefsson.
10744
10745 2009-07-25  Bruno Haible  <bruno@clisp.org>
10746
10747         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
10748         defined as macros. Needed on QNX 6.4.1.
10749         Reported by Matt Kraai <mkraai@beckman.com>.
10750
10751 2009-07-23  Jim Meyering  <meyering@redhat.com>
10752
10753         maint.mk: invoke "make dist" with a working value of XZ_OPT
10754         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
10755
10756 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
10757
10758         Make fseeko.c compile on QNX.
10759         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
10760
10761 2009-07-22  Peter Simons  <simons@cryp.to>
10762
10763         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
10764         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
10765         * lib/md4.h: Likewise.
10766         * lib/md5.h: Likewise.
10767         * lib/sha1.h: Likewise.
10768         * lib/sha256.h: Likewise.
10769         * lib/sha512.h: Likewise.
10770
10771         tests-sha1: don't assign literal string to 'char *' variable
10772         * tests/test-sha1.c (main): Declare locals with "const" to match
10773         attributes of the right hand side.
10774
10775 2009-07-21  Eric Blake  <ebb9@byu.net>
10776
10777         dup2: fix more mingw problems
10778         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
10779         fd to itself.
10780         * doc/posix-functions/dup2.texi (dup2): Document the bug.
10781         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
10782         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
10783         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
10784         care of mingw bugs.
10785
10786 2009-07-21  Jim Meyering  <meyering@redhat.com>
10787
10788         vc-list-files: avoid failure when /bin/sh is dash
10789         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
10790         On some Debian based systems, /bin/sh is a symlink to dash, and running
10791         this command would omit the "/" following each 'tests' prefix:
10792           dash -x build-aux/vc-list-files -C . tests
10793         That is because bash and dash work differently:
10794           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
10795           bash ok
10796           dash odd
10797
10798 2009-07-21  Eric Blake  <ebb9@byu.net>
10799
10800         dup2-tests: test previous patch
10801         * modules/dup2-tests: New file.
10802         * tests/test-dup2.c: Likewise.
10803         * tests/test-open.c (main): Avoid unspecified behavior.
10804         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
10805         test.
10806
10807         dup2: work around mingw and cygwin 1.5 bug
10808         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
10809         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10810         * modules/unistd (Makefile.am): Substitute it.
10811         * lib/unistd.in.h (dup2): Declare the replacement.
10812         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
10813         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
10814         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
10815         * modules/execute (Depends-on): Add dup2.
10816         * modules/fseterr (Depends-on): Likewise.
10817         * modules/pipe (Depends-on): Likewise.
10818         * modules/posix_spawn-internal (Depends-on): Likewise.
10819
10820 2009-07-21  Bruno Haible  <bruno@clisp.org>
10821
10822         * modules/.gitattributes: New file.
10823
10824 2009-07-20  Bruno Haible  <bruno@clisp.org>
10825
10826         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
10827         (main): Use it.
10828
10829 2009-07-20  Eric Blake  <ebb9@byu.net>
10830
10831         test-pipe: make a bit more robust.
10832         * tests/test-pipe.c (myerr): Allow error messages regardless of
10833         what we do to stderr.
10834         (test_pipe): Rearrange to avoid deadlock.
10835         (child_main): Try a larger read, to ensure we avoided deadlock.
10836         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
10837         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
10838         if misused.
10839
10840 2009-07-19  Jim Meyering  <meyering@redhat.com>
10841
10842         fts: avoid false-positive cycle-detection
10843         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
10844         for each new command line argument.
10845
10846 2009-07-19  Bruno Haible  <bruno@clisp.org>
10847
10848         Fix build error on mingw with the modules sys_select and unistd.
10849         * modules/acl-tests (Depends-on): Add close.
10850         * modules/binary-io-tests (Depends-on): Likewise.
10851         * modules/closein-tests (Depends-on): Likewise.
10852         * modules/flock-tests (Depends-on): Likewise.
10853         * modules/fsync-tests (Depends-on): Likewise.
10854         * modules/lseek-tests (Depends-on): Likewise.
10855         * modules/pipe-tests (Depends-on): Likewise.
10856         * modules/posix_spawn-tests (Depends-on): Likewise.
10857         * modules/posix_spawnp-tests (Depends-on): Likewise.
10858         * modules/stat-time-tests (Depends-on): Likewise.
10859         * modules/yesno-tests (Depends-on): Likewise.
10860
10861 2009-07-19  Bruno Haible  <bruno@clisp.org>
10862
10863         Unify conditionals.
10864         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
10865         macros, not at the compiler macros.
10866         * lib/pipe.c: Likewise.
10867         * lib/execute.c: Likewise.
10868         * lib/spawni.c: Likewise.
10869
10870 2009-07-19  Bruno Haible  <bruno@clisp.org>
10871
10872         Fix handling of closed stdin/stdout/stderr on mingw.
10873         * lib/w32spawn.h: Include unistd.h.
10874         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
10875         file descriptor with O_NOINHERIT flag.
10876         (fd_safer_noinherit): New function, based on fd-safer.c.
10877         (dup_safer_noinherit): New function, based on dup-safer.c.
10878         (undup_safer_noinherit): New function.
10879         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
10880         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
10881         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
10882         instead of fd_safer.
10883         * tests/test-pipe.c: Include <windows.h>.
10884         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
10885
10886         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
10887         from main.
10888         (test_pipe): Pass an extra argument for disambiguation.
10889         (main): Invoke parent_main or child_main.
10890
10891         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
10892         consistently.
10893
10894 2009-07-18  Eric Blake  <ebb9@byu.net>
10895
10896         test-pipe: fix mingw build
10897         * tests/test-pipe.c (main): Avoid fcntl on mingw.
10898
10899 2009-07-18  Bruno Haible  <bruno@clisp.org>
10900
10901         * modules/pipe-tests (Makefile.am): Fix typo.
10902
10903 2009-07-18  Eric Blake  <ebb9@byu.net>
10904
10905         error: fix mingw build
10906         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
10907         Reported by Bruno Haible.
10908
10909         error: avoid undefined use of stdout
10910         * lib/error.c (error, error_at_line): Check that fd 1 is open
10911         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
10912         is handling faults and the close_stdout module wants to report the
10913         detection of closed stdout as an error.
10914
10915 2009-07-17  Eric Blake  <ebb9@byu.net>
10916
10917         pipe: be robust in face of closed fds
10918         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
10919         should cause child to misbehave.
10920         * modules/pipe-tests: New module.
10921         * tests/test-pipe.c: New file.
10922         * tests/test-pipe.sh: New file.
10923         Reported by Akim Demaille.
10924
10925 2009-07-14  Bruno Haible  <bruno@clisp.org>
10926
10927         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
10928         Reported by anonymous kc.
10929
10930 2009-07-07  Jim Meyering  <meyering@redhat.com>
10931
10932         maint.mk: don't look for translatable strings in *.m4 or *.mk
10933         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
10934         when searching for translatable strings.
10935
10936 2009-07-05  Jim Meyering  <meyering@redhat.com>
10937
10938         remove superfluous parentheses in STREQ definition
10939         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
10940         * lib/getugroups.c (STREQ): Likewise.
10941         * lib/fnmatch.c (STREQ): Likewise.
10942         Spotted by Bruno Haible.
10943
10944 2009-07-04  Jim Meyering  <meyering@redhat.com>
10945
10946         argv-iter: new module
10947         * MODULES.html.sh: Add argv-iter.
10948         * lib/argv-iter.c, lib/argv-iter.h: New files.
10949         * modules/argv-iter: New file.
10950         * modules/argv-iter-tests: New file.
10951         * tests/test-argv-iter.c: Test it.
10952
10953 2009-07-04  Bruno Haible  <bruno@clisp.org>
10954
10955         Fix assertion.
10956         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
10957         contains more exact copies of a given entry than file2, leave the extra
10958         copies unpaired rather than aborting.
10959         Reported by Eric Blake.
10960
10961 2009-07-02  Bruno Haible  <bruno@clisp.org>
10962
10963         Speedup git-merge-changelog for git cherry-pick.
10964         * lib/git-merge-changelog.c (struct entries_mapping): New type.
10965         (entries_mapping_get): New function, extracted from compute_mapping.
10966         (entries_mapping_reverse_get): New function.
10967         (compute_mapping): Add a 'full' argument. Return the result in a
10968         'struct entries_mapping'.
10969         (main): Update. Access the mappings through entries_mapping_get.
10970         Reported by Eric Blake.
10971
10972 2009-07-02  Bruno Haible  <bruno@clisp.org>
10973
10974         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
10975         best_i.
10976
10977 2009-07-02  Bruno Haible  <bruno@clisp.org>
10978
10979         Speed up approximate search for matching ChangeLog entries.
10980         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
10981         argument. Call fstrcmp_bounded instead of fstrcmp.
10982         (compute_mapping, try_split_merged_entry, main): Update callers.
10983
10984 2009-07-02  Bruno Haible  <bruno@clisp.org>
10985
10986         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
10987
10988 2009-06-30  Bruno Haible  <bruno@clisp.org>
10989
10990         Reduce the number of uc_is_cased calls.
10991         * lib/unicase.h (casing_suffix_context_t): Add
10992         'first_char_except_ignorable' field.
10993         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
10994         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
10995         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
10996         Update initializer.
10997         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
10998         case-ignorable characters.
10999         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
11000         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
11001         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
11002         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
11003         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
11004
11005 2009-06-30  Bruno Haible  <bruno@clisp.org>
11006
11007         Tests for module 'unicase/ignorable'.
11008         * modules/unicase/ignorable-tests: New file.
11009         * tests/unicase/test-ignorable.c: New file, generated by
11010         gen-uni-tables.
11011
11012         Tests for module 'unicase/cased'.
11013         * modules/unicase/cased-tests: New file.
11014         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
11015         * tests/unicase/test-predicate-part1.h: New file, derived from
11016         tests/unictype/test-predicate-part1.h.
11017         * tests/unicase/test-predicate-part2.h: New file, same as
11018         tests/unictype/test-predicate-part2.h.
11019
11020         Fix evaluation of "Before C" condition of FINAL_SIGMA.
11021         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
11022         (output_casing_properties): New function.
11023         (main): Call it.
11024         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
11025         * lib/unicase/cased.c: Include unictype/bitmap.h.
11026         (uc_is_cased): Define through a bitmap lookup.
11027         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
11028         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
11029         (uc_is_case_ignorable): Define through a bitmap lookup.
11030         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
11031         lib/unictype/bitmap.h.
11032         (Depends-on): Add inline. Clean up.
11033         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
11034         lib/unictype/bitmap.h.
11035         (Depends-on): Add inline. Clean up.
11036         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
11037         recognition.
11038         * tests/unicase/test-u16-tolower.c (main): Likewise.
11039         * tests/unicase/test-u32-tolower.c (main): Likewise.
11040
11041 2009-06-30  Bruno Haible  <bruno@clisp.org>
11042
11043         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
11044         * lib/unicase/u16-casemap.c: Likewise.
11045         * lib/unicase/u32-casemap.c: Likewise.
11046
11047 2009-06-29  Bruno Haible  <bruno@clisp.org>
11048
11049         Define u32_casefold as a wrapper around u32_ct_casefold.
11050         * lib/unicase/u32-casefold.c: Update.
11051         * modules/unicase/u32-casefold (Depends-on): Add
11052         unicase/u32-ct-casefold, unicase/empty-prefix-context,
11053         unicase/empty-suffix-context. Clean up.
11054
11055         Define u16_casefold as a wrapper around u16_ct_casefold.
11056         * lib/unicase/u16-casefold.c: Update.
11057         * modules/unicase/u16-casefold (Depends-on): Add
11058         unicase/u16-ct-casefold, unicase/empty-prefix-context,
11059         unicase/empty-suffix-context. Clean up.
11060
11061         Define u8_casefold as a wrapper around u8_ct_casefold.
11062         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
11063         * lib/unicase/u8-casefold.c: Update.
11064         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
11065         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11066
11067         Define u32_totitle as a wrapper around u32_ct_totitle.
11068         * lib/unicase/u32-totitle.c: Update.
11069         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
11070         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11071
11072         Define u16_totitle as a wrapper around u16_ct_totitle.
11073         * lib/unicase/u16-totitle.c: Update.
11074         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
11075         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11076
11077         Define u8_totitle as a wrapper around u8_ct_totitle.
11078         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
11079         functions.
11080         (FUNC): Delegate to U_CT_TOTITLE.
11081         * lib/unicase/u8-totitle.c: Update.
11082         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
11083         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11084
11085         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
11086         invocation.
11087         * modules/unicase/u32-tolower (Depends-on): Add
11088         unicase/empty-prefix-context, unicase/empty-suffix-context.
11089
11090         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
11091         invocation.
11092         * modules/unicase/u16-tolower (Depends-on): Add
11093         unicase/empty-prefix-context, unicase/empty-suffix-context.
11094
11095         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
11096         * modules/unicase/u8-tolower (Depends-on): Add
11097         unicase/empty-prefix-context, unicase/empty-suffix-context.
11098
11099         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
11100         invocation.
11101         * modules/unicase/u32-toupper (Depends-on): Add
11102         unicase/empty-prefix-context, unicase/empty-suffix-context.
11103
11104         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
11105         invocation.
11106         * modules/unicase/u16-toupper (Depends-on): Add
11107         unicase/empty-prefix-context, unicase/empty-suffix-context.
11108
11109         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
11110         * modules/unicase/u8-toupper (Depends-on): Add
11111         unicase/empty-prefix-context, unicase/empty-suffix-context.
11112
11113         New module 'unicase/u32-ct-casefold'.
11114         * lib/unicase/u32-ct-casefold.c: New file.
11115         * modules/unicase/u32-ct-casefold: New file.
11116
11117         New module 'unicase/u16-ct-casefold'.
11118         * lib/unicase/u16-ct-casefold.c: New file.
11119         * modules/unicase/u16-ct-casefold: New file.
11120
11121         New module 'unicase/u8-ct-casefold'.
11122         * lib/unicase/u8-ct-casefold.c: New file.
11123         * lib/unicase/u-ct-casefold.h: New file, derived from
11124         lib/unicase/u-casefold.h.
11125         * modules/unicase/u8-ct-casefold: New file.
11126
11127         New module 'unicase/u32-ct-totitle'.
11128         * lib/unicase/u32-ct-totitle.c: New file.
11129         * modules/unicase/u32-ct-totitle: New file.
11130
11131         New module 'unicase/u16-ct-totitle'.
11132         * lib/unicase/u16-ct-totitle.c: New file.
11133         * modules/unicase/u16-ct-totitle: New file.
11134
11135         New module 'unicase/u8-ct-totitle'.
11136         * lib/unicase/u8-ct-totitle.c: New file.
11137         * lib/unicase/u-ct-totitle.h: New file, derived from
11138         lib/unicase/u-totitle.h.
11139         * modules/unicase/u8-ct-totitle: New file.
11140
11141         New module 'unicase/u32-ct-tolower'.
11142         * lib/unicase/u32-ct-tolower.c: New file.
11143         * modules/unicase/u32-ct-tolower: New file.
11144
11145         New module 'unicase/u16-ct-tolower'.
11146         * lib/unicase/u16-ct-tolower.c: New file.
11147         * modules/unicase/u16-ct-tolower: New file.
11148
11149         New module 'unicase/u8-ct-tolower'.
11150         * lib/unicase/u8-ct-tolower.c: New file.
11151         * modules/unicase/u8-ct-tolower: New file.
11152
11153         New module 'unicase/u32-ct-toupper'.
11154         * lib/unicase/u32-ct-toupper.c: New file.
11155         * modules/unicase/u32-ct-toupper: New file.
11156
11157         New module 'unicase/u16-ct-toupper'.
11158         * lib/unicase/u16-ct-toupper.c: New file.
11159         * modules/unicase/u16-ct-toupper: New file.
11160
11161         New module 'unicase/u8-ct-toupper'.
11162         * lib/unicase/u8-ct-toupper.c: New file.
11163         * modules/unicase/u8-ct-toupper: New file.
11164
11165         Add context arguments to u*_casemap functions.
11166         * lib/unicase/unicasemap.h: Include unicase.h.
11167         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
11168         suffix_context arguments.
11169         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
11170         functions.
11171         (FUNC): Add prefix_context and suffix_context arguments. Use
11172         uc_is_cased and uc_is_case_ignorable.
11173         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
11174         * lib/unicase/u16-casemap.c: Likewise.
11175         * lib/unicase/u32-casemap.c: Likewise.
11176         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
11177         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11178         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
11179         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11180         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
11181         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11182
11183         New module 'unicase/u32-suffix-context'.
11184         * lib/unicase/u32-suffix-context.c: New file.
11185         * modules/unicase/u32-suffix-context: New file.
11186
11187         New module 'unicase/u16-suffix-context'.
11188         * lib/unicase/u16-suffix-context.c: New file.
11189         * modules/unicase/u16-suffix-context: New file.
11190
11191         New module 'unicase/u8-suffix-context'.
11192         * lib/unicase/u8-suffix-context.c: New file.
11193         * lib/unicase/u-suffix-context.h: New file.
11194         * modules/unicase/u8-suffix-context: New file.
11195
11196         New module 'unicase/empty-suffix-context'.
11197         * lib/unicase/empty-suffix-context.c: New file.
11198         * modules/unicase/empty-suffix-context: New file.
11199
11200         New module 'unicase/u32-prefix-context'.
11201         * lib/unicase/u32-prefix-context.c: New file.
11202         * modules/unicase/u32-prefix-context: New file.
11203
11204         New module 'unicase/u16-prefix-context'.
11205         * lib/unicase/u16-prefix-context.c: New file.
11206         * modules/unicase/u16-prefix-context: New file.
11207
11208         New module 'unicase/u8-prefix-context'.
11209         * lib/unicase/u8-prefix-context.c: New file.
11210         * lib/unicase/u-prefix-context.h: New file.
11211         * lib/unicase/context.h: New file.
11212         * modules/unicase/u8-prefix-context: New file.
11213
11214         New module 'unicase/empty-prefix-context'.
11215         * lib/unicase/empty-prefix-context.c: New file.
11216         * modules/unicase/empty-prefix-context: New file.
11217
11218         New module 'unicase/ignorable'.
11219         * lib/unicase/ignorable.c: New file.
11220         * modules/unicase/ignorable: New file.
11221
11222         New module 'unicase/cased'.
11223         * lib/unicase/caseprop.h: New file.
11224         * lib/unicase/cased.c: New file.
11225         * modules/unicase/cased: New file.
11226
11227         New functions for case mapping of substrings.
11228         * lib/unicase.h (casing_prefix_context_t): New type.
11229         (unicase_empty_prefix_context): New variable.
11230         (u8_casing_prefix_context, u16_casing_prefix_context,
11231         u32_casing_prefix_context, u8_casing_prefixes_context,
11232         u16_casing_prefixes_context, u32_casing_prefixes_context): New
11233         declarations.
11234         (casing_suffix_context_t): New type.
11235         (unicase_empty_suffix_context): New variable.
11236         (u8_casing_suffix_context, u16_casing_suffix_context,
11237         u32_casing_suffix_context, u8_casing_suffixes_context,
11238         u16_casing_suffixes_context, u32_casing_suffixes_context,
11239         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
11240         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
11241         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
11242         declarations.
11243
11244 2009-06-28  Jim Meyering  <meyering@redhat.com>
11245
11246         boostrap: indent only with spaces
11247         * build-aux/bootstrap: Indent only with spaces, never TABs.
11248
11249         bootstrap: split long lines
11250         * build-aux/bootstrap: Keep line length < 80.
11251
11252         bootstrap: sync from coreutils
11253         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
11254         just as autoreconf does.  Verify a list of prerequisite
11255         package-name,version-number pairs if defined in bootstrap.conf.
11256         Refer to README-prereq, if prerequisites are not satisfied.
11257
11258 2009-06-27  Eric Blake  <ebb9@byu.net>
11259
11260         tests: add test for bogus NULL definition
11261         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
11262         * tests/test-stdlib.c: Likewise.
11263         * tests/test-string.c: Likewise.
11264         * tests/test-locale.c: Likewise.
11265         * tests/test-unistd.c: Likewise.
11266         * modules/stdio-tests (Depends-on): Add verify.
11267         * modules/stdlib-tests (Depends-on): Likewise.
11268         * modules/string-tests (Depends-on): Likewise.
11269         * modules/locale-tests (Depends-on): Likewise.
11270         * modules/unistd-tests (Depends-on): Likewise.
11271
11272 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
11273
11274         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
11275         self-explaining comment.
11276         * m4/selinux-selinux-h: Update serial.
11277         (gl_LIBSELINUX): New macro, adding a warning for missing development
11278         packages to code extracted from...
11279         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
11280         Add warning for missing development packages here, too.
11281
11282 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
11283
11284         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
11285
11286 2009-06-25  Eric Blake  <ebb9@byu.net>
11287
11288         version-etc: fix regression
11289         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
11290         gcc.
11291         (version_etc): Use it, to catch bugs with trailing NULL.
11292         * lib/version-etc.c (version_etc_arn): Delete unused argument.
11293         (version_etc_va): Fix logic bug.
11294         * modules/version-etc-tests: Add test.
11295         * tests/test-version-etc.c: New file.
11296         * tests/test-version-etc.sh: Likewise.
11297
11298 2009-06-25  Sam Steingold  <sds@gnu.org>
11299
11300         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
11301         mbtowc declaration.
11302
11303 2009-06-25  Eric Blake  <ebb9@byu.net>
11304
11305         fpurge: migrate into <stdio.h>
11306         * lib/fpurge.h: Delete...
11307         * lib/stdio.in.h (fpurge): ...and declare here, instead.
11308         * lib/fpurge.c (fpurge): Change declaring header.
11309         * modules/fpurge (Files): Drop deleted file.
11310         (Depends-on): Add stdio.
11311         (configure.ac): Set witness.
11312         * modules/stdio (Makefile.am): Support fpurge macros.
11313         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11314         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
11315         * lib/fflush.c: Update client.
11316         * tests/test-fpurge.c: Likewise.
11317         * NEWS: Mention the change.
11318
11319 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
11320
11321         * lib/argp-version-etc.c (program_authors): Add const
11322         qualifier.
11323         * lib/version-etc.c: Fix typos in the comments.
11324         * modules/argp-version-etc: Depends on version-etc.
11325
11326 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
11327
11328         argp-version-etc: new module.
11329
11330         * lib/argp-version-etc.c: New file.
11331         * lib/argp-version-etc.h: New file.
11332         * modules/argp-version-etc: New file.
11333         * modules/argp-version-etc-tests: New file.
11334         * tests/test-argp-version-etc.c: New test.
11335         * tests/test-argp-version-etc-1.sh: New test.
11336
11337 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
11338
11339         Provide additional interfaces and documentation for version-etc
11340         module.
11341
11342         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
11343         interfaces.
11344         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
11345         prototypes.
11346
11347 2009-06-24  Bruno Haible  <bruno@clisp.org>
11348
11349         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
11350         HAVE_LIB${NAME} macro.
11351         Reported by Sam Steingold <sds@gnu.org>.
11352
11353 2009-06-23  Simon Josefsson  <simon@josefsson.org>
11354
11355         * modules/hash-tests (test_hash_LDADD): Link to libintl when
11356         needed.
11357
11358 2009-06-21  Bruno Haible  <bruno@clisp.org>
11359
11360         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
11361         work.
11362         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
11363         together with LIB${NAME}, LTLIB${NAME}.
11364         Reported by Sam Steingold <sds@gnu.org>.
11365
11366 2009-06-20  Jim Meyering  <meyering@redhat.com>
11367
11368         tests: make sc_require_test_exit_idiom more generic
11369         * top/maint.mk (Exit_witness_file): New overridable variable.
11370         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
11371         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
11372
11373 2009-06-19  Jim Meyering  <meyering@redhat.com>
11374
11375         hash: reverse order of src/dst parameters in an internal interface
11376         * lib/hash.c (transfer_entries): Reverse order of parameters to
11377         put DST before SRC.  Adjust callers.
11378
11379         tests: test-hash: avoid wholesale duplication
11380         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
11381         Instead, use a loop and add a single conditional.
11382
11383         tests: test-hash: allow seed selection via a command line argument
11384         * tests/test-hash.c (get_seed): New function.
11385         (main): Use it.
11386
11387 2009-06-19  Eric Blake  <ebb9@byu.net>
11388
11389         hash: avoid memory leak on allocation failure
11390         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
11391         failure.  Factor repeated algorithm...
11392         (transfer_entries): ...into new helper routine.
11393         (hash_delete): React to hash_rehash return value.
11394
11395         hash: reduce memory pressure in hash_rehash no-op case
11396         * lib/hash.c (next_prime): Avoid overflow.
11397         (hash_initialize): Factor bucket size computation...
11398         (compute_bucket_size): ...into new helper function.
11399         (hash_rehash): Use new function and open coding to reduce memory
11400         pressure, and avoid a memory leak in USE_OBSTACK code.
11401         Reported by Jim Meyering.
11402
11403 2009-06-18  Eric Blake  <ebb9@byu.net>
11404
11405         hash: make rotation more obvious
11406         * modules/hash (Depends-on): Add bitrotate and stdint.
11407         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
11408         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
11409         (SIZE_MAX): Rely on headers for definition.
11410         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
11411         (raw_hasher): Use rotr_sz.
11412         Suggested by Jim Meyering.
11413
11414         hash: fix memory leak in last patch
11415         * lib/hash.c (hash_rehash): Avoid memory leak.
11416
11417         hash: avoid no-op rehashing
11418         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
11419
11420         hash: provide default callback functions
11421         * lib/hash.c (raw_hasher, raw_comparator): New functions.
11422         (hash_initialize): Use them as defaults.
11423         * tests/test-hash.c (main): Test this.
11424
11425         hash: minor optimization
11426         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
11427         when possible.
11428         (hash_initialize): Document this promise.
11429         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
11430         * tests/test-hash.c (hash_compare_strings): Test this.
11431
11432 2009-06-18  Bruno Haible  <bruno@clisp.org>
11433
11434         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
11435         going to be replaced anyway.
11436
11437 2009-06-18  Bruno Haible  <bruno@clisp.org>
11438
11439         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
11440         in one place.
11441         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
11442         be replaced anyway.
11443
11444 2009-06-18  Eric Blake  <ebb9@byu.net>
11445
11446         hash: check for resize before insertion
11447         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
11448         threshold before insertion, so that a pathological hash_rehash
11449         that fills every bucket can still trigger another rehash.
11450
11451 2009-06-18  Jim Meyering  <meyering@redhat.com>
11452
11453         hash-tests: add a loop around the small tests
11454         * tests/test-hash.c (main): Repeat small tests with selected
11455         small initial table sizes.
11456
11457 2009-06-17  Eric Blake  <ebb9@byu.net>
11458
11459         hash: minor cleanups
11460         * lib/hash.h (hash_entry): Make opaque, by moving...
11461         * lib/hash.c (hash_entry): ...here.
11462         (hash_insert): Clarify restrictions on what can be inserted.
11463         (hash_get_next): Clarify when it is safe to remove an element
11464         during traversal.
11465         (check_tuning): Skip verification when tuning is known safe.
11466         (hash_initialize): Clarify restrictions on tuning.
11467
11468 2009-06-17  Jim Meyering  <jim@meyering.net>
11469         and Eric Blake  <ebb9@byu.net>
11470
11471         hash-tests: new module
11472         * modules/hash-tests: New file.
11473         * tests/test-hash.c: New file.
11474
11475 2009-06-17  Eric Blake  <ebb9@byu.net>
11476
11477         strstr-simple: document new module
11478         * MODULES.html.sh: Document new module.
11479
11480         strstr, strcasestr: replace on platforms with broken memchr
11481         * modules/strstr: Split into...
11482         * modules/strstr-simple: ...new module that does not care about
11483         performance, but does care about glibc bug.
11484         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
11485         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
11486         if platform memchr is broken, per Debian bug 521737.
11487         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
11488         memchr.
11489         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
11490         * doc/posix-functions/strstr.texi (strstr): Document the fix.
11491         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
11492         * modules/mountlist (Depends-on): Add strstr-simple.
11493         * modules/gen-uni-tables (Depends-on): Likewise.
11494         * modules/argz (Depends-on): Add strstr.
11495
11496 2009-06-17  Bruno Haible  <bruno@clisp.org>
11497
11498         * modules/posix_spawn-internal (Depends-on): Add errno.
11499
11500 2009-06-17  Bruno Haible  <bruno@clisp.org>
11501
11502         Define missing ESTALE on Interix 3.5.
11503         * lib/errno.in.h (ESTALE): Assign a value if missing.
11504         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
11505         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
11506         missing.
11507         * doc/posix-headers/errno.texi: Mention the Interix bug.
11508         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
11509
11510 2009-06-15  Eric Blake  <ebb9@byu.net>
11511
11512         memchr, memchr2: add valgrind exception
11513         * lib/memchr.valgrind: New file.
11514         * lib/memchr2.valgrind: New file.
11515         * modules/memchr (Files): Distribute valgrind file.
11516         * modules/memchr2 (Files): Likewise.
11517
11518         docs: memchr is no longer obsolete
11519         * MODULES.html.sh: Move memchr from obsolete to string.h section.
11520         * lib/string.in.h (memchr): Simplify logic.
11521
11522 2009-06-14  Jim Meyering  <meyering@redhat.com>
11523
11524         link-follow: fix the "checking..." message to not mention trailing slash
11525         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
11526         never considered trailing slashes.
11527
11528 2009-06-14  Bruno Haible  <bruno@clisp.org>
11529
11530         * m4/memchr.m4: Mention also the bug on IA-64.
11531         * doc/posix-functions/memchr.texi: Likewise.
11532
11533 2009-06-12  Eric Blake  <ebb9@byu.net>
11534
11535         memchr: detect broken x86_64 and alpha implementations
11536         * modules/memchr-tests (Depends-on): Move mmap detection...
11537         * modules/memchr (Depends-on): ...here.
11538         (configure.ac): Set indicator.
11539         * lib/string.in.h (memchr): Declare replacement.
11540         * modules/string (Makefile.am): Trigger replacement.
11541         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
11542         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
11543         bugs.
11544         * doc/posix-functions/memchr.texi (memchr): Document the bug.
11545         * modules/getpagesize (License): Relax license.
11546
11547 2009-06-11  Bruno Haible  <bruno@clisp.org>
11548
11549         * lib/idpriv.h: Add more references.
11550
11551 2009-06-08  Bruno Haible  <bruno@clisp.org>
11552
11553         Tests for module 'idpriv-droptemp'.
11554         * modules/idpriv-droptemp-tests: New file.
11555         * tests/test-idpriv-droptemp.sh: New file.
11556         * tests/test-idpriv-droptemp.su.sh: New file.
11557         * tests/test-idpriv-droptemp.c: New file.
11558
11559         New module 'idpriv-droptemp'.
11560         * lib/idpriv-droptemp.c: New file.
11561         * modules/idpriv-droptemp: New file.
11562
11563 2009-06-08  Bruno Haible  <bruno@clisp.org>
11564
11565         Tests for module 'idpriv-drop'.
11566         * modules/idpriv-drop-tests: New file.
11567         * tests/test-idpriv-drop.sh: New file.
11568         * tests/test-idpriv-drop.su.sh: New file.
11569         * tests/test-idpriv-drop.c: New file.
11570
11571         New module 'idpriv-drop'.
11572         * lib/idpriv.h: New file.
11573         * lib-idpriv-drop.c: New file.
11574         * m4/idpriv.m4: New file.
11575         * modules/idpriv-drop: New file.
11576
11577 2009-06-08  Bruno Haible  <bruno@clisp.org>
11578
11579         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
11580         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
11581         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
11582         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
11583         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
11584         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
11585         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
11586
11587 2009-06-08  Eric Blake  <ebb9@byu.net>
11588
11589         test-strstr: use memory fence, when possible
11590         * tests/test-strstr.c (main): Use memory fence, in order to be
11591         more likely to trigger Debian bug 521737.
11592         * modules/strstr-tests (Files): Pull in additional files.
11593
11594         memchr: no longer obsolete, for wider field testing
11595         * modules/memchr (Status, Notice): Delete, this module is no
11596         longer obsolete.
11597         * modules/vasnprintf (Depends-on): Add memchr.
11598
11599 2009-06-07  Jim Meyering  <meyering@redhat.com>
11600
11601         hash: declare some functions with the warn_unused_result attribute
11602         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
11603
11604 2009-06-07  Bruno Haible  <bruno@clisp.org>
11605
11606         * tests/test-alignof.c: Don't test int64_t if it does not exist.
11607         Reported by Eric Blake.
11608
11609 2009-06-06  Eric Blake  <ebb9@byu.net>
11610
11611         test-alignof: fix typo with long double
11612         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
11613         compiler error.
11614
11615 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
11616
11617         Escape non-texinfo { and }s.
11618         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
11619         markup error.
11620
11621 2009-06-04  Jim Meyering  <meyering@redhat.com>
11622
11623         gitlog-to-changelog: don't infloop on an empty commit log
11624         * build-aux/gitlog-to-changelog: Warn about an empty log message.
11625         Reported by Boris Petersen <transacid@centerim.org>.
11626
11627 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
11628
11629         version-etc: extend for packagers
11630         Add three new configure options, intended for packagers:
11631           --with-packager="packager name"
11632           --with-packager-version="packager-specific version"
11633           --with-packager-bug-reports="packager bug reporting"
11634         An example with coreutils:
11635           $ ./configure \
11636             --with-packager=Gentoo \
11637             --with-packager-bug-report=http://bugs.gentoo.org/ \
11638             --with-packager-version="patchset 1.6"
11639           $ ./src/ls --version | head -n2
11640           ls (GNU coreutils) 7.1-dirty
11641           Packaged by Gentoo (patchset 1.6)
11642         Note that the bug reporting info via --help doesn't show up because
11643         coreutils uses its own custom emit_bug_reporting_address() implementation
11644         in src/system.h.  If it didn't, it'd look like:
11645           $ ./src/ls --help | tail -n4
11646           Report bugs to <bug-coreutils@gnu.org>.
11647           Report Gentoo bugs to <http://bugs.gentoo.org/>.
11648           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
11649           General help using GNU software: <http://www.gnu.org/gethelp/>.
11650         * lib/version-etc.c: Print new information, if provided.
11651         * m4/version-etc.m4: New file.
11652         * modules/version-etc (Files): Add m4/version-etc.m4.
11653         (configure.ac): Add gl_VERSION_ETC.
11654
11655 2009-05-31  Bruno Haible  <bruno@clisp.org>
11656
11657         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
11658         and 'int64_t'.
11659         * modules/alignof-tests (Dependencies): Add stdint.
11660         Reported by Eric Blake.
11661
11662 2009-05-31  Bruno Haible  <bruno@clisp.org>
11663
11664         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
11665         restriction due to compiler bugs.
11666         Reported by Eric Blake.
11667
11668 2009-05-31  Simon Josefsson  <simon@josefsson.org>
11669             Bruno Haible  <bruno@clisp.org>
11670
11671         Fix test-alignof failure.
11672         * lib/alignof.h (alignof_slot): New macro.
11673         (alignof_type): New macro, with the same semantics as the previous
11674         'alignof'.
11675         (alignof): Alias to alignof_slot.
11676         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
11677         check that the results are usable as constant expressions.
11678
11679 2009-05-31  Bruno Haible  <bruno@clisp.org>
11680
11681         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
11682         * tests/test-memchr.c (main): Check that memchr does not read past the
11683         first occurrence of the byte.
11684         * tests/test-strstr.c (main): Update comment.
11685         Suggested by Eric Blake.
11686
11687 2009-05-30  Bruno Haible  <bruno@clisp.org>
11688
11689         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
11690         detail how to use dumpbin.
11691         Reported by David Byron <dbyron@dbyron.com>.
11692
11693 2009-06-02  Simon Josefsson  <simon@josefsson.org>
11694
11695         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
11696
11697 2009-06-02  Simon Josefsson  <simon@josefsson.org>
11698
11699         * m4/manywarnings.m4: Add GCC 4.4 warnings.
11700
11701 2009-05-28  Bruno Haible  <bruno@clisp.org>
11702
11703         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
11704         build-aux/ files.
11705
11706 2009-05-28  Simon Josefsson  <simon@josefsson.org>
11707
11708         * gnulib-tool (func_import): Transform license on build-aux/ files too.
11709
11710 2009-05-27  Simon Josefsson  <simon@josefsson.org>
11711
11712         * gnulib-tool (sed_transform_main_lib_file)
11713         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
11714         regexps.
11715
11716 2009-05-26  Simon Josefsson  <simon@josefsson.org>
11717
11718         * tests/test-strstr.c: Add another self-test.
11719         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
11720         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
11721
11722 2009-05-23  Bruno Haible  <bruno@clisp.org>
11723
11724         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
11725         change.
11726
11727 2009-05-21  Bruno Haible  <bruno@clisp.org>
11728
11729         Simplify use of mode_t varargs.
11730         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
11731         uses 'mode_t' or 'int'.
11732         * lib/openat.c (openat): Likewise.
11733         * lib/open-safer.c (open_safer): Likewise.
11734         * m4/mode_t.m4: New file.
11735         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
11736         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
11737         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
11738         * modules/open (Files): Add m4/mode_t.m4.
11739         * modules/openat (Files): Likewise.
11740         * modules/fcntl-safer (Files): Likewise.
11741         Suggested by Eric Blake.
11742
11743 2009-05-21  Pádraig Brady  <P@draigbrady.com>
11744
11745         * doc/glibc-functions/fallocate.texi: New file.
11746         * doc/gnulib.texi: Include it.
11747
11748 2009-05-21  Eric Blake  <ebb9@byu.net>
11749             Bruno Haible  <bruno@clisp.org>
11750
11751         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
11752         invocations.
11753         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
11754
11755 2009-05-21  Eric Blake  <ebb9@byu.net>
11756             Bruno Haible  <bruno@clisp.org>
11757
11758         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
11759         include_next. Fix of 2008-11-20 commit.
11760         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
11761         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
11762         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
11763         NEXT_MATH_H.
11764         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
11765         instead of NEXT_MATH_H.
11766
11767 2009-05-21  Bruno Haible  <bruno@clisp.org>
11768
11769         Avoid redefinition warnings for SIZE_MAX.
11770         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
11771         Reported by Simon Josefsson.
11772
11773 2009-05-21  Bruno Haible  <bruno@clisp.org>
11774
11775         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
11776         AC_CACHE_VAL.
11777
11778 2009-05-20  Bruno Haible  <bruno@clisp.org>
11779
11780         Make zeroptr.h work on mingw.
11781         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
11782         mprotect.
11783         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
11784         * modules/memchr2-tests (configure.ac): Likewise.
11785         * modules/memcmp-tests (configure.ac): Likewise.
11786         * modules/memmem-tests (configure.ac): Likewise.
11787         * modules/memrchr-tests (configure.ac): Likewise.
11788         Reported by Simon Josefsson.
11789
11790 2009-05-20  Simon Josefsson  <simon@josefsson.org>
11791
11792         * tests/test-glob.c: Include string.h for strcmp prototype.
11793
11794 2009-05-20  Simon Josefsson  <simon@josefsson.org>
11795
11796         * modules/getdelim (Depends-on): Add explicit stdint, although it
11797         was implicitly already pulled in via realloc-posix.
11798         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
11799
11800 2009-05-20  Simon Josefsson  <simon@josefsson.org>
11801
11802         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
11803         G. Christensen" <tgc@jupiterrise.com>.
11804         * m4/sys_socket_h.m4: Check for sa_family_t.
11805         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
11806         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
11807         * tests/test-sys_socket.c: Check that sa_family_t works.
11808
11809 2009-05-18  Eric Blake  <ebb9@byu.net>
11810
11811         maint.mk: allow gnulib_dir in VPATH build
11812         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
11813
11814 2009-05-15  Jim Meyering  <meyering@redhat.com>
11815
11816         maint.mk: Give gnulib_dir a default definition.
11817         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
11818         Thus, most packages no longer need to specify this variable in cfg.mk
11819
11820 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
11821
11822         rename.m4: fix typos that would make non-mingw cross-configure fail
11823         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
11824
11825 2009-05-13  Eric Blake  <ebb9@byu.net>
11826
11827         mmap-anon: avoid out-of-order autoconf expansion
11828         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
11829         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
11830         * modules/memchr-tests (Depends-on): Add extensions.
11831         * modules/memchr2-tests (Depends-on): Add extensions.
11832         * modules/memcmp-tests (Depends-on): Add extensions.
11833         * modules/memmem-tests (Depends-on): Add extensions.
11834         * modules/memrchr-tests (Depends-on): Add extensions.
11835
11836 2009-05-13  Bruno Haible  <bruno@clisp.org>
11837
11838         Make some tests ISO C 99 compliant.
11839         * tests/zerosize-ptr.h: New file.
11840         * tests/test-memchr.c: Include zerosize-ptr.h.
11841         (main): Use a zero-size object pointer instead of NULL.
11842         * tests/test-memchr2.c: Include zerosize-ptr.h.
11843         (main): Use a zero-size object pointer instead of NULL.
11844         * tests/test-memcmp.c: Include zerosize-ptr.h.
11845         (main): Use a zero-size object pointer instead of NULL.
11846         * tests/test-memmem.c: Include zerosize-ptr.h.
11847         (main): Use a zero-size object pointer instead of NULL.
11848         * tests/test-memrchr.c: Include zerosize-ptr.h.
11849         (main): Use a zero-size object pointer instead of NULL.
11850         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
11851         m4/mmap-anon.m4.
11852         (Depends-on): Add getpagesize.
11853         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11854         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
11855         m4/mmap-anon.m4.
11856         (Depends-on): Add getpagesize.
11857         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11858         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
11859         m4/mmap-anon.m4.
11860         (Depends-on): Add getpagesize.
11861         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11862         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
11863         m4/mmap-anon.m4.
11864         (Depends-on): Add getpagesize.
11865         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11866         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
11867         m4/mmap-anon.m4.
11868         (Depends-on): Add getpagesize.
11869         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11870
11871 2009-05-12  Bruno Haible  <bruno@clisp.org>
11872
11873         Tests for module 'alignof'.
11874         * modules/alignof-tests: New file.
11875         * tests/test-alignof.c: New file.
11876
11877 2009-05-12  Bruno Haible  <bruno@clisp.org>
11878
11879         Fix alignof macro.
11880         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
11881         vendor compilers that are always correct.
11882
11883 2009-05-12  Bruno Haible  <bruno@clisp.org>
11884
11885         Make the MAP_ANONYMOUS detection work on HP-UX 11.
11886         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
11887         not whether its fully works.
11888
11889 2009-05-12  Bruno Haible  <bruno@clisp.org>
11890
11891         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
11892
11893 2009-05-12  Jim Meyering  <meyering@redhat.com>
11894
11895         * top/maint.mk: Adjust backslash alignment.
11896
11897 2009-05-11  Simon Josefsson  <simon@josefsson.org>
11898
11899         * top/maint.mk: Make $(srcdir)/build-aux configurable.
11900
11901 2009-05-11  Eric Blake  <ebb9@byu.net>
11902
11903         argp: avoid undefined behavior
11904         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
11905         macros.
11906
11907 2009-05-08  Simon Josefsson  <simon@josefsson.org>
11908
11909         * tests/test-vc-list-files-git.sh: Do git config of user.email and
11910         user.name to prevent git commit from complaining.
11911
11912 2009-05-10  Bruno Haible  <bruno@clisp.org>
11913
11914         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
11915         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
11916         it rewrites every file name only once.
11917         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
11918
11919 2009-05-08  Bruno Haible  <bruno@clisp.org>
11920
11921         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
11922         instead of 'max'.
11923
11924 2009-05-08  Simon Josefsson  <simon@josefsson.org>
11925
11926         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
11927         sockaddr_storage test.
11928
11929 2009-05-07  Simon Josefsson  <simon@josefsson.org>
11930
11931         * modules/sys_socket (Makefile.am): Substitute
11932         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
11933         * m4/sys_socket_h.m4: Check for sockaddr_storage.
11934         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
11935         * tests/test-sys_socket.c: Check sockaddr_storage.
11936
11937 2009-05-08  Bruno Haible  <bruno@clisp.org>
11938
11939         New module 'alignof'.
11940         * lib/alignof.h: New file.
11941         * modules/alignof: New file.
11942
11943 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
11944             Bruno Haible  <bruno@clisp.org>
11945
11946         Fix test-file-has-acl on FreeBSD.
11947         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
11948         mask is implicitly added.
11949         * tests/test-file-has-acl.c: Include <signal.h>.
11950         (main): Terminate the test after 5 seconds.
11951         * modules/acl-tests (configure.ac): Check for alarm function.
11952
11953 2009-05-04  Bruno Haible  <bruno@clisp.org>
11954
11955         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
11956         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
11957         * modules/errno (configure.ac): Drop AC_REQUIRE.
11958         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
11959         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
11960
11961 2009-05-04  Simon Josefsson  <simon@josefsson.org>
11962
11963         * modules/glob-tests: New module.
11964         * tests/test-glob.c: Add.
11965
11966 2009-05-04  Simon Josefsson  <simon@josefsson.org>
11967
11968         * modules/fnmatch-tests: New module.
11969         * tests/test-fnmatch.c: Add.
11970
11971 2009-05-04  Eric Blake  <ebb9@byu.net>
11972
11973         maint: make the new no-submodule-changes rule VPATH-safe
11974         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
11975
11976 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
11977             Bruno Haible  <bruno@clisp.org>
11978
11979         acl: Fix infinite loop on FreeBSD.
11980         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
11981         of return value from acl_get_entry.
11982         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
11983         Likewise.
11984
11985 2009-05-03  Bruno Haible  <bruno@clisp.org>
11986
11987         * lib/acl-internal.h (acl_entries): Clarify return value.
11988         * lib/acl_entries.c (acl_entries): Likewise.
11989
11990 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
11991
11992         Bug fix in acl module.
11993         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
11994
11995 2009-05-03  Bruno Haible  <bruno@clisp.org>
11996
11997         Create gperf-generated file in the source dir, not in the build dir.
11998         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
11999         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
12000         * modules/unicase/locale-language (unicase/locale-languages.h):
12001         Likewise.
12002         * modules/unicase/special-casing (unicase/special-casing-table.h):
12003         Likewise.
12004         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
12005         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
12006         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
12007         Reported by Ralf Wildenhues.
12008
12009 2009-05-03  Bruno Haible  <bruno@clisp.org>
12010
12011         * modules/fnmatch (Description, configure.ac): Taken from
12012         fnmatch-posix.
12013         * modules/fnmatch-posix: Turn into a symbolic reference to the
12014         'fnmatch' module, and deprecate.
12015         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
12016
12017 2009-05-03  Bruno Haible  <bruno@clisp.org>
12018
12019         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
12020         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
12021         Reported by Ralf Wildenhues.
12022
12023 2009-05-04  Simon Josefsson  <simon@josefsson.org>
12024
12025         * m4/fnmatch.m4: Fix fnmatch re-define.
12026
12027 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12028
12029         priv-set: new module and tests; adapt write-any-file
12030         * lib/priv-set.c: New file.
12031         * lib/priv-set.h: New file.
12032         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
12033         * lib/write-any-file.c: Simplify by using priv-set module.
12034         * m4/priv-set.m4: New file.
12035         * modules/priv-set: New file.
12036         * modules/unlinkdir: Add dependency on priv-set module.
12037         * modules/write-any-file: Likewise.
12038
12039         Tests for module 'priv-set'.
12040         * modules/priv-set-tests: New file.
12041         * tests/test-priv-set.c: New file.
12042
12043 2009-05-03  Jim Meyering  <meyering@redhat.com>
12044             Bruno Haible  <bruno@clisp.org>
12045
12046         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
12047         use the converted UTF-8 variant of the name instead.
12048
12049 2009-05-03  Jim Meyering  <meyering@redhat.com>
12050
12051         tests: tighten some getdate tests
12052         * tests/test-getdate.c (main): Tighten tests: require equality,
12053         not just greater than.  Set TZ envvar to UTC0.
12054
12055 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
12056
12057         getdate: correctly interpret "next monday" when run on a Monday
12058         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
12059         that e.g., "next tues" (when run on a tuesday) results in a date
12060         that is one week in the future, and not today's date.
12061         I.e., add a week when the wday is the same as the current one.
12062         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
12063         and earlier by Martin Bernreuther and Jan Minář.
12064         * tests/test-getdate.c (main): Check that "next DAY" is always in
12065         the future and that "last DAY" is always in the past.
12066
12067 2009-05-02  Jim Meyering  <meyering@redhat.com>
12068
12069         build: ensure that a release build fails when a submodule is unclean
12070         * top/maint.mk (no-submodule-changes): New rule.
12071         (alpha beta major): Depend on it.
12072
12073 2009-05-02  Bruno Haible  <bruno@clisp.org>
12074
12075         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
12076         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
12077         shell variable gl_fnmatch_required to detect which variant is
12078         requested.
12079         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
12080         gl_FUNC_FNMATCH_POSIX.
12081         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
12082         exclude fnmatch-posix.
12083
12084 2009-05-02  Bruno Haible  <bruno@clisp.org>
12085
12086         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
12087         * modules/mbsrtowcs (License): Change to LGPLv2+.
12088         * modules/strnlen1 (License): Likewise.
12089         Reported by Simon Josefsson.
12090
12091 2009-05-02  Bruno Haible  <bruno@clisp.org>
12092
12093         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
12094         "cross".
12095         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
12096         gnulib-tool was called with option --source-base=lib.
12097
12098 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12099
12100         Use automake *-local hooks without commands, for extensibility.
12101         * modules/localcharset (Makefile.am): Rename install-exec-local
12102         rule to install-exec-localcharset, and make it a prerequisite of
12103         install-exec-local.  Likewise, rename the uninstall-local rule to
12104         uninstall-localcharset, and make it a prerequisite of the former.
12105
12106 2009-05-01  Bruno Haible  <bruno@clisp.org>
12107
12108         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
12109         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
12110         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
12111         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
12112         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
12113         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
12114         m4/locale-zh.m4, m4/codeset.m4.
12115
12116         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
12117         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
12118         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
12119         m4/locale-zh.m4.
12120
12121         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
12122         REPLACE_WCRTOMB if mbstate_t must be replaced.
12123         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
12124         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
12125
12126 2009-05-01  Bruno Haible  <bruno@clisp.org>
12127
12128         Avoid compiler warnings when redefining macros defined by <libintl.h>.
12129         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
12130         dngettext, dcngettext, textdomain, bindtextdomain,
12131         bind_textdomain_codeset): Undefine before redefining.
12132
12133 2009-04-30  Bruno Haible  <bruno@clisp.org>
12134
12135         Fix bug introduced on 2009-04-25.
12136         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
12137         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
12138         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
12139         is defined.
12140         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
12141         is defined.
12142         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
12143         is defined.
12144         Reported by Elbert_Pol <elbert.pol@gmail.com>.
12145
12146 2009-04-28  Bruno Haible  <bruno@clisp.org>
12147
12148         Comment tweaks.
12149         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
12150         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
12151         * lib/unicase.h (u*_casexfrm): Likewise.
12152         Reported by Paolo Bonzini.
12153
12154 2009-04-28  Bruno Haible  <bruno@clisp.org>
12155
12156         Fix a compilation error.
12157         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
12158         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
12159         Reported by Jim Meyering.
12160
12161 2009-04-27  Bruno Haible  <bruno@clisp.org>
12162
12163         New module 'libunistring'.
12164         * modules/libunistring: New file.
12165         * m4/libunistring.m4: New file.
12166         * MODULES.html.sh (Unicode string functions): Add it.
12167
12168 2009-04-27  Eric Blake  <ebb9@byu.net>
12169
12170         maint.mk: allow package-specific header to provide <config.h>
12171         * top/maint.mk (sc_require_config_h): New variable.
12172         (sc_require_config_h, sc_require_config_h_first): Use it.
12173
12174 2009-04-27  Simon Josefsson  <simon@josefsson.org>
12175
12176         * top/maint.mk (sc_avoid_if_before_free): Except
12177         useless-if-before-free script.
12178
12179 2009-04-27  Eric Blake  <ebb9@byu.net>
12180
12181         maintainer-makefile: depend on all required helper scripts
12182         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
12183         useless-if-before-free.
12184         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
12185         version, rather than assuming gnulib checkout is available.
12186         Reported by Simen Josefsson.
12187
12188 2009-04-26  Bruno Haible  <bruno@clisp.org>
12189
12190         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
12191         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
12192         "../" or "..".
12193
12194 2009-04-26  Bruno Haible  <bruno@clisp.org>
12195
12196         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
12197         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
12198         AC_LIB_HAVE_LINKFLAGS.
12199
12200 2009-04-26  Bruno Haible  <bruno@clisp.org>
12201
12202         Simplify calling convention of u*_conv_from_encoding.
12203         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
12204         u32_conv_from_encoding): Expect a resultbuf argument and return the
12205         result directly as a pointer.
12206         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
12207         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
12208         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
12209         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
12210         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
12211         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
12212         Update.
12213         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
12214         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
12215         * lib/vasnprintf.c (VASNPRINTF): Update.
12216         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
12217         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
12218         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
12219         * NEWS: Mention the change.
12220
12221 2009-04-26  Bruno Haible  <bruno@clisp.org>
12222
12223         Simplify calling convention of u*_conv_to_encoding.
12224         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
12225         u32_conv_to_encoding): Expect a resultbuf argument and return the
12226         result directly as a pointer.
12227         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12228         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
12229         freeing scaled_offsets if mem_iconveha failed.
12230         * lib/unicase/u-casexfrm.h (FUNC): Update.
12231         * lib/uninorm/u-normxfrm.h (FUNC): Update.
12232         * lib/vasnprintf.c (VASNPRINTF): Update.
12233         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
12234         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
12235         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
12236         * NEWS: Mention the change.
12237
12238 2009-04-26  Bruno Haible  <bruno@clisp.org>
12239
12240         Avoid test failures on AIX and OSF/1.
12241         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
12242         malloc(0).
12243         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12244         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
12245         Likewise.
12246         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
12247         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
12248         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
12249         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
12250         * doc/posix-functions/malloc.texi: Document the portability problem
12251         related to malloc(0).
12252
12253 2009-04-26  Bruno Haible  <bruno@clisp.org>
12254
12255         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
12256         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
12257         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
12258
12259 2009-04-25  Bruno Haible  <bruno@clisp.org>
12260
12261         Avoid link error when creating a namespace clean library.
12262         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
12263         as macro with arguments if already defined as an alias.
12264         * lib/signbitf.c (gl_signbitf): Don't undefine.
12265         * lib/signbitd.c (gl_signbitd): Don't undefine.
12266         * lib/signbitl.c (gl_signbitl): Don't undefine.
12267
12268 2009-04-25  Jim Meyering  <meyering@redhat.com>
12269
12270         vc-list-files: fix another quoting bug
12271         * build-aux/vc-list-files: Avoid sed backslash expansion
12272         of pathological directory names.
12273
12274 2009-04-25  Eric Blake  <ebb9@byu.net>
12275
12276         vc-list-files: fix shell quoting error
12277         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
12278         timestamp.
12279
12280 2009-04-25  Jim Meyering  <meyering@redhat.com>
12281
12282         vc-list-files: restore lost functionality with subdir argument
12283         * build-aux/vc-list-files: When given a non-"." sub-directory
12284         argument, substitute the $dir/ prefix back onto each resulting name.
12285         Otherwise, coreutils' root_tests check would fail.
12286
12287 2009-04-24  Eric Blake  <ebb9@byu.net>
12288
12289         vc-list-files: ignore git symlinks
12290         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
12291         than ls-files, to ignore git symlinks.
12292
12293         maint.mk: import improvements from m4
12294         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
12295         (move_if_change): Delete unused macro.
12296         (news-date-check, vc-diff-check): Support VPATH builds.
12297         (announcement): Likewise.  Split --bootstrap-tools list...
12298         (boostrap-tools): ...into separate list, which can be overridden
12299         in cfg.mk.
12300         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
12301         requiring dependency on useless-if-before-free module.
12302         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
12303         Support VPATH builds.
12304
12305 2009-04-24  Jim Meyering  <meyering@redhat.com>
12306
12307         maint.mk: remove coreutils-specific rules and variables
12308         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
12309         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
12310         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
12311
12312         maint.mk: remove obsolete rule
12313         * top/maint.mk (rel-check): Remove rule.
12314         (WGET, WGETFLAGS): Remove now-unused variables.
12315
12316 2009-04-24  Simon Josefsson  <simon@josefsson.org>
12317
12318         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
12319         consistency.
12320
12321         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
12322         '$(PATH_SEPARATOR)' instead of ':'.
12323
12324 2009-04-24  Simon Josefsson  <simon@josefsson.org>
12325
12326         * lib/getopt1.c (main): Use 'const' for static array.
12327
12328 2009-04-24  Simon Josefsson  <simon@josefsson.org>
12329
12330         * top/maint.mk: Sync with coreutils.
12331         * NEWS: Explain incompatibilities.
12332
12333 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12334             Bruno Haible  <bruno@clisp.org>
12335
12336         Fix cross-compilation results.
12337         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
12338         statement, as third argument of AC_TRY_RUN.
12339         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12340         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
12341         Likewise.
12342         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12343         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
12344         Likewise.
12345         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12346         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
12347         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
12348
12349 2009-04-20  Bruno Haible  <bruno@clisp.org>
12350
12351         Avoid test failure on mingw.
12352         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
12353
12354 2009-04-20  Bruno Haible  <bruno@clisp.org>
12355
12356         Avoid compilation error on mingw.
12357         * modules/localename-tests (Depends-on): Add locale.
12358
12359 2009-04-19  Bruno Haible  <bruno@clisp.org>
12360
12361         Support for building a shared library on Windows platforms.
12362         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
12363         (main): Test the presence of UNINORM_NFC here.
12364         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
12365         (main): Test the presence of UNINORM_NFD here.
12366         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
12367         (main): Test the presence of UNINORM_NFKC here.
12368         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
12369         (main): Test the presence of UNINORM_NFKD here.
12370
12371 2009-04-19  Bruno Haible  <bruno@clisp.org>
12372
12373         Avoid a compiler warning.
12374         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
12375         Change type of variable 'sequence'.
12376
12377 2009-04-19  Bruno Haible  <bruno@clisp.org>
12378
12379         * modules/configmake (Makefile.am): When the contents of configmake.h
12380         does not change, arrange to preserve its modification time.
12381
12382 2009-04-17  Simon Josefsson  <simon@josefsson.org>
12383
12384         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
12385         gettext domain.
12386
12387 2009-04-16  Jim Meyering  <meyering@redhat.com>
12388
12389         useless-if-before-free: improve conversion code
12390         * build-aux/useless-if-before-free: Adjust code-in-comment to match
12391         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
12392
12393 2009-04-14  Bruno Haible  <bruno@clisp.org>
12394
12395         * modules/fcntl (Depends-on): Add extensions.
12396         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
12397
12398 2009-04-12  Ben Pfaff  <blp@gnu.org>
12399
12400         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
12401         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
12402
12403 2009-03-20  Ben Pfaff  <blp@gnu.org>
12404
12405         Make rename replace existing destinations on Windows.
12406         * m4/rename.m4: Add test for Mingw.
12407         * lib/rename.c: Add rename replacement that uses MoveFileEx with
12408         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
12409         * doc/posix-functions/rename.texi: Document.
12410
12411 2009-04-10  Bruno Haible  <bruno@clisp.org>
12412
12413         New include file "iconveh.h".
12414         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
12415         * lib/striconveh.h: Include it.
12416         (enum iconv_ilseq_handler): Remove definition.
12417         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
12418         striconveh.h.
12419         * lib/striconveha.c: Include striconveh.h.
12420         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
12421         * modules/striconveh (Files): Add lib/iconveh.h.
12422         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
12423         lib/striconveh.h.
12424
12425 2009-04-10  Bruno Haible  <bruno@clisp.org>
12426
12427         * lib/uniconv.h: Update comment.
12428
12429 2009-04-10  Bruno Haible  <bruno@clisp.org>
12430
12431         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
12432         always.
12433         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
12434         * lib/unistr/u16-mbtouc-aux.c: Likewise.
12435         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
12436         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
12437         "unistring-notinline.h", so that the function gets defined always.
12438         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
12439         * lib/unistr/u8-uctomb.c: Likewise.
12440         * lib/unistr/u16-mbtouc.c: Likewise.
12441         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
12442         * lib/unistr/u16-uctomb.c: Likewise.
12443         * lib/unistr/u32-mbtouc.c: Likewise.
12444         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
12445         * lib/unistr/u32-uctomb.c: Likewise.
12446
12447 2009-04-10  Bruno Haible  <bruno@clisp.org>
12448
12449         Mark 'utime' obsolete.
12450         * modules/utime (Status, Notice): New sections.
12451         Suggested by Jim Meyering.
12452
12453         Fix cross-compile guess for utime test.
12454         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
12455         autoconf.
12456         * doc/posix-functions/utime.texi: Give more precisions.
12457         Reported by Jan <ipif@ymail.com>.
12458
12459 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
12460
12461         filevercmp: correct today's change
12462         * lib/filevercmp.c: Also handle coreutils' test inputs.
12463         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
12464
12465         Fix regression in 'filevercmp' module. Thanks Sven Joachim
12466         for reporting it.
12467         * lib/filevercmp.c: Special handle for "", "." and "..".
12468         * tests/test-filevercmp.c: Enlarge the set suite.
12469
12470 2009-04-07  Jim Meyering  <meyering@redhat.com>
12471
12472         useless-if-before-free: show how to remove braced useless free, too
12473         * build-aux/useless-if-before-free: still only in a comment, though.
12474
12475 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
12476
12477         maint.mk: import changes to syntax-check macros from coreutils
12478         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
12479         Use them in the relevant macros.
12480
12481 2009-04-06  Bruno Haible  <bruno@clisp.org>
12482
12483         Fix unportable use of bit-fields.
12484         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
12485         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
12486         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
12487
12488 2009-04-06  Bruno Haible  <bruno@clisp.org>
12489
12490         Avoid test failures on AIX and OSF/1.
12491         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
12492         that malloc(0) = NULL.
12493         * tests/unicase/test-u8-tolower.c (check): Likewise.
12494         * tests/unicase/test-u8-totitle.c (check): Likewise.
12495         * tests/unicase/test-u8-toupper.c (check): Likewise.
12496         * tests/unicase/test-u16-casefold.c (check): Likewise.
12497         * tests/unicase/test-u16-tolower.c (check): Likewise.
12498         * tests/unicase/test-u16-totitle.c (check): Likewise.
12499         * tests/unicase/test-u16-toupper.c (check): Likewise.
12500         * tests/unicase/test-u32-casefold.c (check): Likewise.
12501         * tests/unicase/test-u32-tolower.c (check): Likewise.
12502         * tests/unicase/test-u32-totitle.c (check): Likewise.
12503         * tests/unicase/test-u32-toupper.c (check): Likewise.
12504         * tests/uninorm/test-u8-nfc.c (check): Likewise.
12505         * tests/uninorm/test-u8-nfd.c (check): Likewise.
12506         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
12507         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
12508         * tests/uninorm/test-u16-nfc.c (check): Likewise.
12509         * tests/uninorm/test-u16-nfd.c (check): Likewise.
12510         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
12511         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
12512         * tests/uninorm/test-u32-nfc.c (check): Likewise.
12513         * tests/uninorm/test-u32-nfd.c (check): Likewise.
12514         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
12515         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
12516
12517 2009-04-05  Bruno Haible  <bruno@clisp.org>
12518
12519         Work around an autoconf limitation.
12520         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
12521         comment line if it would be longer than 3 KB.
12522
12523 2009-04-05  Bruno Haible  <bruno@clisp.org>
12524
12525         Avoid test failure with libiconv-1.13.
12526         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
12527         of the expected test results.
12528
12529 2009-04-05  Bruno Haible  <bruno@clisp.org>
12530
12531         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
12532         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
12533         that it should be installed.
12534
12535 2009-04-05  Bruno Haible  <bruno@clisp.org>
12536
12537         * gnulib-tool: New option --copy-file.
12538         (func_usage): Document it.
12539         (func_dest_tmpfilename): Moved out of func_import.
12540         (func_add_file, func_update_file): New functions, extracted from
12541         func_import.
12542         (func_import): Update.
12543
12544 2009-04-05  Karl Berry  <karl@gnu.org>
12545
12546         * README: prominently mention gnulib-tool.
12547         Rearrange sections so getting the code is near the top.
12548
12549 2009-04-05  Bruno Haible  <bruno@clisp.org>
12550
12551         * lib/unicase.h: Mention u*_cmp2.
12552         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
12553         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
12554         * lib/unicase/ulc-casecmp.c: Likewise.
12555         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
12556         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
12557         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
12558         unistr/u8-cmp.
12559         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
12560         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
12561         unistr/u16-cmp.
12562         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
12563         unistr/u32-cmp.
12564
12565         * lib/uninorm.h: Mention u*_cmp2.
12566         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
12567         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
12568         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
12569         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
12570         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
12571         unistr/u8-cmp.
12572         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
12573         unistr/u16-cmp.
12574         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
12575         unistr/u32-cmp.
12576
12577         New module 'unistr/u32-cmp2'.
12578         * lib/unistr/u32-cmp2.c: New file.
12579         * modules/unistr/u32-cmp2: New file.
12580
12581         New module 'unistr/u16-cmp2'.
12582         * lib/unistr/u16-cmp2.c: New file.
12583         * modules/unistr/u16-cmp2: New file.
12584
12585         New module 'unistr/u8-cmp2'.
12586         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
12587         * lib/unistr/u8-cmp2.c: New file.
12588         * lib/unistr/u-cmp2.h: New file.
12589         * modules/unistr/u8-cmp2: New file.
12590
12591 2009-04-05  Bruno Haible  <bruno@clisp.org>
12592
12593         * lib/unictype.h (uc_property_is_valid): New macro.
12594         * tests/unictype/test-pr_byname.c (main): Use it.
12595
12596         * lib/unistr.h: Doc fixes.
12597         * lib/uniconv.h: Doc fixes.
12598         * lib/unictype.h: Doc fixes.
12599
12600 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
12601
12602         Port coreutils 7.2 to Solaris 8.
12603
12604         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
12605         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
12606         for Solaris 8.  This is a bit of a hack, as it means it's the
12607         caller's responsibility to add -lnsl if needed, but most likely it
12608         won't be needed since only getaddrinfo uses this and getaddrinfo
12609         isn't needed on Solaris 8.
12610
12611         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
12612         problem to Solaris 8 encountered with coreutils 7.2, which
12613         resulted in a message "fnmatch.c:292: warning: passing argument 4
12614         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
12615         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
12616
12617 2009-04-03  Simon Josefsson  <simon@josefsson.org>
12618
12619         * m4/ld-version-script.m4: Add FIXME comment.
12620
12621 2009-04-02  Simon Josefsson  <simon@josefsson.org>
12622
12623         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
12624         SOVERSION variable.
12625
12626 2009-04-02  Bruno Haible  <bruno@clisp.org>
12627
12628         * Makefile (info, html, dvi, pdf): Combine the rules.
12629         Suggested by Jim Meyering.
12630
12631 2009-04-01  Bruno Haible  <bruno@clisp.org>
12632
12633         * Makefile (info, html, dvi, pdf): New targets.
12634         Reported by Reuben Thomas <rrt@sc3d.org>.
12635
12636 2009-04-01  Bruno Haible  <bruno@clisp.org>
12637
12638         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
12639         can be put into PATH.
12640         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
12641
12642 2009-04-01  Bruno Haible  <bruno@clisp.org>
12643
12644         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
12645
12646 2009-04-01  Bruno Haible  <bruno@clisp.org>
12647
12648         Rename module 'visibility'.
12649         * modules/lib-symbol-visibility: Renamed from modules/visibility.
12650         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
12651         * doc/gnulib.texi: Update.
12652         * MODULES.html.sh (Misc): Update.
12653         * NEWS: Mention the change.
12654
12655 2009-04-01  Simon Josefsson  <simon@josefsson.org>
12656
12657         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
12658         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
12659         Eric Blake <ebb9@byu.net> for review.
12660         * MODULES.html.sh: Add lib-msvc-compat.
12661         * doc/gnulib.texi: Link to new section.
12662         * m4/ld-output-def.m4: New file.
12663         * doc/ld-output-def.texi: New file.
12664
12665 2009-04-01  Simon Josefsson  <simon@josefsson.org>
12666
12667         Rename ld-version-script to lib-symbol-versions.  Suggested by
12668         Bruno Haible <bruno@clisp.org>.
12669         * modules/ld-version-script: Renamed to lib-symbol-versions.
12670         * doc/ld-version-script.texi: Fix module name.
12671         * MODULES.html.sh: Add lib-symbol-versions.
12672
12673 2009-03-31  Simon Josefsson  <simon@josefsson.org>
12674
12675         * modules/u64-tests: New file.
12676         * tests/test-u64.c: New file.
12677
12678 2009-03-04  Simon Josefsson  <simon@josefsson.org>
12679
12680         * MODULES.html.sh: Mention u64.
12681         * modules/u64: New module.
12682         * modules/crypto/sha512: Depend on u64 module instead of providing
12683         u64.h.
12684
12685 2009-03-27  Eric Blake  <ebb9@byu.net>
12686
12687         test-strerror: make debugging EAI_SYSTEM easier
12688         * modules/getaddrinfo-tests (Depends-on): Add strerror.
12689         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
12690         failure was EAI_SYSTEM.
12691
12692 2009-03-25  Bruno Haible  <bruno@clisp.org>
12693
12694         Fix a problem with --enable-relocatable on Solaris 7.
12695         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
12696         since 2008-02-24.
12697
12698 2009-03-25  Eric Blake  <ebb9@byu.net>
12699
12700         test-sockets: avoid gcc warning
12701         * tests/test-sockets.c (main): Silence compiler warning.
12702
12703 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
12704
12705         New modules nproc, pthread, contributed by Glen Lenker.
12706
12707         * MODULES.html.sh: Add pthread, nproc.
12708         * lib/nproc.c: New file.
12709         * lib/nproc.h: New file.
12710         * lib/pthread.in.h: New file.
12711         * m4/pthread.m4: New file.
12712         * modules/nproc: New file.
12713         * modules/pthread: New file.
12714
12715 2009-03-24  Simon Josefsson  <simon@josefsson.org>
12716
12717         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
12718         New variable.
12719
12720 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
12721
12722         filevercmp: handle simple~ and numbered.~3~ backup suffixes
12723         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
12724         * tests/test-filevercmp.c: Add tests for backup suffixes.
12725
12726 2009-03-24  Simon Josefsson  <simon@josefsson.org>
12727
12728         * modules/stdlib (Depends-on): Add stdint, needed when defining
12729         struct random_data on, for example, HP-UX 10.20.  Reported by
12730         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12731
12732 2009-03-24  Simon Josefsson  <simon@josefsson.org>
12733
12734         * lib/readline.c (readline): Call fflush on stdout after printing
12735         prompt.
12736
12737 2009-03-20  Bruno Haible  <bruno@clisp.org>
12738
12739         Remove dependency from 'close' module to -lws2_32 on native Windows.
12740         * lib/close-hook.h: New file.
12741         * lib/close-hook.c: New file.
12742         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
12743         w32sock.h.
12744         (_gl_close_fd_maybe_socket): Remove function.
12745         (rpl_close): Invoke execute_all_close_hooks instead of
12746         _gl_close_fd_maybe_socket.
12747         * lib/sockets.c: Include close-hook.h, w32sock.h.
12748         (close_fd_maybe_socket): New function, essentially from lib/close.c.
12749         (close_sockets_hook): New variable.
12750         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
12751         (gl_sockets_cleanup): Unregister it.
12752         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
12753         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
12754         * modules/close-hook: New file.
12755         * modules/close (Files): Remove lib/w32sock.h.
12756         (Depends-on): Add close-hook.
12757         (Link): Remove section.
12758         * modules/sockets (Files): Add lib/w32sock.h.
12759         (Depends-on): Add close-hook.
12760         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
12761         invocation.
12762         * NEWS: Mention that LIB_CLOSE is gone.
12763
12764 2009-03-23  Eric Blake  <ebb9@byu.net>
12765
12766         signal-tests: test previous patch
12767         * tests/test-signal.c: New file.
12768         * modules/signal-tests: Likewise.
12769
12770         signal.h: always support 'volatile sig_atomic_t'
12771         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
12772         (gl_SIGNAL_H_DEFAULTS): Add a default.
12773         * modules/signal (Makefile.am): Substitute if needed.
12774         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
12775         users can blindly add volatile.
12776         * doc/posix-headers/signal.texi (signal.h): Document it.
12777         Reported by Matthew Woehlke.
12778
12779 2009-03-23  Jim Meyering  <meyering@redhat.com>
12780
12781         pathmax: PATH_MAX: use pathconf only when available
12782         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
12783         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
12784         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
12785         This avoids a link failure in a PSP cross-compilation environment
12786         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
12787
12788         * lib/vasnprintf.c (divide): Fix typo in comment.
12789
12790 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12791
12792         * gnulib-tool (func_filter_filelist): Fix comment.
12793
12794 2009-03-20  Bruno Haible  <bruno@clisp.org>
12795
12796         Make sockets.h self-contained.
12797         * lib/sockets.c: Include sockets.h first.
12798         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
12799
12800 2009-03-19  Eric Blake  <ebb9@byu.net>
12801
12802         doc: mention more functions added in cygwin 1.7.0
12803         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
12804         addition.
12805         * doc/posix-functions/log2f.texi: Likewise.
12806
12807 2009-03-19  Jim Meyering  <meyering@redhat.com>
12808
12809         fsusage: avoid syntax error due to statement-before-declaration
12810         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
12811         after all declarations.  Reported by Matthew Woehlke in
12812         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
12813
12814 2009-03-18  Eric Blake  <ebb9@byu.net>
12815
12816         build-aux/compile: sync from automake
12817         * build-aux/compile: New file, from automake.
12818         * config/srclist.txt: Mention build-aux/compile.
12819
12820 2009-03-17  Bruno Haible  <bruno@clisp.org>
12821
12822         * lib/git-merge-changelog.c: Fix typo in comment.
12823         Reported by Reuben Thomas <rrt@sc3d.org>.
12824
12825 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
12826
12827         * m4/regex.m4: update and improve help for
12828         --without-included-regex.
12829
12830 2009-03-17  Simon Josefsson  <simon@josefsson.org>
12831
12832         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
12833         failure on missing include files.
12834
12835 2009-03-17  Eric Blake  <ebb9@byu.net>
12836
12837         doc: mention more functions added in cygwin 1.7.0
12838         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
12839         addition.
12840         * doc/posix-functions/fwscanf.texi: Likewise.
12841         * doc/posix-functions/swprintf.texi: Likewise.
12842         * doc/posix-functions/swscanf.texi: Likewise.
12843         * doc/posix-functions/vfwprintf.texi: Likewise.
12844         * doc/posix-functions/vfwscanf.texi: Likewise.
12845         * doc/posix-functions/vswprintf.texi: Likewise.
12846         * doc/posix-functions/vswscanf.texi: Likewise.
12847         * doc/posix-functions/vwprintf.texi: Likewise.
12848         * doc/posix-functions/vwscanf.texi: Likewise.
12849         * doc/posix-functions/wcscasecmp.texi: Likewise.
12850         * doc/posix-functions/wcsdup.texi: Likewise.
12851         * doc/posix-functions/wcsftime.texi: Likewise.
12852         * doc/posix-functions/wcsncasecmp.texi: Likewise.
12853         * doc/posix-functions/wprintf.texi: Likewise.
12854         * doc/posix-functions/wscanf.texi: Likewise.
12855         * doc/glibc-functions/gethostbyname2.texi: Likewise.
12856
12857 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12858
12859         maint.mk: really add $(AM_MAKEFLAGS)
12860         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
12861         was inadvertently omitted in the last commit.
12862         Spotted by Bruno Haible.
12863
12864         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
12865         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
12866         $(AM_MAKEFLAGS)' rather than plain `make'.
12867
12868         gnulib-tool: execute $MAKE not make
12869         * gnulib-tool: Default $MAKE to 'make'.
12870         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
12871         than make.  Initialize $MAKE in the do-autobuild script.
12872
12873         gnulib-tool: use $MAKE not make in generated files
12874         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
12875         make, in generated files.  Initialize $MAKE in the do-autobuild
12876         script.
12877
12878         * top/GNUmakefile (_have-git-version-gen): Fix typo.
12879
12880         GNUmakefile: disable parallelism only for multiple, recursive targets
12881         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
12882         additions in the Makefile.
12883         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
12884         by Automake.
12885         (.NOTPARALLEL): Only disable parallel builds if multiple targets
12886         are listed on the command line and at least one of them is
12887         listed in $(ALL_RECURSIVE_TARGETS).
12888
12889 2009-03-14  Bruno Haible  <bruno@clisp.org>
12890
12891         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
12892         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
12893         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
12894         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
12895         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
12896         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
12897         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
12898         unistr/u8-uctomb.
12899         * modules/unistr/u8-strchr (Depends-on): Likewise.
12900         * modules/unistr/u8-strrchr (Depends-on): Likewise.
12901         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
12902         unistr/u16-uctomb.
12903         * modules/unistr/u16-strchr (Depends-on): Likewise.
12904         * modules/unistr/u16-strrchr (Depends-on): Likewise.
12905
12906 2009-03-12  Bruno Haible  <bruno@clisp.org>
12907
12908         Work around select() bug on Interix 3.5.
12909         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
12910         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
12911         * m4/select.m4: New file.
12912         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
12913         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
12914         * modules/select (Files): Add m4/select.m4.
12915         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
12916         * modules/nanosleep (Depends-on): Add select.
12917         * modules/poll (Depends-on): Likewise.
12918         * doc/posix-functions/select.texi: Mention the Interix bug.
12919         Reported by Markus Duft <mduft@gentoo.org>.
12920
12921         * lib/select.c: Renamed from lib/winsock-select.c.
12922         * modules/select (Files): Add lib/select.c, remove
12923         lib/winsock-select.c.
12924         (configure.ac): Update.
12925
12926 2009-03-12  Jim Meyering  <meyering@redhat.com>
12927
12928         avoid gcc warnings about unused macro definitions
12929         * lib/readtokens.c (STREQ): Remove unused definition.
12930         * lib/xmalloc.c (SIZE_MAX): Likewise.
12931         * lib/openat-die.c (N_): Likewise.
12932         * lib/mountlist.c (SIZE_MAX): Remove definition.
12933         Instead, include <stdint.h>.
12934         * lib/readutmp.c: Likewise.
12935         * modules/readutmp (Depends-on): Add stdint.
12936         * modules/mountlist (Depends-on): Add stdint.
12937         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
12938
12939 2009-03-10  Bruno Haible  <bruno@clisp.org>
12940
12941         Tests for module 'mbmemcasecoll'.
12942         * modules/mbmemcasecoll-tests: New file.
12943         * tests/test-mbmemcasecoll1.sh: New file.
12944         * tests/test-mbmemcasecoll2.sh: New file.
12945         * tests/test-mbmemcasecoll3.sh: New file.
12946         * tests/test-mbmemcasecoll.c: New file.
12947
12948         New module 'mbmemcasecoll'.
12949         * lib/mbmemcasecoll.h: New file.
12950         * lib/mbmemcasecoll.c: New file.
12951         * modules/mbmemcasecoll: New file.
12952
12953         * tests/test-mbmemcasecmp.h: New file, extracted from
12954         tests/test-mbmemcasecmp.c.
12955         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
12956         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
12957         (main): Update.
12958         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
12959
12960 2009-03-09  Bruno Haible  <bruno@clisp.org>
12961
12962         Tests for module 'mbmemcasecmp'.
12963         * modules/mbmemcasecmp-tests: New file.
12964         * tests/test-mbmemcasecmp1.sh: New file.
12965         * tests/test-mbmemcasecmp2.sh: New file.
12966         * tests/test-mbmemcasecmp3.sh: New file.
12967         * tests/test-mbmemcasecmp.c: New file.
12968
12969         New module 'mbmemcasecmp'.
12970         * lib/mbmemcasecmp.h: New file.
12971         * lib/mbmemcasecmp.c: New file.
12972         * modules/mbmemcasecmp: New file.
12973
12974 2009-03-09  Bruno Haible  <bruno@clisp.org>
12975
12976         Tests for module 'unicase/ulc-casecoll'.
12977         * modules/unicase/ulc-casecoll-tests: New file.
12978         * tests/unicase/test-ulc-casecoll1.sh: New file.
12979         * tests/unicase/test-ulc-casecoll2.sh: New file.
12980         * tests/unicase/test-ulc-casecoll.c: New file.
12981
12982         New module 'unicase/ulc-casecoll'.
12983         * lib/unicase.h (ulc_casecoll): New declaration.
12984         * lib/unicase/ulc-casecoll.c: New file.
12985         * modules/unicase/ulc-casecoll: New file.
12986
12987         New module 'unicase/ulc-casexfrm'.
12988         * lib/unicase.h (ulc_casexfrm): New declaration.
12989         * lib/unicase/ulc-casexfrm.c: New file.
12990         * modules/unicase/ulc-casexfrm: New file.
12991
12992 2009-03-09  Bruno Haible  <bruno@clisp.org>
12993
12994         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
12995         invocations.
12996
12997         * m4/mbscasecmp.m4: Remove file.
12998         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
12999         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
13000
13001         * m4/mbscasestr.m4: Remove file.
13002         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
13003         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
13004
13005         * m4/mbschr.m4: Remove file.
13006         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
13007         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
13008
13009         * m4/mbscspn.m4: Remove file.
13010         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
13011         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
13012
13013         * m4/mbslen.m4: Remove file.
13014         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
13015         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
13016
13017         * m4/mbsncasecmp.m4: Remove file.
13018         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
13019         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
13020
13021         * m4/mbsnlen.m4: Remove file.
13022         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
13023         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
13024
13025         * m4/mbspbrk.m4: Remove file.
13026         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
13027         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
13028
13029         * m4/mbspcasecmp.m4: Remove file.
13030         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
13031         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
13032
13033         * m4/mbsrchr.m4: Remove file.
13034         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
13035         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
13036
13037         * m4/mbssep.m4: Remove file.
13038         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
13039         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
13040
13041         * m4/mbsspn.m4: Remove file.
13042         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
13043         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
13044
13045         * m4/mbsstr.m4: Remove file.
13046         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
13047         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
13048
13049         * m4/mbstok_r.m4: Remove file.
13050         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
13051         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
13052
13053         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
13054
13055         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
13056         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
13057
13058         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
13059
13060 2009-03-08  Bruno Haible  <bruno@clisp.org>
13061
13062         Tests for module 'unicase/ulc-casecmp'.
13063         * modules/unicase/ulc-casecmp-tests: New file.
13064         * tests/unicase/test-ulc-casecmp1.sh: New file.
13065         * tests/unicase/test-ulc-casecmp2.sh: New file.
13066         * tests/unicase/test-ulc-casecmp.c: New file.
13067
13068         New module 'unicase/ulc-casecmp'.
13069         * lib/unicase.h (ulc_casecmp): New declaration.
13070         * lib/unicase/ulc-casecmp.c: New file.
13071         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
13072         'const SRC_UNIT *'.
13073         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
13074         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
13075         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
13076         * modules/unicase/ulc-casecmp: New file.
13077
13078         Tests for module 'unicase/u32-is-cased'.
13079         * modules/unicase/u32-is-cased-tests: New file.
13080         * tests/unicase/test-u32-is-cased.c: New file.
13081
13082         Tests for module 'unicase/u16-is-cased'.
13083         * modules/unicase/u16-is-cased-tests: New file.
13084         * tests/unicase/test-u16-is-cased.c: New file.
13085
13086         Tests for module 'unicase/u8-is-cased'.
13087         * modules/unicase/u8-is-cased-tests: New file.
13088         * tests/unicase/test-u8-is-cased.c: New file.
13089         * tests/unicase/test-is-cased.h: New file.
13090
13091         New module 'unicase/u32-is-cased'.
13092         * lib/unicase/u32-is-cased.c: New file.
13093         * modules/unicase/u32-is-cased: New file.
13094
13095         New module 'unicase/u16-is-cased'.
13096         * lib/unicase/u16-is-cased.c: New file.
13097         * modules/unicase/u16-is-cased: New file.
13098
13099         New module 'unicase/u8-is-cased'.
13100         * lib/unicase/u8-is-cased.c: New file.
13101         * lib/unicase/u-is-cased.h: New file.
13102         * modules/unicase/u8-is-cased: New file.
13103
13104         Tests for module 'unicase/u32-is-casefolded'.
13105         * modules/unicase/u32-is-casefolded-tests: New file.
13106         * tests/unicase/test-u32-is-casefolded.c: New file.
13107
13108         Tests for module 'unicase/u16-is-casefolded'.
13109         * modules/unicase/u16-is-casefolded-tests: New file.
13110         * tests/unicase/test-u16-is-casefolded.c: New file.
13111
13112         Tests for module 'unicase/u8-is-casefolded'.
13113         * modules/unicase/u8-is-casefolded-tests: New file.
13114         * tests/unicase/test-u8-is-casefolded.c: New file.
13115         * tests/unicase/test-is-casefolded.h: New file.
13116
13117         New module 'unicase/u32-is-casefolded'.
13118         * lib/unicase/u32-is-casefolded.c: New file.
13119         * modules/unicase/u32-is-casefolded: New file.
13120
13121         New module 'unicase/u16-is-casefolded'.
13122         * lib/unicase/u16-is-casefolded.c: New file.
13123         * modules/unicase/u16-is-casefolded: New file.
13124
13125         New module 'unicase/u8-is-casefolded'.
13126         * lib/unicase/u8-is-casefolded.c: New file.
13127         * modules/unicase/u8-is-casefolded: New file.
13128
13129         Tests for module 'unicase/u32-is-titlecase'.
13130         * modules/unicase/u32-is-titlecase-tests: New file.
13131         * tests/unicase/test-u32-is-titlecase.c: New file.
13132
13133         Tests for module 'unicase/u16-is-titlecase'.
13134         * modules/unicase/u16-is-titlecase-tests: New file.
13135         * tests/unicase/test-u16-is-titlecase.c: New file.
13136
13137         Tests for module 'unicase/u8-is-titlecase'.
13138         * modules/unicase/u8-is-titlecase-tests: New file.
13139         * tests/unicase/test-u8-is-titlecase.c: New file.
13140         * tests/unicase/test-is-titlecase.h: New file.
13141
13142         New module 'unicase/u32-is-titlecase'.
13143         * lib/unicase/u32-is-titlecase.c: New file.
13144         * modules/unicase/u32-is-titlecase: New file.
13145
13146         New module 'unicase/u16-is-titlecase'.
13147         * lib/unicase/u16-is-titlecase.c: New file.
13148         * modules/unicase/u16-is-titlecase: New file.
13149
13150         New module 'unicase/u8-is-titlecase'.
13151         * lib/unicase/u8-is-titlecase.c: New file.
13152         * modules/unicase/u8-is-titlecase: New file.
13153
13154         Tests for module 'unicase/u32-is-lowercase'.
13155         * modules/unicase/u32-is-lowercase-tests: New file.
13156         * tests/unicase/test-u32-is-lowercase.c: New file.
13157
13158         Tests for module 'unicase/u16-is-lowercase'.
13159         * modules/unicase/u16-is-lowercase-tests: New file.
13160         * tests/unicase/test-u16-is-lowercase.c: New file.
13161
13162         Tests for module 'unicase/u8-is-lowercase'.
13163         * modules/unicase/u8-is-lowercase-tests: New file.
13164         * tests/unicase/test-u8-is-lowercase.c: New file.
13165         * tests/unicase/test-is-lowercase.h: New file.
13166
13167         New module 'unicase/u32-is-lowercase'.
13168         * lib/unicase/u32-is-lowercase.c: New file.
13169         * modules/unicase/u32-is-lowercase: New file.
13170
13171         New module 'unicase/u16-is-lowercase'.
13172         * lib/unicase/u16-is-lowercase.c: New file.
13173         * modules/unicase/u16-is-lowercase: New file.
13174
13175         New module 'unicase/u8-is-lowercase'.
13176         * lib/unicase/u8-is-lowercase.c: New file.
13177         * modules/unicase/u8-is-lowercase: New file.
13178
13179         Tests for module 'unicase/u32-is-uppercase'.
13180         * modules/unicase/u32-is-uppercase-tests: New file.
13181         * tests/unicase/test-u32-is-uppercase.c: New file.
13182
13183         Tests for module 'unicase/u16-is-uppercase'.
13184         * modules/unicase/u16-is-uppercase-tests: New file.
13185         * tests/unicase/test-u16-is-uppercase.c: New file.
13186
13187         Tests for module 'unicase/u8-is-uppercase'.
13188         * modules/unicase/u8-is-uppercase-tests: New file.
13189         * tests/unicase/test-u8-is-uppercase.c: New file.
13190         * tests/unicase/test-is-uppercase.h: New file.
13191
13192         New module 'unicase/u32-is-uppercase'.
13193         * lib/unicase/u32-is-uppercase.c: New file.
13194         * modules/unicase/u32-is-uppercase: New file.
13195
13196         New module 'unicase/u16-is-uppercase'.
13197         * lib/unicase/u16-is-uppercase.c: New file.
13198         * modules/unicase/u16-is-uppercase: New file.
13199
13200         New module 'unicase/u8-is-uppercase'.
13201         * lib/unicase/u8-is-uppercase.c: New file.
13202         * modules/unicase/u8-is-uppercase: New file.
13203
13204         New module 'unicase/u32-is-invariant'.
13205         * lib/unicase/u32-is-invariant.c: New file.
13206         * modules/unicase/u32-is-invariant: New file.
13207
13208         New module 'unicase/u16-is-invariant'.
13209         * lib/unicase/u16-is-invariant.c: New file.
13210         * modules/unicase/u16-is-invariant: New file.
13211
13212         New module 'unicase/u8-is-invariant'.
13213         * lib/unicase/u8-is-invariant.c: New file.
13214         * lib/unicase/invariant.h: New file.
13215         * lib/unicase/u-is-invariant.h: New file.
13216         * modules/unicase/u8-is-invariant: New file.
13217
13218         Tests for module 'unicase/u32-casecoll'.
13219         * modules/unicase/u32-casecoll-tests: New file.
13220         * tests/unicase/test-u32-casecoll.c: New file.
13221
13222         Tests for module 'unicase/u16-casecoll'.
13223         * modules/unicase/u16-casecoll-tests: New file.
13224         * tests/unicase/test-u16-casecoll.c: New file.
13225
13226         Tests for module 'unicase/u8-casecoll'.
13227         * modules/unicase/u8-casecoll-tests: New file.
13228         * tests/unicase/test-u8-casecoll.c: New file.
13229
13230         New module 'unicase/u32-casecoll'.
13231         * lib/unicase/u32-casecoll.c: New file.
13232         * modules/unicase/u32-casecoll: New file.
13233
13234         New module 'unicase/u16-casecoll'.
13235         * lib/unicase/u16-casecoll.c: New file.
13236         * modules/unicase/u16-casecoll: New file.
13237
13238         New module 'unicase/u8-casecoll'.
13239         * lib/unicase/u8-casecoll.c: New file.
13240         * lib/unicase/u-casecoll.h: New file.
13241         * modules/unicase/u8-casecoll: New file.
13242
13243         New module 'unicase/u32-casexfrm'.
13244         * lib/unicase/u32-casexfrm.c: New file.
13245         * modules/unicase/u32-casexfrm: New file.
13246
13247         New module 'unicase/u16-casexfrm'.
13248         * lib/unicase/u16-casexfrm.c: New file.
13249         * modules/unicase/u16-casexfrm: New file.
13250
13251         New module 'unicase/u8-casexfrm'.
13252         * lib/unicase/u8-casexfrm.c: New file.
13253         * lib/unicase/u-casexfrm.h: New file.
13254         * modules/unicase/u8-casexfrm: New file.
13255
13256         Tests for module 'unicase/u32-casecmp'.
13257         * modules/unicase/u32-casecmp-tests: New file.
13258         * tests/unicase/test-u32-casecmp.c: New file.
13259
13260         Tests for module 'unicase/u16-casecmp'.
13261         * modules/unicase/u16-casecmp-tests: New file.
13262         * tests/unicase/test-u16-casecmp.c: New file.
13263
13264         Tests for module 'unicase/u8-casecmp'.
13265         * modules/unicase/u8-casecmp-tests: New file.
13266         * tests/unicase/test-u8-casecmp.c: New file.
13267         * tests/unicase/test-casecmp.h: New file.
13268
13269         New module 'unicase/u32-casecmp'.
13270         * lib/unicase/u32-casecmp.c: New file.
13271         * modules/unicase/u32-casecmp: New file.
13272
13273         New module 'unicase/u16-casecmp'.
13274         * lib/unicase/u16-casecmp.c: New file.
13275         * modules/unicase/u16-casecmp: New file.
13276
13277         New module 'unicase/u8-casecmp'.
13278         * lib/unicase/u8-casecmp.c: New file.
13279         * lib/unicase/u-casecmp.h: New file.
13280         * modules/unicase/u8-casecmp: New file.
13281
13282         Tests for module 'unicase/u32-casefold'.
13283         * modules/unicase/u32-casefold-tests: New file.
13284         * tests/unicase/test-u32-casefold.c: New file.
13285
13286         Tests for module 'unicase/u16-casefold'.
13287         * modules/unicase/u16-casefold-tests: New file.
13288         * tests/unicase/test-u16-casefold.c: New file.
13289
13290         Tests for module 'unicase/u8-casefold'.
13291         * modules/unicase/u8-casefold-tests: New file.
13292         * tests/unicase/test-u8-casefold.c: New file.
13293
13294         New module 'unicase/u32-casefold'.
13295         * lib/unicase/u32-casefold.c: New file.
13296         * modules/unicase/u32-casefold: New file.
13297
13298         New module 'unicase/u16-casefold'.
13299         * lib/unicase/u16-casefold.c: New file.
13300         * modules/unicase/u16-casefold: New file.
13301
13302         New module 'unicase/u8-casefold'.
13303         * lib/unicase/u8-casefold.c: New file.
13304         * lib/unicase/u-casefold.h: New file.
13305         * modules/unicase/u8-casefold: New file.
13306
13307         New module 'unicase/tocasefold'.
13308         * lib/unicase/casefold.h: New file.
13309         * lib/unicase/tocasefold.c: New file.
13310         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
13311         * modules/unicase/tocasefold: New file.
13312
13313         Tests for module 'unicase/u32-totitle'.
13314         * modules/unicase/u32-totitle-tests: New file.
13315         * tests/unicase/test-u32-totitle.c: New file.
13316
13317         Tests for module 'unicase/u16-totitle'.
13318         * modules/unicase/u16-totitle-tests: New file.
13319         * tests/unicase/test-u16-totitle.c: New file.
13320
13321         Tests for module 'unicase/u8-totitle'.
13322         * modules/unicase/u8-totitle-tests: New file.
13323         * tests/unicase/test-u8-totitle.c: New file.
13324
13325         New module 'unicase/u32-totitle'.
13326         * lib/unicase/u32-totitle.c: New file.
13327         * modules/unicase/u32-totitle: New file.
13328
13329         New module 'unicase/u16-totitle'.
13330         * lib/unicase/u16-totitle.c: New file.
13331         * modules/unicase/u16-totitle: New file.
13332
13333         New module 'unicase/u8-totitle'.
13334         * lib/unicase/u8-totitle.c: New file.
13335         * lib/unicase/u-totitle.h: New file.
13336         * modules/unicase/u8-totitle: New file.
13337
13338         Tests for module 'unicase/u32-tolower'.
13339         * modules/unicase/u32-tolower-tests: New file.
13340         * tests/unicase/test-u32-tolower.c: New file.
13341
13342         Tests for module 'unicase/u16-tolower'.
13343         * modules/unicase/u16-tolower-tests: New file.
13344         * tests/unicase/test-u16-tolower.c: New file.
13345
13346         Tests for module 'unicase/u8-tolower'.
13347         * modules/unicase/u8-tolower-tests: New file.
13348         * tests/unicase/test-u8-tolower.c: New file.
13349
13350         New module 'unicase/u32-tolower'.
13351         * lib/unicase/u32-tolower.c: New file.
13352         * modules/unicase/u32-tolower: New file.
13353
13354         New module 'unicase/u16-tolower'.
13355         * lib/unicase/u16-tolower.c: New file.
13356         * modules/unicase/u16-tolower: New file.
13357
13358         New module 'unicase/u8-tolower'.
13359         * lib/unicase/u8-tolower.c: New file.
13360         * modules/unicase/u8-tolower: New file.
13361
13362         Tests for module 'unicase/u32-toupper'.
13363         * modules/unicase/u32-toupper-tests: New file.
13364         * tests/unicase/test-u32-toupper.c: New file.
13365
13366         Tests for module 'unicase/u16-toupper'.
13367         * modules/unicase/u16-toupper-tests: New file.
13368         * tests/unicase/test-u16-toupper.c: New file.
13369
13370         Tests for module 'unicase/u8-toupper'.
13371         * modules/unicase/u8-toupper-tests: New file.
13372         * tests/unicase/test-u8-toupper.c: New file.
13373
13374         New module 'unicase/u32-toupper'.
13375         * lib/unicase/u32-toupper.c: New file.
13376         * modules/unicase/u32-toupper: New file.
13377
13378         New module 'unicase/u16-toupper'.
13379         * lib/unicase/u16-toupper.c: New file.
13380         * modules/unicase/u16-toupper: New file.
13381
13382         New module 'unicase/u8-toupper'.
13383         * lib/unicase/u8-toupper.c: New file.
13384         * modules/unicase/u8-toupper: New file.
13385
13386         New module 'unicase/u32-casemap'.
13387         * lib/unicase/u32-casemap.c: New file.
13388         * modules/unicase/u32-casemap: New file.
13389
13390         New module 'unicase/u16-casemap'.
13391         * lib/unicase/u16-casemap.c: New file.
13392         * modules/unicase/u16-casemap: New file.
13393
13394         New module 'unicase/u8-casemap'.
13395         * lib/unicase/unicasemap.h: New file.
13396         * lib/unicase/u8-casemap.c: New file.
13397         * lib/unicase/u-casemap.h: New file.
13398         * modules/unicase/u8-casemap: New file.
13399
13400         New module 'unicase/special-casing'.
13401         * lib/unicase/special-casing.h: New file.
13402         * lib/unicase/special-casing.c: New file.
13403         * lib/unicase/special-casing-table.gperf: New file, generated by
13404         gen-uni-tables.c.
13405         * modules/unicase/special-casing: New file.
13406
13407         Tests for module 'unicase/locale-language'.
13408         * modules/unicase/locale-language-tests: New file.
13409         * tests/unicase/test-locale-language.sh: New file.
13410         * tests/unicase/test-locale-language.c: New file.
13411
13412         New module 'unicase/locale-language'.
13413         * lib/unicase/locale-language.c: New file.
13414         * lib/unicase/locale-languages.gperf: New file.
13415         * modules/unicase/locale-language: New file.
13416
13417         Generate more tables for case conversion and case folding.
13418         * lib/gen-uni-tables.c (SCC_*): New enum items.
13419         (struct special_casing_rule): New type.
13420         (casing_rules, num_casing_rules, allocated_casing_rules): New
13421         variables.
13422         (add_casing_rule, fill_casing_rules): New functions.
13423         (struct casefold_rule): New type.
13424         (casefolding_rules, num_casefolding_rules,
13425         allocated_casefolding_rules): New variables.
13426         (fill_casefolding_rules): New function.
13427         (unicode_casefold): New variable.
13428         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
13429         sort_casing_rules, output_casing_rules): New functions.
13430         (main): Accept to more arguments: SpecialCasing.txt and
13431         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
13432         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
13433         Output mapping for casefolding.
13434
13435         * lib/unicase.h: Include stdbool.h, uninorm.h.
13436         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
13437         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
13438         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
13439         arguments.
13440         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
13441         resultp arguments.
13442         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
13443         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
13444         resultp arguments.
13445         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
13446         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
13447         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
13448         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
13449         declarations.
13450         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
13451
13452 2009-03-08  Bruno Haible  <bruno@clisp.org>
13453
13454         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
13455         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
13456         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
13457         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
13458
13459 2009-03-07  Bruno Haible  <bruno@clisp.org>
13460
13461         Adjust u*_normcmp, u*_normcoll API.
13462         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
13463         u16_normcoll, u32_normcoll): Change failure conventions.
13464         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
13465         errno and return -1.
13466         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
13467
13468 2009-03-07  Bruno Haible  <bruno@clisp.org>
13469
13470         Tests for module 'uninorm/u32-normcoll'.
13471         * modules/uninorm/u32-normcoll-tests: New file.
13472         * tests/uninorm/test-u32-normcoll.c: New file.
13473
13474         Tests for module 'uninorm/u16-normcoll'.
13475         * modules/uninorm/u16-normcoll-tests: New file.
13476         * tests/uninorm/test-u16-normcoll.c: New file.
13477
13478         Tests for module 'uninorm/u8-normcoll'.
13479         * modules/uninorm/u8-normcoll-tests: New file.
13480         * tests/uninorm/test-u8-normcoll.c: New file.
13481
13482 2009-03-07  Bruno Haible  <bruno@clisp.org>
13483
13484         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
13485         tests/uninorm/test-u32-normcmp.c.
13486         * tests/uninorm/test-u32-normcmp.c: Include it.
13487         (test_nonascii): New function, extracted from main. Add some more
13488         tests.
13489         (main): Invoke test_ascii and test_nonascii.
13490         * modules/uninorm/u32-normcmp-tests (Files): Add
13491         tests/uninorm/test-u32-normcmp.h.
13492         (Depends-on): Remove uninorm/u32-normcmp.
13493
13494         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
13495         tests/uninorm/test-u16-normcmp.c.
13496         * tests/uninorm/test-u16-normcmp.c: Include it.
13497         (test_nonascii): New function, extracted from main. Add some more
13498         tests.
13499         (main): Invoke test_ascii and test_nonascii.
13500         * modules/uninorm/u16-normcmp-tests (Files): Add
13501         tests/uninorm/test-u16-normcmp.h.
13502         (Depends-on): Remove uninorm/u16-normcmp.
13503
13504         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
13505         tests/uninorm/test-u8-normcmp.c.
13506         * tests/uninorm/test-u8-normcmp.c: Include it.
13507         (test_nonascii): New function, extracted from main. Add some more
13508         tests.
13509         (main): Invoke test_ascii and test_nonascii.
13510         * modules/uninorm/u8-normcmp-tests (Files): Add
13511         tests/uninorm/test-u8-normcmp.h.
13512         (Depends-on): Remove uninorm/u8-normcmp.
13513
13514 2009-03-07  Bruno Haible  <bruno@clisp.org>
13515
13516         New module 'uninorm/u32-normcoll'.
13517         * lib/uninorm/u32-normcoll.c: New file.
13518         * modules/uninorm/u32-normcoll: New file.
13519
13520         New module 'uninorm/u16-normcoll'.
13521         * lib/uninorm/u16-normcoll.c: New file.
13522         * modules/uninorm/u16-normcoll: New file.
13523
13524         New module 'uninorm/u8-normcoll'.
13525         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
13526         declarations.
13527         * lib/uninorm/u8-normcoll.c: New file.
13528         * lib/uninorm/u-normcoll.h: New file.
13529         * modules/uninorm/u8-normcoll: New file.
13530
13531         New module 'uninorm/u32-normxfrm'.
13532         * lib/uninorm/u32-normxfrm.c: New file.
13533         * modules/uninorm/u32-normxfrm: New file.
13534
13535         New module 'uninorm/u16-normxfrm'.
13536         * lib/uninorm/u16-normxfrm.c: New file.
13537         * modules/uninorm/u16-normxfrm: New file.
13538
13539         New module 'uninorm/u8-normxfrm'.
13540         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
13541         declarations.
13542         * lib/uninorm/u8-normxfrm.c: New file.
13543         * lib/uninorm/u-normxfrm.h: New file.
13544         * modules/uninorm/u8-normxfrm: New file.
13545
13546 2009-03-07  Bruno Haible  <bruno@clisp.org>
13547
13548         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
13549         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
13550         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
13551
13552 2009-03-07  Bruno Haible  <bruno@clisp.org>
13553
13554         New module 'memxfrm'.
13555         * lib/memxfrm.h: New file.
13556         * lib/memxfrm.c: New file.
13557         * modules/memxfrm: New file.
13558
13559 2009-03-07  Bruno Haible  <bruno@clisp.org>
13560
13561         New module 'memcmp2'.
13562         * lib/memcmp2.h: New file.
13563         * lib/memcmp2.c: New file.
13564         * modules/memcmp2: New file.
13565
13566 2009-03-07  Bruno Haible  <bruno@clisp.org>
13567
13568         Tests for module 'uninorm/decomposing-form'.
13569         * modules/uninorm/decomposing-form-tests: New file.
13570         * tests/uninorm/test-decomposing-form.c: New file.
13571
13572         New module 'uninorm/decomposing-form'.
13573         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
13574         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
13575         Add 'decomposing_variant' field.
13576         * lib/uninorm/decomposing-form.c: New file.
13577         * lib/uninorm/nfc.c (uninorm_nfc): Update.
13578         * lib/uninorm/nfd.c (uninorm_nfd): Update.
13579         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
13580         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
13581         * modules/uninorm/decomposing-form: New file.
13582         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
13583         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
13584
13585 2009-03-07  Bruno Haible  <bruno@clisp.org>
13586
13587         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
13588         strings.
13589
13590 2009-03-06  Bruno Haible  <bruno@clisp.org>
13591
13592         Tests for module 'uninorm/u32-normcmp'.
13593         * tests/uninorm/test-u32-normcmp.c: New file.
13594         * modules/uninorm/u32-normcmp-tests: New file.
13595
13596         Tests for module 'uninorm/u16-normcmp'.
13597         * tests/uninorm/test-u16-normcmp.c: New file.
13598         * modules/uninorm/u16-normcmp-tests: New file.
13599
13600         Tests for module 'uninorm/u8-normcmp'.
13601         * tests/uninorm/test-u8-normcmp.c: New file.
13602         * modules/uninorm/u8-normcmp-tests: New file.
13603
13604         New module 'uninorm/u32-normcmp'.
13605         * lib/uninorm/u32-normcmp.c: New file.
13606         * modules/uninorm/u32-normcmp: New file.
13607
13608         New module 'uninorm/u16-normcmp'.
13609         * lib/uninorm/u16-normcmp.c: New file.
13610         * modules/uninorm/u16-normcmp: New file.
13611
13612         New module 'uninorm/u8-normcmp'.
13613         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
13614         declarations.
13615         * lib/uninorm/u8-normcmp.c: New file.
13616         * lib/uninorm/u-normcmp.h: New file.
13617         * modules/uninorm/u8-normcmp: New file.
13618
13619 2009-03-06  Bruno Haible  <bruno@clisp.org>
13620
13621         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
13622         Reported by Eric Blake.
13623
13624 2009-03-06  Eric Blake  <ebb9@byu.net>
13625             Bruno Haible  <bruno@clisp.org>
13626
13627         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
13628         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
13629         condition.
13630         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
13631         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
13632         condition.
13633         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
13634
13635 2009-03-06  Eric Blake  <ebb9@byu.net>
13636
13637         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
13638         to avoid compiler warnings.
13639         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
13640
13641 2009-03-05  Bruno Haible  <bruno@clisp.org>
13642
13643         * tests/test-ftell.c (main): Disable test beyond end of file on
13644         FreeMiNT.
13645         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
13646
13647 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
13648
13649         * lib/filevercmp.c: Move hidden files up in ordering.
13650         * tests/test-filevercmp.c: Add tests for hidden files.
13651
13652 2009-03-04  Bruno Haible  <bruno@clisp.org>
13653
13654         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
13655         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
13656         AM_CFLAGS.
13657         Reported by Simon Josefsson.
13658
13659 2009-03-03  Bruno Haible  <bruno@clisp.org>
13660
13661         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
13662         Reported by Simon Josefsson.
13663
13664         * doc/ld-version-script.texi: Update node reference.
13665
13666 2009-03-03  Bruno Haible  <bruno@clisp.org>
13667
13668         * modules/visibility (License): Change to 'unlimited'.
13669         Suggested by Simon Josefsson.
13670
13671 2009-03-03  Jim Meyering  <meyering@redhat.com>
13672
13673         unlinkdir: cannot_unlink_dir may modify process state
13674         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
13675         it's neither thread-safe nor appropriate for use in a library.
13676
13677 2009-03-03  Eric Blake  <ebb9@byu.net>
13678
13679         test-closein: silence test under Darwin
13680         * tests/test-closein.sh: Ignore stderr from cat, since we don't
13681         care if it dies from EPIPE or EBADF.
13682
13683 2009-03-03  Bruno Haible  <bruno@clisp.org>
13684
13685         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
13686         earlier.
13687         * doc/visibility.texi: Fix @node and @section.
13688
13689 2009-03-03  Simon Josefsson  <simon@josefsson.org>
13690
13691         * doc/gnulib.texi: Link to sections for ld version script and
13692         visibility.
13693         * doc/visibility.texi: Add @node and @section.
13694         * modules/ld-version-script: New module.
13695         * m4/ld-version-script.m4: New file.
13696         * doc/ld-version-script.texi: New file.
13697
13698 2009-03-02  David Lutterkort  <lutter@redhat.com>
13699
13700         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
13701         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13702
13703 2009-03-02  Bruno Haible  <bruno@clisp.org>
13704
13705         * doc/visibility.texi: Mention libtool's -export-symbols option.
13706
13707 2009-03-02  Jim Meyering  <meyering@redhat.com>
13708
13709         announce-gen: new option: --no-print-checksums
13710         * build-aux/announce-gen (usage): Describe it.
13711         (print_checksums): Print a newline here, not in the [*] footnote.
13712         (main): Honor it.
13713
13714 2009-03-01  Bruno Haible  <bruno@clisp.org>
13715
13716         Use socklen_t in the native Windows replacements prototypes.
13717         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
13718         instead of 'int'.
13719         * lib/getsockopt.c (rpl_getsockopt): Likewise.
13720         * lib/setsockopt.c (rpl_setsockopt): Likewise.
13721         * modules/getsockopt (Depends-on): Add socklen.
13722         * modules/setsockopt (Depends-on): Add socklen.
13723
13724 2009-03-01  Bruno Haible  <bruno@clisp.org>
13725
13726         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
13727         least 4.2.
13728
13729 2009-03-01  Eric Blake  <ebb9@byu.net>
13730             Bruno Haible  <bruno@clisp.org>
13731
13732         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
13733         error messages.
13734         * lib/wait-process.c (wait_subprocess): Omit error message about
13735         deadly signal sent to the child of termsigp != NULL.
13736
13737 2009-03-01  Eric Blake  <ebb9@byu.net>
13738
13739         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
13740
13741 2009-03-01  Bruno Haible  <bruno@clisp.org>
13742
13743         Avoid a gcc warning.
13744         * tests/test-sched.c (b): Make global.
13745         Reported by Eric Blake.
13746
13747 2009-01-19  Martin Lambers  <marlam@marlam.de>
13748
13749         Provide POSIX semantics for socket timeout options on W32.
13750         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
13751         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
13752         * modules/setsockopt: Depend on sys_time module for struct timeval.
13753         * modules/getsockopt: Depend on sys_time module for struct timeval.
13754
13755 2009-03-01  Simon Josefsson  <simon@josefsson.org>
13756
13757         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
13758         __USE_GNU, for consistency with netdb.in.h.
13759         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13760
13761 2009-03-01  Bruno Haible  <bruno@clisp.org>
13762
13763         More support for FreeMiNT.
13764         * lib/fseeko.c (rpl_fseeko): Complete last commit.
13765         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13766
13767 2009-03-01  Bruno Haible  <bruno@clisp.org>
13768
13769         More support for FreeMiNT.
13770         * lib/fpurge.c (fpurge): Correct last commit.
13771         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13772
13773 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13774
13775         Fix unportable awk script in vc-list-files.
13776         * build-aux/vc-list-files: In the replacement awk script, use
13777         substr with a second argument of 1, not zero.
13778         Report by Simon Josefsson.
13779
13780 2009-02-28  Bruno Haible  <bruno@clisp.org>
13781
13782         More support for FreeMiNT.
13783         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
13784         to FreeMiNT today.
13785         * lib/fwriting.c (fwriting): Likewise.
13786         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
13787
13788 2009-02-28  Bruno Haible  <bruno@clisp.org>
13789
13790         * tests/test-freadseek.c (main): Disable test beyond end of file on
13791         FreeMiNT.
13792         * tests/test-ftello.c (main): Likewise.
13793         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
13794
13795 2009-02-28  Bruno Haible  <bruno@clisp.org>
13796
13797         Add tentative support for FreeMiNT.
13798         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
13799         * lib/fpurge.c (fpurge): Likewise.
13800         * lib/freadable.c (freadable): Likewise.
13801         * lib/freading.c (freading): Likewise.
13802         * lib/freadptr.c (freadptr): Likewise.
13803         * lib/freadseek.c (freadptrinc): Likewise.
13804         * lib/fseeko.c (rpl_fseeko): Likewise.
13805         * lib/fseterr.c (fseterr): Likewise.
13806         * lib/fwritable.c (fwritable): Likewise.
13807         * lib/fwriting.c (fwriting): Likewise.
13808         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
13809         Hourihane.
13810         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13811
13812 2009-02-28  Bruno Haible  <bruno@clisp.org>
13813
13814         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
13815         SIGCHLD.
13816         Reported by Jim Meyering.
13817
13818 2009-02-28  Bruno Haible  <bruno@clisp.org>
13819
13820         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
13821         Mention the results of these tests on various platforms.
13822         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
13823         order.
13824         * doc/posix-functions/printf.texi: Likewise.
13825         * doc/posix-functions/snprintf.texi: Likewise.
13826         * doc/posix-functions/sprintf.texi: Likewise.
13827         * doc/posix-functions/vfprintf.texi: Likewise.
13828         * doc/posix-functions/vprintf.texi: Likewise.
13829         * doc/posix-functions/vsnprintf.texi: Likewise.
13830         * doc/posix-functions/vsprintf.texi: Likewise.
13831         * doc/glibc-functions/obstack_printf.texi: Likewise.
13832         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13833
13834 2009-02-28  Bruno Haible  <bruno@clisp.org>
13835
13836         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
13837         Reported by Loïc Minier <lool@dooz.org>.
13838
13839 2009-02-27  Bruno Haible  <bruno@clisp.org>
13840
13841         * gnulib-tool (func_import): Make the sed expression used to create the
13842         sed script for updating the .gitignore file POSIX compliant.
13843         Reported by Eric Blake.
13844
13845 2009-02-27  Bruno Haible  <bruno@clisp.org>
13846
13847         * gnulib-tool (sed): Don't alias as "sed --posix".
13848         Reported by Eric Blake.
13849
13850 2009-02-27  Bruno Haible  <bruno@clisp.org>
13851
13852         Avoid test link errors.
13853         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
13854         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
13855         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
13856         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
13857         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13858
13859 2009-02-27  Bruno Haible  <bruno@clisp.org>
13860
13861         Avoid spurious "(cached)" in configure output.
13862         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
13863         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
13864         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
13865         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
13866         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
13867         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
13868         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
13869         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
13870         Reported by Eric Blake.
13871
13872 2009-02-27  Eric Blake  <ebb9@byu.net>
13873
13874         printf: fix regression in previous patch
13875         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
13876
13877 2009-02-27  Bruno Haible  <bruno@clisp.org>
13878
13879         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
13880         value.
13881         * lib/stdint.in.h: Likewise.
13882         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
13883
13884 2009-02-27  Eric Blake  <ebb9@byu.net>
13885
13886         doc: mention more functions added in cygwin 1.7.0
13887         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
13888         addition.
13889         * doc/posix-functions/open_wmemstream.texi: Likewise.
13890         * doc/posix-functions/wcsnlen.texi: Likewise.
13891         * doc/posix-functions/wcsnrtombs.texi: Likewise.
13892         * doc/posix-functions/wcstod.texi: Likewise.
13893         * doc/posix-functions/wcstof.texi: Likewise.
13894         * doc/posix-functions/wcstoimax.texi: Likewise.
13895         * doc/posix-functions/wcstok.texi: Likewise.
13896         * doc/posix-functions/wcstoumax.texi: Likewise.
13897
13898         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
13899         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
13900         * doc/posix-functions/fprintf.texi: Update.
13901         * doc/posix-functions/printf.texi: Update.
13902         * doc/posix-functions/snprintf.texi: Update.
13903         * doc/posix-functions/sprintf.texi: Update.
13904         * doc/posix-functions/vfprintf.texi: Update.
13905         * doc/posix-functions/vprintf.texi: Update.
13906         * doc/posix-functions/vsnprintf.texi: Update.
13907         * doc/posix-functions/vsprintf.texi: Update.
13908         * doc/glibc-functions/obstack_printf.texi: Update.
13909         * doc/glibc-functions/obstack_vprintf.texi: Update.
13910
13911 2009-02-26  Eric Blake  <ebb9@byu.net>
13912
13913         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
13914         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
13915         compilation bug by using runtime conversion.
13916         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13917         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
13918         * modules/ceill-tests (Files): Use nan.h.
13919         * modules/floorl-tests (Files): Likewise.
13920         * modules/frexpl-tests (Files): Likewise.
13921         * modules/isnanl-tests (Files): Likewise.
13922         * modules/ldexpl-tests (Files): Likewise.
13923         * modules/roundl-tests (Files): Likewise.
13924         * modules/truncl-tests (Files): Likewise.
13925         * tests/test-ceill.c (main): Use a working NaN.
13926         * tests/test-floorl.c (main): Likewise.
13927         * tests/test-frexpl.c (main): Likewise.
13928         * tests/test-isnan.c (test_long_double): Likewise.
13929         * tests/test-isnanl.h (main): Likewise.
13930         * tests/test-ldexpl.h (main): Likewise.
13931         * tests/test-roundl.h (main): Likewise.
13932         * tests/test-truncl.h (main): Likewise.
13933         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
13934
13935 2009-02-26  Eric Blake  <ebb9@byu.net>
13936             Bruno Haible  <bruno@clisp.org>
13937
13938         Work around a *printf bug with %ls on Solaris.
13939         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
13940         precision is specified, sprintf stops converting the wide string
13941         argument when the number of bytes that have been produced by this
13942         conversion equals or exceeds the precision.
13943         * doc/posix-functions/fprintf.texi: Update.
13944         * doc/posix-functions/printf.texi: Update.
13945         * doc/posix-functions/snprintf.texi: Update.
13946         * doc/posix-functions/sprintf.texi: Update.
13947         * doc/posix-functions/vfprintf.texi: Update.
13948         * doc/posix-functions/vprintf.texi: Update.
13949         * doc/posix-functions/vsnprintf.texi: Update.
13950         * doc/posix-functions/vsprintf.texi: Update.
13951         * doc/glibc-functions/obstack_printf.texi: Update.
13952         * doc/glibc-functions/obstack_vprintf.texi: Update.
13953
13954 2009-02-26  Eric Blake  <ebb9@byu.net>
13955
13956         stdlib: favor compiler check of random.h
13957         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
13958         to avoid an ObjC random.h installed by Swarm.
13959
13960 2009-02-26  Bruno Haible  <bruno@clisp.org>
13961
13962         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
13963         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
13964         Reported by Gary V. Vaughan <gary@gnu.org>.
13965
13966 2009-02-26  Bruno Haible  <bruno@clisp.org>
13967
13968         Fix *printf behaviour regarding the %ls directive.
13969         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
13970         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
13971         NEED_PRINTF_DIRECTIVE_LS.
13972         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
13973         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
13974         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13975         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
13976         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
13977         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
13978         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
13979         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13980         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13981         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13982         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13983         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
13984         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13985         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13986         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13987         * doc/posix-functions/fprintf.texi: Update.
13988         * doc/posix-functions/printf.texi: Update.
13989         * doc/posix-functions/snprintf.texi: Update.
13990         * doc/posix-functions/sprintf.texi: Update.
13991         * doc/posix-functions/vfprintf.texi: Update.
13992         * doc/posix-functions/vprintf.texi: Update.
13993         * doc/posix-functions/vsnprintf.texi: Update.
13994         * doc/posix-functions/vsprintf.texi: Update.
13995         * doc/glibc-functions/obstack_printf.texi: Update.
13996         * doc/glibc-functions/obstack_vprintf.texi: Update.
13997         Reported by Eric Blake.
13998
13999 2009-02-25  Bruno Haible  <bruno@clisp.org>
14000
14001         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
14002         with known value.
14003         Reported by Gary V. Vaughan <gary@gnu.org>.
14004
14005 2009-02-25  Bruno Haible  <bruno@clisp.org>
14006
14007         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
14008         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
14009         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
14010         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
14011         Reported by Gary V. Vaughan <gary@gnu.org>.
14012
14013 2009-02-25  Bruno Haible  <bruno@clisp.org>
14014
14015         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
14016         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
14017         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
14018         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
14019         Reported by Gary V. Vaughan <gary@gnu.org>.
14020
14021 2009-02-25  Eric Blake  <ebb9@byu.net>
14022
14023         tests: skip fseek/ftell tests if ungetc is broken
14024         * m4/ungetc.m4: New file.
14025         * modules/fseek-tests: Split test, so ungetc dependency is
14026         separate from rest of test.
14027         * modules/fseeko-tests: Likewise.
14028         * modules/ftell-tests: Likewise.
14029         * modules/ftello-tests: Likewise.
14030         * tests/test-fseek.c (main): Isolate ungetc dependency.
14031         * tests/test-fseeko.c (main): Likewise.
14032         * tests/test-ftell.c (main): Likewise.
14033         * tests/test-ftello.c (main): Likewise.
14034         * tests/test-fseek2.sh: New file.
14035         * tests/test-fseeko2.sh: Likewise.
14036         * tests/test-ftell2.sh: Likewise.
14037         * tests/test-ftello2.sh: Likewise.
14038
14039 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
14040
14041         test-getaddrinfo: fix usage of skip return code 77
14042         * tests/test-gettaddrinfo.c: Return skip code 77 only
14043         for first occurance of skip (4x77 is not 77)
14044
14045 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
14046
14047         strtod: avoid C99 decl-after-statement
14048         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
14049
14050 2009-02-24  Eric Blake  <ebb9@byu.net>
14051
14052         strtod: detect HP-UX 11.31 bug
14053         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
14054         Reported by Gary V. Vaughan.
14055
14056 2009-02-23  Bruno Haible  <bruno@clisp.org>
14057
14058         Fix invalid read past end of memory block.
14059         * lib/vasnprintf.c (DCHAR_SET): Define.
14060         (local_wcslen): Define only when needed.
14061         (local_strnlen, local_wcsnlen): New functions.
14062         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
14063         directives that involve a conversion ourselves.
14064         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
14065         wcsnlen, mbrtowc, wcrtomb.
14066         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
14067         * tests/test-vasprintf-posix.c (test_function): Likewise.
14068         * tests/test-snprintf-posix.h (test_function): Likewise.
14069         * tests/test-sprintf-posix.h (test_function): Likewise.
14070         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14071
14072 2009-02-22  Bruno Haible  <bruno@clisp.org>
14073
14074         Implement new clarified decomposition of Hangul syllables.
14075         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
14076         of type LTV, return only a pairwise decomposition.
14077         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
14078         Likewise.
14079         * tests/uninorm/test-decomposition.c (main): Updated expected result.
14080         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
14081         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
14082
14083 2009-02-22  Bruno Haible  <bruno@clisp.org>
14084
14085         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
14086         zero-length results and shrink excess allocated memory.
14087         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
14088         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
14089         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
14090         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
14091         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
14092         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
14093         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
14094         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
14095         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
14096         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
14097         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
14098         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
14099
14100 2009-02-21  Bruno Haible  <bruno@clisp.org>
14101
14102         * doc/gnulib.texi: Include safe-alloc.texi earlier.
14103         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
14104         spaces after a period. Put a space between a macro name and its
14105         argument list. Trivial rewordings.
14106         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
14107         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
14108         (main): Return 0 explicitly.
14109
14110 2009-02-21  Bruno Haible  <bruno@clisp.org>
14111
14112         Tests for module 'uninorm/filter'.
14113         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
14114         * modules/uninorm/filter-tests: New file.
14115
14116         New module 'uninorm/filter'.
14117         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
14118         uninorm_filter_flush, uninorm_filter_free): New declarations.
14119         * lib/uninorm/uninorm-filter.c: New file.
14120         * modules/uninorm/filter: New file.
14121
14122 2009-02-21  Bruno Haible  <bruno@clisp.org>
14123
14124         Tests for module 'uninorm/nfkc'.
14125         * tests/uninorm/test-nfkc.c: New file.
14126         * tests/uninorm/test-u8-nfkc.c: New file.
14127         * tests/uninorm/test-u16-nfkc.c: New file.
14128         * tests/uninorm/test-u32-nfkc.c: New file.
14129         * tests/uninorm/test-u32-nfkc-big.sh: New file.
14130         * tests/uninorm/test-u32-nfkc-big.c: New file.
14131         * modules/uninorm/nfkc-tests: New file.
14132
14133         New module 'uninorm/nfkc'.
14134         * lib/uninorm/nfkc.c: New file.
14135         * modules/uninorm/nfkc: New file.
14136
14137         Tests for module 'uninorm/nfkd'.
14138         * tests/uninorm/test-nfkd.c: New file.
14139         * tests/uninorm/test-u8-nfkd.c: New file.
14140         * tests/uninorm/test-u16-nfkd.c: New file.
14141         * tests/uninorm/test-u32-nfkd.c: New file.
14142         * tests/uninorm/test-u32-nfkd-big.sh: New file.
14143         * tests/uninorm/test-u32-nfkd-big.c: New file.
14144         * modules/uninorm/nfkd-tests: New file.
14145
14146         New module 'uninorm/nfkd'.
14147         * lib/uninorm/nfkd.c: New file.
14148         * modules/uninorm/nfkd: New file.
14149
14150         Tests for module 'uninorm/nfc'.
14151         * tests/uninorm/test-nfc.c: New file.
14152         * tests/uninorm/test-u8-nfc.c: New file.
14153         * tests/uninorm/test-u16-nfc.c: New file.
14154         * tests/uninorm/test-u32-nfc.c: New file.
14155         * tests/uninorm/test-u32-nfc-big.sh: New file.
14156         * tests/uninorm/test-u32-nfc-big.c: New file.
14157         * modules/uninorm/nfc-tests: New file.
14158
14159         New module 'uninorm/nfc'.
14160         * lib/uninorm/nfc.c: New file.
14161         * modules/uninorm/nfc: New file.
14162
14163         Tests for module 'uninorm/nfd'.
14164         * tests/uninorm/test-nfd.c: New file.
14165         * tests/uninorm/test-u8-nfd.c: New file.
14166         * tests/uninorm/test-u16-nfd.c: New file.
14167         * tests/uninorm/test-u32-nfd.c: New file.
14168         * tests/uninorm/test-u32-nfd-big.sh: New file.
14169         * tests/uninorm/test-u32-nfd-big.c: New file.
14170         * tests/uninorm/test-u32-normalize-big.h: New file.
14171         * tests/uninorm/test-u32-normalize-big.c: New file.
14172         * tests/uninorm/NormalizationTest.txt: New file, created from
14173         Unicode 5.1.0 NormalizationTest.txt.
14174         * modules/uninorm/nfd-tests: New file.
14175
14176         New module 'uninorm/nfd'.
14177         * lib/uninorm/nfd.c: New file.
14178         * modules/uninorm/nfd: New file.
14179
14180         New module 'uninorm/u32-normalize'.
14181         * lib/uninorm/u32-normalize.c: New file.
14182         * modules/uninorm/u32-normalize: New file.
14183
14184         New module 'uninorm/u16-normalize'.
14185         * lib/uninorm/u16-normalize.c: New file.
14186         * modules/uninorm/u16-normalize: New file.
14187
14188         New module 'uninorm/u8-normalize'.
14189         * lib/uninorm/u8-normalize.c: New file.
14190         * lib/uninorm/normalize-internal.h: New file.
14191         * lib/uninorm/u-normalize-internal.h: New file.
14192         * modules/uninorm/u8-normalize: New file.
14193
14194         New module 'uninorm/decompose-internal'.
14195         * lib/uninorm/decompose-internal.c: New file.
14196         * modules/uninorm/decompose-internal: New file.
14197
14198         Tests for module 'uninorm/composition'.
14199         * tests/uninorm/test-composition.c: New file.
14200         * modules/uninorm/composition-tests: New file.
14201
14202         New module 'uninorm/composition'.
14203         * lib/uninorm/composition.c: New file.
14204         * lib/uninorm/composition-table.gperf: New file, generated by
14205         gen-uni-tables.
14206         * modules/uninorm/composition: New file.
14207
14208         Tests for module 'uninorm/compat-decomposition'.
14209         * tests/uninorm/test-compat-decomposition.c: New file.
14210         * modules/uninorm/compat-decomposition-tests: New file.
14211
14212         New module 'uninorm/compat-decomposition'.
14213         * lib/uninorm/decompose-internal.h: New file.
14214         * lib/uninorm/compat-decomposition.c: New file.
14215         * modules/uninorm/compat-decomposition: New file.
14216
14217         Tests for module 'uninorm/canonical-decomposition'.
14218         * tests/uninorm/test-canonical-decomposition.c: New file.
14219         * modules/uninorm/canonical-decomposition-tests: New file.
14220
14221         New module 'uninorm/canonical-decomposition'.
14222         * lib/uninorm/canonical-decomposition.c: New file.
14223         * modules/uninorm/canonical-decomposition: New file.
14224
14225         Tests for module 'uninorm/decomposition'.
14226         * tests/uninorm/test-decomposition.c: New file.
14227         * modules/uninorm/decomposition-tests: New file.
14228
14229         New module 'uninorm/decomposition'.
14230         * lib/uninorm/decomposition.c: New file.
14231         * modules/uninorm/decomposition: New file.
14232
14233         New module 'uninorm/decomposition-table'.
14234         * lib/uninorm/decomposition-table.h: New file.
14235         * lib/uninorm/decomposition-table.c: New file.
14236         * lib/uninorm/decomposition-table1.h: New file, generated by
14237         gen-uni-tables.
14238         * lib/uninorm/decomposition-table2.h: New file, generated by
14239         gen-uni-tables.
14240         * modules/uninorm/decomposition-table: New file.
14241
14242         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
14243         (UC_DECOMP_*): New enumeration items.
14244         (get_decomposition): New function.
14245         (struct decomp_table): New type.
14246         (output_decomposition, output_decomposition_tables): New functions.
14247         (unicode_composition_exclusions): New variable.
14248         (fill_composition_exclusions, debug_output_composition_tables): New
14249         functions.
14250         (main): Accept one more argument. Invoke fill_composition_exclusions.
14251         Output decomposition and composition tables.
14252
14253         New module 'uninorm/base'.
14254         * lib/uninorm.h: New file.
14255         * lib/unictype.h: Update comment.
14256         * modules/uninorm/base: New file.
14257
14258 2009-02-21  David Lutterkort  <lutter@redhat.com>
14259
14260         Tests for module 'safe-alloc'.
14261         * tests/test-safe-alloc.c: New file.
14262         * modules/safe-alloc-tests: New file.
14263
14264         New module 'safe-alloc'.
14265         * lib/safe-alloc.h: New file.
14266         * lib/safe-alloc.c: New file.
14267         * m4/safe-alloc.m4: New file.
14268         * modules/safe-alloc: New file.
14269         * doc/safe-alloc.texi: New file.
14270         * doc/gnulib.texi: Include it.
14271         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
14272         safe-alloc.
14273
14274 2009-02-18  Bruno Haible  <bruno@clisp.org>
14275
14276         Fix link error on non-glibc systems.
14277         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
14278         variable.
14279         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14280
14281 2009-02-18  Jim Meyering  <meyering@redhat.com>
14282
14283         fts: avoid used-uninitialized error due to recent change
14284         * lib/fts.c (fts_read): Guard uses of the new member,
14285         parent->fts_n_dirs_remaining, since it's not relevant for
14286         the parent of a directory specified on the command-line.
14287
14288 2009-02-17  James Youngman  <jay@gnu.org>
14289             Bruno Haible  <bruno@clisp.org>
14290
14291         * m4/include_next.m4: Reformulate comment.
14292
14293 2009-02-16  Jim Meyering  <meyering@redhat.com>
14294
14295         fts: add #if guards so that the fts_lgpl module still builds
14296         * lib/fts.c: Guard just-added hash-table-using parts with
14297         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
14298         Reported by Simon Josefsson.
14299
14300 2009-02-15  Bruno Haible  <bruno@clisp.org>
14301
14302         * modules/array-mergesort-tests: New file.
14303         * tests/test-array-mergesort.c: New file.
14304
14305         New module 'array-mergesort'.
14306         * modules/array-mergesort: New file.
14307         * lib/array-mergesort.h: New file.
14308
14309 2009-02-15  Bruno Haible  <bruno@clisp.org>
14310
14311         Fix 2009-02-07 commit.
14312         * lib/gen-uni-tables.c (output_predicate, output_category,
14313         output_combclass, output_bidi_category, output_decimal_digit,
14314         output_digit, output_numeric, output_mirror, output_scripts,
14315         output_ident_category, output_simple_mapping): Fix format directives.
14316         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
14317
14318 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
14319
14320         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
14321         fixes are available from IBM.
14322
14323 2009-02-13  Jim Meyering  <meyering@redhat.com>
14324
14325         fts: arrange not to stat non-directories in more cases
14326         This makes GNU find (when it doesn't need to stat each file)
14327         *much* more efficient at traversing reiserfs file systems.
14328         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
14329         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
14330         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
14331         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
14332         (leaf_optimization_applies): New function.
14333         (LCO_hash, LCO_compare): New helper functions.
14334         (link_count_optimize_ok): New function.
14335         (fts_stat): Initialize new member (if dir).
14336         (fts_read): Decrement parent's fts_n_dirs_remaining count if
14337         we've just stat'ed a directory.  Skip the stat call when possible.
14338         ---
14339         Note this AFS-related exchange:
14340         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
14341         and note find's pioctl call in find/fstype.c.
14342         But that is necessary only if you want to enable the
14343         optimization for AFS, and for now, I don't.
14344
14345         fts: move a function definition "up" (no semantic change)
14346         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
14347         "up" to precede upcoming use of a related function.
14348
14349 2009-02-11  Jim Meyering  <meyering@redhat.com>
14350
14351         fts: correct internal computation of nlinks (optimization-related)
14352         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
14353         whether the current entry is a directory, so don't test it.
14354
14355 2009-02-10  Bruno Haible  <bruno@clisp.org>
14356
14357         Tests for module 'uniwbrk/ulc-wordbreaks'.
14358         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
14359         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
14360         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
14361
14362         Tests for module 'uniwbrk/u32-wordbreaks'.
14363         * modules/uniwbrk/u32-wordbreaks-tests: New file.
14364         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
14365
14366         Tests for module 'uniwbrk/u16-wordbreaks'.
14367         * modules/uniwbrk/u16-wordbreaks-tests: New file.
14368         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
14369
14370         Tests for module 'uniwbrk/u8-wordbreaks'.
14371         * modules/uniwbrk/u8-wordbreaks-tests: New file.
14372         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
14373
14374 2009-02-10  Bruno Haible  <bruno@clisp.org>
14375
14376         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
14377         property.
14378         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
14379         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
14380         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
14381
14382 2009-02-10  Simon Josefsson  <simon@josefsson.org>
14383
14384         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
14385         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
14386
14387 2009-02-10  Bruno Haible  <bruno@clisp.org>
14388
14389         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
14390         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
14391         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
14392         * lib/unilbrk/u8-possible-linebreaks.c: Update.
14393         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
14394         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
14395
14396 2009-02-09  Simon Josefsson  <simon@josefsson.org>
14397
14398         * lib/sockets.h (gl_fd_to_handle): New function.
14399
14400         * tests/test-sockets.c: Call gl_fd_to_handle.
14401
14402 2009-02-09  Bruno Haible  <bruno@clisp.org>
14403
14404         * doc/havelib.texi: Document the conventions on bi-arch systems.
14405
14406 2009-02-08  Bruno Haible  <bruno@clisp.org>
14407
14408         Document the AC_LIB_LINKFLAGS macro.
14409         * doc/havelib.texi: New file, mostly written on 2005-05-24.
14410         * doc/gnulib.texi: Include it.
14411
14412 2009-02-08  Bruno Haible  <bruno@clisp.org>
14413
14414         Fix wrong order of sections, compared to TOC.
14415         * doc/gnulib.texi: Include relocatable-maint.texi after the
14416         "Regular expressions" node, not before.
14417
14418 2009-02-08  Bruno Haible  <bruno@clisp.org>
14419
14420         Tests for module 'unicase/totitle'.
14421         * modules/unicase/totitle-tests: New file.
14422
14423         Tests for module 'unicase/tolower'.
14424         * modules/unicase/tolower-tests: New file.
14425
14426         Tests for module 'unicase/toupper'.
14427         * modules/unicase/toupper-tests: New file.
14428         * tests/unicase/test-mapping-part1.h: New file.
14429         * tests/unicase/test-mapping-part2.h: New file.
14430
14431         New module 'unicase/totitle'.
14432         * modules/unicase/totitle: New file.
14433         * lib/unicase/totitle.c: New file.
14434
14435         New module 'unicase/tolower'.
14436         * modules/unicase/tolower: New file.
14437         * lib/unicase/tolower.c: New file.
14438
14439         New module 'unicase/toupper'.
14440         * modules/unicase/toupper: New file.
14441         * lib/unicase/toupper.c: New file.
14442         * lib/unicase/simple-mapping.h: New file.
14443
14444         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
14445         (mapping_table): New structure.
14446         (output_simple_mapping): New function.
14447         (main): Invoke output_simple_mapping_test and output_simple_mapping.
14448         * modules/gen-uni-tables (Description): Update.
14449         * lib/unicase/toupper.h: New file, automatically generated by
14450         gen-uni-tables.
14451         * lib/unicase/tolower.h: New file, automatically generated by
14452         gen-uni-tables.
14453         * lib/unicase/totitle.h: New file, automatically generated by
14454         gen-uni-tables.
14455         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
14456         gen-uni-tables.
14457         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
14458         gen-uni-tables.
14459         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
14460         gen-uni-tables.
14461
14462         New module 'unicase/base'.
14463         * modules/unicase/base: New file.
14464         * lib/unicase.h: New file.
14465
14466 2009-02-08  Bruno Haible  <bruno@clisp.org>
14467
14468         New module 'uniwbrk/ulc-wordbreaks'.
14469         * modules/uniwbrk/ulc-wordbreaks: New file.
14470         * lib/uniwbrk/ulc-wordbreaks.c: New file.
14471
14472         New module 'uniwbrk/u32-wordbreaks'.
14473         * modules/uniwbrk/u32-wordbreaks: New file.
14474         * lib/uniwbrk/u32-wordbreaks.c: New file.
14475
14476         New module 'uniwbrk/u16-wordbreaks'.
14477         * modules/uniwbrk/u16-wordbreaks: New file.
14478         * lib/uniwbrk/u16-wordbreaks.c: New file.
14479
14480         New module 'uniwbrk/u8-wordbreaks'.
14481         * modules/uniwbrk/u8-wordbreaks: New file.
14482         * lib/uniwbrk/u8-wordbreaks.c: New file.
14483         * lib/uniwbrk/u-wordbreaks.h: New file.
14484
14485         New module 'uniwbrk/table'.
14486         * modules/uniwbrk/table: New file.
14487         * lib/uniwbrk/wbrktable.h: New file.
14488         * lib/uniwbrk/wbrktable.c: New file.
14489
14490         New module 'uniwbrk/wordbreak-property'.
14491         * modules/uniwbrk/wordbreak-property: New file.
14492         * lib/uniwbrk/wordbreak-property.c: New file.
14493
14494         * lib/gen-uni-tables.c (WBP_*): New enum items.
14495         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
14496         (unicode_org_wbp): New variable.
14497         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
14498         New functions.
14499         (wbp_table): New structure.
14500         (output_wbp, output_wbrk_tables): New functions.
14501         (main): Accept additional argument. Invoke fill_org_wbp,
14502         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
14503         output_wbrk_tables.
14504         * modules/gen-uni-tables (Description): Update.
14505         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
14506         gen-uni-tables.
14507
14508         New module 'uniwbrk/base'.
14509         * modules/uniwbrk/base: New file.
14510         * lib/uniwbrk.h: New file.
14511
14512 2009-02-08  Bruno Haible  <bruno@clisp.org>
14513
14514         Update to Unicode 5.1.0.
14515         * lib/gen-uni-tables.c (is_property_alphabetic): Include
14516         U+2185..U+2188.
14517         (is_property_default_ignorable_code_point): Don't include characters
14518         of category Cc or Cs and not-a-characters.
14519         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
14520         U+0D79, U+109E, U+109F, U+A60C.
14521         * lib/unictype/bidi_of.h: Regenerated.
14522         * lib/unictype/blocks.h: Regenerated.
14523         * lib/unictype/categ_C.h: Regenerated.
14524         * lib/unictype/categ_Cf.h: Regenerated.
14525         * lib/unictype/categ_Cn.h: Regenerated.
14526         * lib/unictype/categ_L.h: Regenerated.
14527         * lib/unictype/categ_Ll.h: Regenerated.
14528         * lib/unictype/categ_Lm.h: Regenerated.
14529         * lib/unictype/categ_Lo.h: Regenerated.
14530         * lib/unictype/categ_Lu.h: Regenerated.
14531         * lib/unictype/categ_M.h: Regenerated.
14532         * lib/unictype/categ_Mc.h: Regenerated.
14533         * lib/unictype/categ_Me.h: Regenerated.
14534         * lib/unictype/categ_Mn.h: Regenerated.
14535         * lib/unictype/categ_N.h: Regenerated.
14536         * lib/unictype/categ_Nd.h: Regenerated.
14537         * lib/unictype/categ_Nl.h: Regenerated.
14538         * lib/unictype/categ_No.h: Regenerated.
14539         * lib/unictype/categ_P.h: Regenerated.
14540         * lib/unictype/categ_Pd.h: Regenerated.
14541         * lib/unictype/categ_Pe.h: Regenerated.
14542         * lib/unictype/categ_Pf.h: Regenerated.
14543         * lib/unictype/categ_Pi.h: Regenerated.
14544         * lib/unictype/categ_Po.h: Regenerated.
14545         * lib/unictype/categ_Ps.h: Regenerated.
14546         * lib/unictype/categ_S.h: Regenerated.
14547         * lib/unictype/categ_Sk.h: Regenerated.
14548         * lib/unictype/categ_Sm.h: Regenerated.
14549         * lib/unictype/categ_So.h: Regenerated.
14550         * lib/unictype/categ_of.h: Regenerated.
14551         * lib/unictype/combining.h: Regenerated.
14552         * lib/unictype/ctype_alnum.h: Regenerated.
14553         * lib/unictype/ctype_alpha.h: Regenerated.
14554         * lib/unictype/ctype_graph.h: Regenerated.
14555         * lib/unictype/ctype_lower.h: Regenerated.
14556         * lib/unictype/ctype_print.h: Regenerated.
14557         * lib/unictype/ctype_punct.h: Regenerated.
14558         * lib/unictype/ctype_upper.h: Regenerated.
14559         * lib/unictype/decdigit.h: Regenerated.
14560         * lib/unictype/digit.h: Regenerated.
14561         * lib/unictype/mirror.h: Regenerated.
14562         * lib/unictype/numeric.h: Regenerated.
14563         * lib/unictype/pr_alphabetic.h: Regenerated.
14564         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
14565         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
14566         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
14567         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
14568         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
14569         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
14570         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
14571         * lib/unictype/pr_combining.h: Regenerated.
14572         * lib/unictype/pr_dash.h: Regenerated.
14573         * lib/unictype/pr_decimal_digit.h: Regenerated.
14574         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
14575         * lib/unictype/pr_deprecated.h: Regenerated.
14576         * lib/unictype/pr_diacritic.h: Regenerated.
14577         * lib/unictype/pr_extender.h: Regenerated.
14578         * lib/unictype/pr_format_control.h: Regenerated.
14579         * lib/unictype/pr_grapheme_base.h: Regenerated.
14580         * lib/unictype/pr_grapheme_extend.h: Regenerated.
14581         * lib/unictype/pr_grapheme_link.h: Regenerated.
14582         * lib/unictype/pr_id_continue.h: Regenerated.
14583         * lib/unictype/pr_id_start.h: Regenerated.
14584         * lib/unictype/pr_ideographic.h: Regenerated.
14585         * lib/unictype/pr_ignorable_control.h: Regenerated.
14586         * lib/unictype/pr_lowercase.h: Regenerated.
14587         * lib/unictype/pr_math.h: Regenerated.
14588         * lib/unictype/pr_numeric.h: Regenerated.
14589         * lib/unictype/pr_other_alphabetic.h: Regenerated.
14590         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
14591         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
14592         * lib/unictype/pr_other_id_continue.h: Regenerated.
14593         * lib/unictype/pr_other_lowercase.h: Regenerated.
14594         * lib/unictype/pr_other_math.h: Regenerated.
14595         * lib/unictype/pr_punctuation.h: Regenerated.
14596         * lib/unictype/pr_sentence_terminal.h: Regenerated.
14597         * lib/unictype/pr_soft_dotted.h: Regenerated.
14598         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
14599         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
14600         * lib/unictype/pr_unified_ideograph.h: Regenerated.
14601         * lib/unictype/pr_uppercase.h: Regenerated.
14602         * lib/unictype/pr_xid_continue.h: Regenerated.
14603         * lib/unictype/pr_xid_start.h: Regenerated.
14604         * lib/unictype/pr_zero_width.h: Regenerated.
14605         * lib/unictype/scripts.h: Regenerated.
14606         * lib/unictype/scripts_byname.gperf: Regenerated.
14607         * lib/unictype/sy_java_ident.h: Regenerated.
14608         * lib/unilbrk/lbrkprop1.h: Regenerated.
14609         * lib/unilbrk/lbrkprop2.h: Regenerated.
14610         * tests/unictype/test-categ_C.c: Regenerated.
14611         * tests/unictype/test-categ_Cf.c: Regenerated.
14612         * tests/unictype/test-categ_Cn.c: Regenerated.
14613         * tests/unictype/test-categ_L.c: Regenerated.
14614         * tests/unictype/test-categ_Ll.c: Regenerated.
14615         * tests/unictype/test-categ_Lm.c: Regenerated.
14616         * tests/unictype/test-categ_Lo.c: Regenerated.
14617         * tests/unictype/test-categ_Lu.c: Regenerated.
14618         * tests/unictype/test-categ_M.c: Regenerated.
14619         * tests/unictype/test-categ_Mc.c: Regenerated.
14620         * tests/unictype/test-categ_Me.c: Regenerated.
14621         * tests/unictype/test-categ_Mn.c: Regenerated.
14622         * tests/unictype/test-categ_N.c: Regenerated.
14623         * tests/unictype/test-categ_Nd.c: Regenerated.
14624         * tests/unictype/test-categ_Nl.c: Regenerated.
14625         * tests/unictype/test-categ_No.c: Regenerated.
14626         * tests/unictype/test-categ_P.c: Regenerated.
14627         * tests/unictype/test-categ_Pd.c: Regenerated.
14628         * tests/unictype/test-categ_Pe.c: Regenerated.
14629         * tests/unictype/test-categ_Pf.c: Regenerated.
14630         * tests/unictype/test-categ_Pi.c: Regenerated.
14631         * tests/unictype/test-categ_Po.c: Regenerated.
14632         * tests/unictype/test-categ_Ps.c: Regenerated.
14633         * tests/unictype/test-categ_S.c: Regenerated.
14634         * tests/unictype/test-categ_Sk.c: Regenerated.
14635         * tests/unictype/test-categ_Sm.c: Regenerated.
14636         * tests/unictype/test-categ_So.c: Regenerated.
14637         * tests/unictype/test-ctype_alnum.c: Regenerated.
14638         * tests/unictype/test-ctype_alpha.c: Regenerated.
14639         * tests/unictype/test-ctype_graph.c: Regenerated.
14640         * tests/unictype/test-ctype_lower.c: Regenerated.
14641         * tests/unictype/test-ctype_print.c: Regenerated.
14642         * tests/unictype/test-ctype_punct.c: Regenerated.
14643         * tests/unictype/test-ctype_upper.c: Regenerated.
14644         * tests/unictype/test-decdigit.h: Regenerated.
14645         * tests/unictype/test-digit.h: Regenerated.
14646         * tests/unictype/test-numeric.h: Regenerated.
14647         * tests/unictype/test-pr_alphabetic.c: Regenerated.
14648         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
14649         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
14650         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
14651         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
14652         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
14653         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
14654         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
14655         * tests/unictype/test-pr_combining.c: Regenerated.
14656         * tests/unictype/test-pr_dash.c: Regenerated.
14657         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
14658         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
14659         * tests/unictype/test-pr_deprecated.c: Regenerated.
14660         * tests/unictype/test-pr_diacritic.c: Regenerated.
14661         * tests/unictype/test-pr_extender.c: Regenerated.
14662         * tests/unictype/test-pr_format_control.c: Regenerated.
14663         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
14664         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
14665         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
14666         * tests/unictype/test-pr_id_continue.c: Regenerated.
14667         * tests/unictype/test-pr_id_start.c: Regenerated.
14668         * tests/unictype/test-pr_ideographic.c: Regenerated.
14669         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
14670         * tests/unictype/test-pr_lowercase.c: Regenerated.
14671         * tests/unictype/test-pr_math.c: Regenerated.
14672         * tests/unictype/test-pr_numeric.c: Regenerated.
14673         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
14674         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
14675         Regenerated.
14676         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
14677         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
14678         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
14679         * tests/unictype/test-pr_other_math.c: Regenerated.
14680         * tests/unictype/test-pr_punctuation.c: Regenerated.
14681         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
14682         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
14683         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
14684         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
14685         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
14686         * tests/unictype/test-pr_uppercase.c: Regenerated.
14687         * tests/unictype/test-pr_xid_continue.c: Regenerated.
14688         * tests/unictype/test-pr_xid_start.c: Regenerated.
14689         * tests/unictype/test-pr_zero_width.c: Regenerated.
14690
14691         Update to Unicode 5.1.0.
14692         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
14693         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
14694         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
14695         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
14696         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
14697         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
14698         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
14699         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
14700         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
14701         (nonspacing_table_ind): Update.
14702         * tests/uniwidth/test-uc_width2.sh: Update expected result.
14703
14704         Update to Unicode 5.1.0.
14705         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
14706         code transform.
14707         * lib/uniname/uniname.c (unicode_character_name,
14708         unicode_name_character): Add the range 0x1Fxxx to the code transform.
14709         * lib/uniname/uninames.h: Regenerated.
14710         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
14711
14712 2009-02-07  Bruno Haible  <bruno@clisp.org>
14713
14714         Merge gen-ctype and gen-lbrk into a single program.
14715         * lib/gen-uni-tables.c: New file, incorporating
14716         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
14717         Add directory prefixes to the names of the generated files.
14718         * lib/unictype/gen-ctype.c: Remove file.
14719         * lib/unilbrk/gen-lbrk.c: Remove file.
14720         * modules/gen-uni-tables: New file.
14721         * modules/unictype/gen-ctype: Remove file.
14722         * modules/unilbrk/gen-lbrk: Remove file.
14723
14724 2009-02-07  Bruno Haible  <bruno@clisp.org>
14725
14726         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
14727
14728         New module 'unistr/u32-strcoll'.
14729         * modules/unistr/u32-strcoll: New file.
14730         * lib/unistr/u32-strcoll.c: New file.
14731
14732         New module 'unistr/u16-strcoll'.
14733         * modules/unistr/u16-strcoll: New file.
14734         * lib/unistr/u16-strcoll.c: New file.
14735
14736         New module 'unistr/u8-strcoll'.
14737         * modules/unistr/u8-strcoll: New file.
14738         * lib/unistr/u8-strcoll.c: New file.
14739         * lib/unistr/u-strcoll.h: New file.
14740
14741 2009-02-07  Bruno Haible  <bruno@clisp.org>
14742
14743         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
14744         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
14745         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
14746         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
14747         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
14748         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
14749
14750 2009-02-07  Bruno Haible  <bruno@clisp.org>
14751
14752         Make 64-bit clean.
14753         * lib/unictype/gen-ctype.c (output_predicate, output_category,
14754         output_combclass, output_bidi_category, output_decimal_digit,
14755         output_digit, output_numeric, output_mirror, output_scripts,
14756         output_ident_category): Use proper width specifier in format strings.
14757
14758 2009-02-07  Bruno Haible  <bruno@clisp.org>
14759
14760         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
14761         failure behaviour.
14762
14763 2009-02-07  Jim Meyering  <meyering@redhat.com>
14764
14765         regex: avoid compilation failure with upcoming gcc-4.4
14766         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
14767         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
14768         "... error: integer overflow in preprocessor expression".
14769
14770 2009-02-05  Ben Pfaff  <blp@gnu.org>
14771
14772         Fix link errors on Windows when close module is used.
14773         * modules/close: Add $(LIB_CLOSE) to Link section.
14774         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
14775         $(LIB_CLOSE) on Windows.
14776
14777 2009-02-05  Jim Meyering  <meyering@redhat.com>
14778
14779         still avoid unused-parameter warnings, but do it cleanly
14780         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
14781         (get_fs_usage): Cast to void instead.
14782         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
14783         (dev_from_mount_options, read_file_system_list): Cast to void.
14784         Prompted by Bruno Haible.
14785
14786 2009-02-04  Jim Meyering  <meyering@redhat.com>
14787
14788         fsusage.c: correct copyright year
14789         * lib/fsusage.c: Reflect year in which the change is pushed into
14790
14791         avoid misc. warnings
14792         * lib/fsusage.c (UNUSED_PARAM): Define.
14793         (get_fs_usage): Mark parameter "disk" as unused.
14794         * lib/getugroups.c (getgrent): Use "void" in prototype.
14795         * lib/mountlist.c: Mark unused parameters.
14796         (read_file_system_list): Declare a local with "const".
14797         * lib/nanosleep.c (getnow): Declare static.
14798         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
14799
14800         dirfd: set errno upon failure
14801         * lib/dirfd.c: Include <errno.h>.
14802         Set errno to ENOTSUP when returning -1.
14803         * modules/dirfd (Depends-on): Add errno.
14804         Suggested by John Kodis <kodis@comcast.net>.
14805
14806 2009-02-01  Bruno Haible  <bruno@clisp.org>
14807
14808         Don't assume sizeof (long) >= sizeof (void *).
14809         * lib/memcmp.c: Include stdint.h.
14810         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
14811         srcp2 to 'const byte *'.
14812         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
14813         types to uintptr_t.
14814         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
14815         * modules/memcmp (Depends-on): Add stdint.
14816         Reported by Ozkan Sezer <sezeroz@gmail.com>.
14817
14818 2009-01-30  Eric Blake  <ebb9@byu.net>
14819
14820         fix more require-before-expand issues
14821         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
14822         expand, AC_PROG_AWK.
14823         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
14824
14825 2009-01-28  Eric Blake  <ebb9@byu.net>
14826
14827         version-etc: use consistent URL formatting
14828         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
14829         Improve formatting.  Use fputs for string without %.
14830
14831 2009-01-28  Jim Meyering  <meyering@redhat.com>
14832
14833         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
14834         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
14835         "underquoted definition of NAME" from autoconf-2.59.
14836
14837 2009-01-28  Bruno Haible  <bruno@clisp.org>
14838
14839         * doc/gnulib.texi: Add "Obsolete modules" to index.
14840
14841 2009-01-28  Jim Meyering  <meyering@redhat.com>
14842
14843         useless-if-before-free: recognize more variants
14844         * build-aux/useless-if-before-free: Also recognize e.g.,
14845         if (NULL != p) free (p);
14846
14847 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
14848
14849         test-getaddrinfo: skip (don't fail) this test when there's no network
14850         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
14851         on the presumption that it means you lack network access.
14852
14853 2009-01-26  Jim Meyering  <meyering@redhat.com>
14854
14855         fflush: avoid warnings on modern systems
14856         * lib/fflush.c (rpl_fflush): Move declarations of locals,
14857         pos and result, into scopes where they're used.
14858
14859 2009-01-26  Eric Blake  <ebb9@byu.net>
14860
14861         Silence warning reintroduced by recent extensions patch.
14862         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
14863         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
14864         autoconf.
14865
14866         Backport improved autoconf semantics of AC_DEFUN_ONCE.
14867         * m4/00gnulib.m4: New file.
14868         * gnulib-tool (func_get_filelist): Always use it.
14869         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
14870         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
14871
14872 2009-01-25  Bruno Haible  <bruno@clisp.org>
14873
14874         Make test-quotearg work on MacOS X and AIX.
14875         * tests/test-quotearg.sh: New file.
14876         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
14877         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
14878         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
14879         include <libintl.h>.
14880         (fake_locale): Remove variable.
14881         (gettext, dgettext, dcgettext): Remove functions.
14882         (main): Instead of setting a fake locale, set a real locale. Call
14883         textdomain and bindtextdomain.
14884         * modules/quotearg-tests (Files): Add the new files.
14885         (Depends-on): Add gettext, setenv, unsetenv.
14886         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
14887         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
14888         Augment TESTS_ENVIRONMENT.
14889
14890 2009-01-25  Bruno Haible  <bruno@clisp.org>
14891
14892         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
14893         fr_FR.ISO8859-1 locale on MacOS X.
14894         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
14895         ja_JP.eucJP locale on MacOS X.
14896         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
14897         zh_CN.GB18030 locale on MacOS X.
14898
14899 2009-01-25  Bruno Haible  <bruno@clisp.org>
14900
14901         Avoid link errors on MacOS X 10.3.
14902         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
14903         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
14904
14905 2009-01-25  Bruno Haible  <bruno@clisp.org>
14906
14907         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
14908         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
14909         * modules/pipe (Files): Remove m4/posix_spawn.m4.
14910         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
14911         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
14912         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
14913         posix_spawnattr_init, posix_spawnattr_setsigmask,
14914         posix_spawnattr_setflags, posix_spawnattr_destroy.
14915
14916         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
14917         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
14918         * modules/execute (Files): Remove m4/posix_spawn.m4.
14919         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
14920         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
14921         posix_spawnattr_init, posix_spawnattr_setsigmask,
14922         posix_spawnattr_setflags, posix_spawnattr_destroy.
14923
14924 2009-01-25  Bruno Haible  <bruno@clisp.org>
14925
14926         * lib/glthread/threadlib.c: Include <stdlib.h>.
14927
14928 2009-01-25  Bruno Haible  <bruno@clisp.org>
14929
14930         * lib/glthread/threadlib.c (dummy): New declaration.
14931
14932 2009-01-25  Bruno Haible  <bruno@clisp.org>
14933
14934         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
14935         multibyte characters also for the GB18030 encoding. Don't crash when
14936         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
14937
14938 2009-01-25  Bruno Haible  <bruno@clisp.org>
14939
14940         Avoid redefining 'struct random_data' on OSF/1 5.1.
14941         * lib/stdlib.in.h: Include <random.h> if it exists.
14942         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
14943         HAVE_RANDOM_H. Include <random.h> when testing whether
14944         'struct random_data' exists.
14945         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
14946
14947 2009-01-25  Bruno Haible  <bruno@clisp.org>
14948
14949         Don't install charset.alias on MacOS X >= 10.3.
14950         * lib/localcharset.c (DARWIN7): New macro.
14951         (get_charset_aliases): Hardcode the result for Darwin7.
14952         * modules/localcharset (install-exec-local): Don't install
14953         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
14954
14955 2009-01-25  Bruno Haible  <bruno@clisp.org>
14956
14957         Don't install charset.alias on mingw and Cygwin.
14958         * modules/localcharset (install-exec-local): Don't install
14959         charset.alias on mingw and Cygwin, if the file does not yet exist.
14960         The result for these platforms is hardcoded in localcharset.c.
14961
14962 2009-01-25  Bruno Haible  <bruno@clisp.org>
14963
14964         Make it possible again to use AC_GNU_SOURCE together with gnulib.
14965         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
14966         before requiring AC_USE_SYSTEM_EXTENSIONS.
14967
14968 2009-01-25  Jim Meyering  <meyering@redhat.com>
14969
14970         c-strtod: avoid warnings
14971         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
14972         "assignment discards qualifiers from pointer target type" warnings.
14973
14974 2009-01-24  Bruno Haible  <bruno@clisp.org>
14975
14976         Add support for non-UTF-8 locales on MacOS X.
14977         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
14978         canonical encodings. For Darwin 7 and newer, don't map traditional
14979         encodings to UTF-8.
14980         Reported by Vincent Lefevre <vincent@vinc17.org>
14981         at <http://savannah.gnu.org/bugs/?25235>.
14982
14983 2009-01-24  Bruno Haible  <bruno@clisp.org>
14984
14985         * doc/gnulib.texi (Obsolete modules): New section.
14986         Reported by Mike Frysinger <vapier@gentoo.org>.
14987
14988 2009-01-24  Bruno Haible  <bruno@clisp.org>
14989
14990         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
14991         (%.dvi): New rule.
14992
14993 2009-01-24  Bruno Haible  <bruno@clisp.org>
14994
14995         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
14996         Reported by Eric Blake.
14997
14998 2009-01-24  Bruno Haible  <bruno@clisp.org>
14999
15000         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
15001         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
15002         Reported by Gary V. Vaughan <gary@gnu.org>.
15003
15004 2009-01-24  Bruno Haible  <bruno@clisp.org>
15005
15006         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
15007
15008 2009-01-23  Bruno Haible  <bruno@clisp.org>
15009
15010         Make c-strtod, c-strtold usable in libraries.
15011         * lib/c-strtod.c: Include string.h instead of xalloc.h.
15012         (C_STRTOD): Call strdup instead of xstrdup.
15013         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
15014         * modules/c-strtold (Depends-on): Likewise.
15015         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
15016         * NEWS: Mention the change.
15017         Reported by Michael Gold <mgold@ncf.ca>.
15018
15019 2009-01-23  Jim Meyering  <meyering@redhat.com>
15020
15021         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
15022         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
15023         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
15024
15025 2009-01-23  Simon Josefsson  <simon@josefsson.org>
15026
15027         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
15028         GNU CoreUtils.
15029         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
15030         * modules/version-etc (Description): Update.
15031
15032 2009-01-22  Bruno Haible  <bruno@clisp.org>
15033
15034         Cache the C locale object.
15035         * lib/c-strtod.c (c_locale_cache): New variable.
15036         (c_locale): New function.
15037         (C_STRTOD): Use it, and don't call freelocale.
15038         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
15039         Suggested by Paolo Bonzini.
15040
15041 2009-01-21  Bruno Haible  <bruno@clisp.org>
15042
15043         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
15044         conditions other than overflow.
15045
15046 2009-01-21  Bruno Haible  <bruno@clisp.org>
15047
15048         * lib/c-strtod.c: Include errno.h.
15049         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
15050         value from STRTOD_L and STRTOD.
15051
15052 2009-01-21  Bruno Haible  <bruno@clisp.org>
15053         and Jim Meyering  <meyering@redhat.com>
15054
15055         nanosleep: skip configure test (fail it) for apple universal builds
15056         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
15057         universal builds, assume that nanosleep does not work.
15058         * modules/nanosleep (Depends-on): Add multiarch.
15059
15060         mktime: skip configure test (fail it) for apple universal builds
15061         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
15062         universal builds, assume that mktime does not work.
15063         * modules/mktime (Depends-on): Add multiarch.
15064
15065 2009-01-21  Eric Blake  <ebb9@byu.net>
15066
15067         multiarch: avoid expand-before-require warning
15068         * modules/multiarch (configure.ac): Require, rather than expand,
15069         gl_MULTIARCH.
15070         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
15071         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
15072         enforce that all clients require it.  Partial reversion of
15073         2008-12-29 patch.
15074
15075         error: avoid expand-before-require warning
15076         * modules/errno (configure.ac): Require, rather than expand,
15077         gl_HEADER_ERRNO_H.
15078         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
15079         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
15080         enforce that all clients require it.
15081
15082         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
15083         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
15084         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
15085         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
15086
15087 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
15088
15089         Revert:
15090         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
15091
15092         regex: do not depend on obsolete modules.
15093         * modules/regex: Remove memcmp and memmove.
15094
15095 2009-01-20  Bruno Haible  <bruno@clisp.org>
15096
15097         Make the 'link' module link on Windows NT 4.
15098         * lib/link.c (_WIN32_WINNT): Don't define.
15099         (CreateHardLinkFuncType): New type.
15100         (CreateHardLinkFunc, initialized): New variables.
15101         (initialize): New function.
15102         (link): Invoke CreateHardLink indirectly through the function pointer.
15103
15104 2009-01-20  Bruno Haible  <bruno@clisp.org>
15105
15106         Fix compilation failure on mingw.
15107         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
15108
15109 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
15110
15111         * doc/c-strtod.texi: Mention a couple of restrictions.
15112
15113 2009-01-20  Jim Meyering  <meyering@redhat.com>
15114
15115         gettimeofday: move more declarations out of functions
15116         * lib/gettimeofday.c: Move extern declarations of tzset and
15117         gmtime out of containing functions.  Prompted by Bruno Haible.
15118
15119 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
15120
15121         regex: do not depend on obsolete modules.
15122         * modules/regex: Remove memcmp and memmove.
15123
15124 2009-01-19  Bruno Haible  <bruno@clisp.org>
15125
15126         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
15127         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
15128         gl_BIGENDIAN, not AC_C_BIGENDIAN.
15129         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
15130         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
15131
15132 2009-01-19  Bruno Haible  <bruno@clisp.org>
15133
15134         * tests/test-link.c: Include <errno.h>.
15135         (main): Exit with code 77 when a hard link cannot be created due to
15136         the file system.
15137         * tests/test-link.sh: Skip test when a hard link cannot be created due
15138         to the file system.
15139         Suggested by Eric Blake.
15140
15141 2009-01-19  Martin Lambers  <marlam@marlam.de>
15142
15143         * modules/link-tests: New file.
15144         * tests/test-link.sh: New file.
15145         * tests/test-link.c: New file.
15146
15147 2009-01-19  Eric Blake  <ebb9@byu.net>
15148
15149         doc: mention another function added in cygwin 1.7.0
15150         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
15151         Another new function in cygwin 1.7.
15152
15153 2009-01-19  Bruno Haible  <bruno@clisp.org>
15154
15155         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
15156         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
15157         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
15158         gl_BIGENDIAN, not AC_C_BIGENDIAN.
15159         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15160         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
15161         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15162         * m4/md4.m4 (gl_MD4): Likewise.
15163         * m4/md5.m4 (gl_MD5): Likewise.
15164         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
15165         * m4/sha1.m4 (gl_SHA1): Likewise.
15166         * m4/sha256.m4 (gl_SHA256): Likewise.
15167         * m4/sha512.m4 (gl_SHA512): Likewise.
15168
15169 2009-01-19  Bruno Haible  <bruno@clisp.org>
15170
15171         * modules/uniname/uniname-tests (Depends-on): Add progname.
15172         * tests/uniname/test-uninames.c: Include progname.h.
15173         (main): Call set_program_name.
15174
15175         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
15176         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
15177         (main): Call set_program_name.
15178
15179         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
15180         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
15181         (main): Call set_program_name.
15182
15183         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
15184         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
15185         (main): Call set_program_name.
15186
15187         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
15188         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
15189         (main): Call set_program_name.
15190
15191         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
15192         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
15193         (main): Call set_program_name.
15194
15195         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
15196         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
15197         (main): Call set_program_name.
15198
15199         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
15200         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
15201         (main): Call set_program_name.
15202
15203         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
15204         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
15205         (main): Call set_program_name.
15206
15207 2009-01-19  Eric Blake  <ebb9@byu.net>
15208
15209         test-unistd: test previous patch
15210         * tests/test-unistd.c: Test *_FILENO macros.
15211
15212         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
15213         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15214         Guarantee a definition.
15215         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
15216         * modules/unistd-safer (Depends-on): Add dependency on unistd.
15217         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
15218         * lib/dup-safer.c (STDERR_FILENO): Likewise.
15219         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15220         Likewise.
15221         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
15222         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
15223         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15224         Likewise.
15225         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
15226         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
15227         (STDERR_FILENO): Likewise.
15228         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
15229         (STDERR_FILENO): Likewise.
15230         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
15231         (STDERR_FILENO): Likewise.
15232         Reported by Elbert Pol.
15233
15234 2009-01-19  Eric Blake  <ebb9@byu.net>
15235
15236         doc: mention more functions added in cygwin 1.7.0
15237         * doc/posix-functions/abort.texi (abort): Update wording related
15238         to cygwin.
15239         * doc/posix-functions/daylight.texi (daylight): Likewise.
15240         * doc/posix-functions/optarg.texi (optarg): Likewise.
15241         * doc/posix-functions/optarg.texi (opterr): Likewise.
15242         * doc/posix-functions/optarg.texi (optind): Likewise.
15243         * doc/posix-functions/optarg.texi (optopt): Likewise.
15244         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
15245         worked in 1.5.x, and was withdrawn in 1.7.
15246         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15247         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
15248         cygwin versions.
15249         * doc/posix-functions/perror.texi (perror): Likewise.
15250         * doc/posix-functions/printf.texi (printf): Likewise.
15251         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
15252         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
15253         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15254         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15255         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15256         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
15257         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
15258         Likewise.
15259         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
15260         Likewise.
15261         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
15262         this function.
15263         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
15264         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
15265         Likewise.
15266         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
15267         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
15268         * doc/posix-functions/confstr.texi (confstr): Likewise.
15269         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
15270         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
15271         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
15272         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
15273         * doc/posix-functions/fputws.texi (fputws): Likewise.
15274         * doc/posix-functions/fwide.texi (fwide): Likewise.
15275         * doc/posix-functions/getwc.texi (getwc): Likewise.
15276         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
15277         * doc/posix-functions/putwc.texi (putwc): Likewise.
15278         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15279         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
15280         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
15281         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15282         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
15283         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
15284         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
15285         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
15286         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
15287         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
15288         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
15289
15290 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
15291
15292         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
15293         * lib/ioctl.c: Include <sys/ioctl.h>.
15294
15295 2009-01-19  Simon Josefsson  <simon@josefsson.org>
15296
15297         * modules/getdate-tests (Depends-on): Add progname.
15298         * tests/test-getdate.c: Use progname module, to avoid link errors
15299         on non-glibc systems.
15300
15301 2009-01-18  Simon Josefsson  <simon@josefsson.org>
15302
15303         * modules/filenamecat-tests (Depends-on): Add progname.
15304         * modules/fstrcmp-tests (Depends-on): Likewise.
15305
15306         * tests/test-filenamecat.c: Use progname module, to avoid link
15307         errors on non-glibc systems.
15308         * tests/test-fstrcmp.c: Likewise.
15309
15310 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
15311
15312         gettimeofday: avoid warning: nested extern declaration of 'localtime'
15313         * lib/gettimeofday.c: Move extern declaration out of function.
15314
15315 2009-01-18  Bruno Haible  <bruno@clisp.org>
15316
15317         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
15318         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
15319         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
15320
15321 2009-01-18  Bruno Haible  <bruno@clisp.org>
15322
15323         * lib/strftime.c (MEMPCPY): Remove unused macro.
15324         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
15325
15326 2009-01-18  Martin Lambers  <marlam@marlam.de>
15327
15328         New module 'link'.
15329         * lib/unistd.in.h (link): New declaration.
15330         * lib/link.c: New file.
15331         * m4/link.m4: New file.
15332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
15333         HAVE_LINK.
15334         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
15335         * modules/link: New file.
15336         * doc/posix-functions/link.texi: Mention the new module.
15337
15338 2009-01-18  Bruno Haible  <bruno@clisp.org>
15339
15340         * tests/test-avltree_list.c (main): Call set_program_name.
15341         * tests/test-avltree_oset.c (main): Likewise.
15342         * tests/test-obstack-printf.c: Include progname.h.
15343         (main): Call set_program_name.
15344         * tests/test-quotearg.c: Include progname.h.
15345         (main): Call set_program_name.
15346         * tests/test-xmemdup0.c: Include progname.h.
15347         (main): Call set_program_name.
15348
15349 2009-01-18  Bruno Haible  <bruno@clisp.org>
15350
15351         New module 'alphasort'.
15352         * lib/dirent.in.h (alphasort): New declaration.
15353         * lib/alphasort.c: New file, from glibc with modifications.
15354         * m4/alphasort.m4: New file.
15355         * modules/alphasort: New file.
15356         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
15357         HAVE_ALPHASORT.
15358         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
15359         HAVE_ALPHASORT.
15360         * doc/posix-functions/alphasort.texi: Mention the new module and the
15361         portability problems.
15362
15363 2009-01-18  Bruno Haible  <bruno@clisp.org>
15364
15365         New module 'scandir'.
15366         * lib/dirent.in.h (scandir): New declaration.
15367         * lib/scandir.c: New file, from glibc with modifications.
15368         * m4/scandir.m4: New file.
15369         * modules/scandir: New file.
15370         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
15371         HAVE_SCANDIR.
15372         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
15373         HAVE_SCANDIR.
15374         * doc/posix-functions/scandir.texi: Mention the new module and the
15375         portability problems.
15376
15377 2009-01-17  Bruno Haible  <bruno@clisp.org>
15378
15379         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
15380         Update documentation.
15381         (func_remove_suffix): Escape all dots in the suffix. Update
15382         documentation.
15383         (func_filter_filelist): Update documentation.
15384         Reported by Ralf Wildenhues.
15385
15386 2009-01-17  Bruno Haible  <bruno@clisp.org>
15387
15388         * modules/dprintf-posix-tests: New file.
15389         * tests/test-dprintf-posix.sh: New file.
15390         * tests/test-dprintf-posix.c: New file.
15391
15392         New modules 'dprintf', 'dprintf-posix'.
15393         * lib/stdio.in.h (dprintf): New declaration.
15394         * lib/dprintf.c: New file.
15395         * m4/dprintf.m4: New file.
15396         * m4/dprintf-posix.m4: New file.
15397         * modules/dprintf: New file.
15398         * modules/dprintf-posix: New file.
15399         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
15400         HAVE_DPRINTF, REPLACE_DPRINTF.
15401         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
15402         HAVE_DPRINTF, REPLACE_DPRINTF.
15403         * doc/posix-functions/dprintf.texi: Mention the new modules.
15404
15405 2009-01-17  Bruno Haible  <bruno@clisp.org>
15406
15407         * modules/vdprintf-posix-tests: New file.
15408         * tests/test-vdprintf-posix.sh: New file.
15409         * tests/test-vdprintf-posix.c: New file.
15410
15411         New modules 'vdprintf', 'vdprintf-posix'.
15412         * lib/stdio.in.h (vdprintf): New declaration.
15413         * lib/vdprintf.c: New file.
15414         * m4/vdprintf.m4: New file.
15415         * m4/vdprintf-posix.m4: New file.
15416         * modules/vdprintf: New file.
15417         * modules/vdprintf-posix: New file.
15418         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
15419         HAVE_VDPRINTF, REPLACE_VDPRINTF.
15420         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
15421         HAVE_VDPRINTF, REPLACE_VDPRINTF.
15422         * doc/posix-functions/vdprintf.texi: Mention the new modules.
15423
15424 2009-01-17  Bruno Haible  <bruno@clisp.org>
15425
15426         Fix replacement of fopen on mingw.
15427         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
15428         mingw.
15429
15430 2009-01-17  Bruno Haible  <bruno@clisp.org>
15431
15432         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
15433         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
15434
15435 2009-01-17  Bruno Haible  <bruno@clisp.org>
15436
15437         Avoid test-fflush2.sh failure on mingw.
15438         * tests/test-fflush2.c: Include binary-io.h.
15439         (main): Put standard input into binary mode.
15440         * modules/fflush-tests (Depends-on): Add binary-io.
15441
15442 2009-01-17  Bruno Haible  <bruno@clisp.org>
15443
15444         * lib/wchar.in.h: In another particular situation, include only the
15445         system's <wchar.h> file.
15446         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
15447         Reported by Albert Chin-A-Young <china@thewrittenword.com>
15448         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
15449
15450 2009-01-17  Bruno Haible  <bruno@clisp.org>
15451
15452         Support for stripping executables in --enable-relocatable.
15453         * build-aux/install-reloc: Expect one more argument, or an environment
15454         variable RELOC_STRIP_PROG. If set, strip the destination program and
15455         its wrapper.
15456         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
15457         RELOC_STRIP_PROG.
15458         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
15459         to set RELOCATABLE_STRIP.
15460         * NEWS: Mention the new Makefile requirement.
15461
15462 2009-01-17  Bruno Haible  <bruno@clisp.org>
15463
15464         * build-aux/install-reloc: Remove debugging information left over by
15465         C compiler on MacOS X.
15466
15467 2009-01-17  Bruno Haible  <bruno@clisp.org>
15468
15469         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
15470         * lib/progreloc.c (find_executable): Fix type of pointer passed to
15471         _NSGetExecutablePath.
15472
15473 2009-01-16  Jim Meyering  <meyering@redhat.com>
15474
15475         strerror: avoid warnings about discarding "const"
15476         * lib/strerror.c (rpl_strerror): Instead of returning a const
15477         string from each and every "case", use a variable, and add a single
15478         cast after the switch.
15479
15480 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
15481
15482         * lib/arpa_inet.in.h: Add extern "C" block for C++.
15483
15484 2009-01-16  Bruno Haible  <bruno@clisp.org>
15485
15486         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
15487         array initializer syntax that also works in C++ mode.
15488         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15489
15490 2009-01-16  Jim Meyering  <meyering@redhat.com>
15491
15492         poll: suppress a warning
15493         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
15494         to ignore "...unsigned expression < 0 is always false" warnings.
15495
15496 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
15497
15498         poll: remove declarations of unused variables
15499         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
15500         sockbuf and optlen.
15501
15502 2009-01-15  Bruno Haible  <bruno@clisp.org>
15503
15504         Make fflush-after-ungetc POSIX compliant on BSD systems.
15505         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
15506         (clear_ungetc_buffer): Implement also for other systems.
15507         (rpl_fflush): On glibc systems, invoke
15508         clear_ungetc_buffer_preserving_position. Otherwise, invoke
15509         clear_ungetc_buffer after fetching the stream's position, not before.
15510
15511 2009-01-15  Bruno Haible  <bruno@clisp.org>
15512
15513         Make fflush-after-ungetc POSIX compliant on glibc systems.
15514         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
15515         after ungetc.
15516         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
15517         (rpl_fflush): On glibc systems, simply call the system's fflush
15518         function after clearing the ungetc buffer.
15519         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
15520         Instead, lseek only to the end of file, then use the system's fseeko
15521         for the rest. On glibc systems, reset the EOF indicator bit.
15522
15523 2009-01-15  Jim Meyering  <meyering@redhat.com>
15524
15525         openmp.m4: revert quote-adding change, for portability to older autoconf
15526         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
15527         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
15528         Simon Josefsson noticed the problem when using autoconf-2.61.
15529
15530 2009-01-15  Bruno Haible  <bruno@clisp.org>
15531
15532         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
15533         * tests/test-fflush2.c (ASSERT): Always fail.
15534         (main): Add two tests for fflush() after ungetc(), taking into account
15535         the Austin Group's clarification.
15536         Suggested by Eric Blake.
15537
15538 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
15539
15540         mktime.m4: remove K&R-style function prototypes
15541         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
15542         for the Sun C++ compiler.
15543
15544 2009-01-14  Bruno Haible  <bruno@clisp.org>
15545
15546         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
15547         while including <wchar.h>.
15548         * lib/wchar.in.h: In two particular situations on HP-UX, include only
15549         the system's <wchar.h> file.
15550         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15551
15552 2009-01-14  Bruno Haible  <bruno@clisp.org>
15553
15554         * m4/csharp.m4: Don't mention gettext on the serial number line.
15555         * m4/csharpexec.m4: Likewise.
15556         * m4/eaccess.m4: Likewise.
15557         * m4/javaexec.m4: Likewise.
15558         * m4/sig_atomic_t.m4: Likewise.
15559         * m4/tmpdir.m4: Likewise.
15560         * m4/intldir.m4: Bump gettext version.
15561         * m4/lib-ld.m4: Likewise.
15562
15563 2009-01-14  Bruno Haible  <bruno@clisp.org>
15564
15565         * lib/progname.c (set_program_name): Add more comments.
15566         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
15567
15568 2009-01-14  Simon Josefsson  <simon@josefsson.org>
15569
15570         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
15571         were sys/stat.h does not define it.
15572
15573 2009-01-14  Jim Meyering  <meyering@redhat.com>
15574
15575         many *.m4 files: improve m4 quoting
15576         99% of this change was performed by running the following commands:
15577         git ls-files | grep '\.m4$' | xargs perl -pi \
15578           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
15579           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
15580           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
15581           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
15582         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
15583         The remainder were to add Copyright dates, increment serial numbers,
15584         undo some changes in comments, exclude m4/intl.m4, and add quotes
15585         around the "1" in ",1" where the unusual spacing prohibited the
15586         above regexps from doing the job.  For more details, see
15587         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
15588         * m4/acl.m4: Modified.
15589         * m4/afs.m4: Likewise.
15590         * m4/alloca.m4: Likewise.
15591         * m4/argp.m4: Likewise.
15592         * m4/argz.m4: Likewise.
15593         * m4/atexit.m4: Likewise.
15594         * m4/bison-i18n.m4: Likewise.
15595         * m4/bison.m4: Likewise.
15596         * m4/byteswap.m4: Likewise.
15597         * m4/c-stack.m4: Likewise.
15598         * m4/c-strtod.m4: Likewise.
15599         * m4/calloc.m4: Likewise.
15600         * m4/canonicalize-lgpl.m4: Likewise.
15601         * m4/chown.m4: Likewise.
15602         * m4/clock_time.m4: Likewise.
15603         * m4/codeset.m4: Likewise.
15604         * m4/copy-file.m4: Likewise.
15605         * m4/csharp.m4: Likewise.
15606         * m4/csharpcomp.m4: Likewise.
15607         * m4/csharpexec.m4: Likewise.
15608         * m4/d-ino.m4: Likewise.
15609         * m4/d-type.m4: Likewise.
15610         * m4/dirfd.m4: Likewise.
15611         * m4/double-slash-root.m4: Likewise.
15612         * m4/eaccess.m4: Likewise.
15613         * m4/eealloc.m4: Likewise.
15614         * m4/environ.m4: Likewise.
15615         * m4/errno_h.m4: Likewise.
15616         * m4/euidaccess.m4: Likewise.
15617         * m4/execute.m4: Likewise.
15618         * m4/fatal-signal.m4: Likewise.
15619         * m4/fchdir.m4: Likewise.
15620         * m4/fcntl_h.m4: Likewise.
15621         * m4/fileblocks.m4: Likewise.
15622         * m4/filenamecat.m4: Likewise.
15623         * m4/findprog.m4: Likewise.
15624         * m4/flexmember.m4: Likewise.
15625         * m4/fnmatch.m4: Likewise.
15626         * m4/fopen.m4: Likewise.
15627         * m4/fpending.m4: Likewise.
15628         * m4/fprintf-posix.m4: Likewise.
15629         * m4/free.m4: Likewise.
15630         * m4/frexp.m4: Likewise.
15631         * m4/frexpl.m4: Likewise.
15632         * m4/fsusage.m4: Likewise.
15633         * m4/ftruncate.m4: Likewise.
15634         * m4/gc-camellia.m4: Likewise.
15635         * m4/gc-random.m4: Likewise.
15636         * m4/gc.m4: Likewise.
15637         * m4/getaddrinfo.m4: Likewise.
15638         * m4/getcwd-abort-bug.m4: Likewise.
15639         * m4/getcwd-path-max.m4: Likewise.
15640         * m4/getdate.m4: Likewise.
15641         * m4/getdomainname.m4: Likewise.
15642         * m4/getgroups.m4: Likewise.
15643         * m4/gethostname.m4: Likewise.
15644         * m4/gethrxtime.m4: Likewise.
15645         * m4/getline.m4: Likewise.
15646         * m4/getloadavg.m4: Likewise.
15647         * m4/getndelim2.m4: Likewise.
15648         * m4/getpass.m4: Likewise.
15649         * m4/gettext.m4: Likewise.
15650         * m4/gettime.m4: Likewise.
15651         * m4/gettimeofday.m4: Likewise.
15652         * m4/gnulib-common.m4: Likewise.
15653         * m4/group-member.m4: Likewise.
15654         * m4/host-os.m4: Likewise.
15655         * m4/iconv.m4: Likewise.
15656         * m4/iconv_open.m4: Likewise.
15657         * m4/inet_ntop.m4: Likewise.
15658         * m4/inet_pton.m4: Likewise.
15659         * m4/inline.m4: Likewise.
15660         * m4/intldir.m4: Likewise.
15661         * m4/intlmacosx.m4: Likewise.
15662         * m4/intmax.m4: Likewise.
15663         * m4/intmax_t.m4: Likewise.
15664         * m4/inttypes.m4: Likewise.
15665         * m4/inttypes_h.m4: Likewise.
15666         * m4/inttypes-pri.m4: Likewise.
15667         * m4/isapipe.m4: Likewise.
15668         * m4/isnand.m4: Likewise.
15669         * m4/isnanf.m4: Likewise.
15670         * m4/isnanl.m4: Likewise.
15671         * m4/javacomp.m4: Likewise.
15672         * m4/javaexec.m4: Likewise.
15673         * m4/jm-winsz1.m4: Likewise.
15674         * m4/jm-winsz2.m4: Likewise.
15675         * m4/lchown.m4: Likewise.
15676         * m4/lcmessage.m4: Likewise.
15677         * m4/ldexpl.m4: Likewise.
15678         * m4/lib-ld.m4: Likewise.
15679         * m4/lib-link.m4: Likewise.
15680         * m4/libsigsegv.m4: Likewise.
15681         * m4/link-follow.m4: Likewise.
15682         * m4/localcharset.m4: Likewise.
15683         * m4/locale-fr.m4: Likewise.
15684         * m4/locale-ja.m4: Likewise.
15685         * m4/locale-tr.m4: Likewise.
15686         * m4/locale-zh.m4: Likewise.
15687         * m4/lock.m4: Likewise.
15688         * m4/longlong.m4: Likewise.
15689         * m4/ls-mntd-fs.m4: Likewise.
15690         * m4/lstat.m4: Likewise.
15691         * m4/malloc.m4: Likewise.
15692         * m4/mathl.m4: Likewise.
15693         * m4/mbrtowc.m4: Likewise.
15694         * m4/mbstate_t.m4: Likewise.
15695         * m4/mbswidth.m4: Likewise.
15696         * m4/memchr.m4: Likewise.
15697         * m4/memcmp.m4: Likewise.
15698         * m4/memcpy.m4: Likewise.
15699         * m4/memmem.m4: Likewise.
15700         * m4/memmove.m4: Likewise.
15701         * m4/mempcpy.m4: Likewise.
15702         * m4/memrchr.m4: Likewise.
15703         * m4/memset.m4: Likewise.
15704         * m4/minmax.m4: Likewise.
15705         * m4/mkdir-slash.m4: Likewise.
15706         * m4/mkdtemp.m4: Likewise.
15707         * m4/mktime.m4: Likewise.
15708         * m4/mmap-anon.m4: Likewise.
15709         * m4/mountlist.m4: Likewise.
15710         * m4/nanosleep.m4: Likewise.
15711         * m4/nls.m4: Likewise.
15712         * m4/nocrash.m4: Likewise.
15713         * m4/open.m4: Likewise.
15714         * m4/openat.m4: Likewise.
15715         * m4/openmp.m4: Likewise.
15716         * m4/pathmax.m4: Likewise.
15717         * m4/perl.m4: Likewise.
15718         * m4/physmem.m4: Likewise.
15719         * m4/pipe.m4: Likewise.
15720         * m4/po.m4: Likewise.
15721         * m4/poll.m4: Likewise.
15722         * m4/posixtm.m4: Likewise.
15723         * m4/posixver.m4: Likewise.
15724         * m4/printf-frexp.m4: Likewise.
15725         * m4/printf-frexpl.m4: Likewise.
15726         * m4/printf-posix.m4: Likewise.
15727         * m4/printf-posix-rpl.m4: Likewise.
15728         * m4/printf.m4: Likewise.
15729         * m4/progtest.m4: Likewise.
15730         * m4/putenv.m4: Likewise.
15731         * m4/readline.m4: Likewise.
15732         * m4/readlink.m4: Likewise.
15733         * m4/readutmp.m4: Likewise.
15734         * m4/realloc.m4: Likewise.
15735         * m4/regex.m4: Likewise.
15736         * m4/relocatable.m4: Likewise.
15737         * m4/relocatable-lib.m4: Likewise.
15738         * m4/rename-dest-slash.m4: Likewise.
15739         * m4/rename.m4: Likewise.
15740         * m4/rmdir-errno.m4: Likewise.
15741         * m4/rmdir.m4: Likewise.
15742         * m4/roundf.m4: Likewise.
15743         * m4/roundl.m4: Likewise.
15744         * m4/rpmatch.m4: Likewise.
15745         * m4/save-cwd.m4: Likewise.
15746         * m4/selinux-selinux-h.m4: Likewise.
15747         * m4/setenv.m4: Likewise.
15748         * m4/settime.m4: Likewise.
15749         * m4/sig2str.m4: Likewise.
15750         * m4/sig_atomic_t.m4: Likewise.
15751         * m4/signalblocking.m4: Likewise.
15752         * m4/signbit.m4: Likewise.
15753         * m4/sigpipe.m4: Likewise.
15754         * m4/sockets.m4: Likewise.
15755         * m4/sockpfaf.m4: Likewise.
15756         * m4/st_dm_mode.m4: Likewise.
15757         * m4/stat-time.m4: Likewise.
15758         * m4/stdbool.m4: Likewise.
15759         * m4/stdint.m4: Likewise.
15760         * m4/stdint_h.m4: Likewise.
15761         * m4/stpcpy.m4: Likewise.
15762         * m4/stpncpy.m4: Likewise.
15763         * m4/strcase.m4: Likewise.
15764         * m4/strchrnul.m4: Likewise.
15765         * m4/strcspn.m4: Likewise.
15766         * m4/strdup.m4: Likewise.
15767         * m4/strftime.m4: Likewise.
15768         * m4/strndup.m4: Likewise.
15769         * m4/strnlen.m4: Likewise.
15770         * m4/strpbrk.m4: Likewise.
15771         * m4/strptime.m4: Likewise.
15772         * m4/strsep.m4: Likewise.
15773         * m4/strtod.m4: Likewise.
15774         * m4/strtoimax.m4: Likewise.
15775         * m4/strtok_r.m4: Likewise.
15776         * m4/strtol.m4: Likewise.
15777         * m4/strtoll.m4: Likewise.
15778         * m4/strtoul.m4: Likewise.
15779         * m4/strtoull.m4: Likewise.
15780         * m4/strtoumax.m4: Likewise.
15781         * m4/strverscmp.m4: Likewise.
15782         * m4/threadlib.m4: Likewise.
15783         * m4/timegm.m4: Likewise.
15784         * m4/tm_gmtoff.m4: Likewise.
15785         * m4/tmpdir.m4: Likewise.
15786         * m4/tmpfile.m4: Likewise.
15787         * m4/tzset.m4: Likewise.
15788         * m4/uintmax_t.m4: Likewise.
15789         * m4/unlinkdir.m4: Likewise.
15790         * m4/unlocked-io.m4: Likewise.
15791         * m4/uptime.m4: Likewise.
15792         * m4/userspec.m4: Likewise.
15793         * m4/utimbuf.m4: Likewise.
15794         * m4/utime.m4: Likewise.
15795         * m4/utimes-null.m4: Likewise.
15796         * m4/utimes.m4: Likewise.
15797         * m4/vararrays.m4: Likewise.
15798         * m4/vasnprintf.m4: Likewise.
15799         * m4/vfprintf-posix.m4: Likewise.
15800         * m4/vprintf-posix.m4: Likewise.
15801         * m4/wait-process.m4: Likewise.
15802         * m4/wchar_t.m4: Likewise.
15803         * m4/wint_t.m4: Likewise.
15804         * m4/write-any-file.m4: Likewise.
15805         * m4/yield.m4: Likewise.
15806
15807 2009-01-13  Bruno Haible  <bruno@clisp.org>
15808
15809         Avoid test-copy-file.sh failures when ACL support insufficient.
15810         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
15811         TESTS_ENVIRONMENT.
15812         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
15813         Reported by Jim Meyering.
15814
15815 2009-01-13  Bruno Haible  <bruno@clisp.org>
15816
15817         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
15818         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
15819         * modules/unistdio/u8-printf-parse (Files): Likewise.
15820         * modules/unistdio/u32-printf-parse (Files): Likewise.
15821         * modules/unistdio/ulc-printf-parse (Files): Likewise.
15822
15823 2009-01-13  Simon Josefsson  <simon@josefsson.org>
15824
15825         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
15826         and m4/inttypes_h.m4 too.
15827
15828 2009-01-12  Eric Blake  <ebb9@byu.net>
15829
15830         tests: IRIX 6.2 cc can't compile -0.0 into .data
15831         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
15832         rather than at compile-time.
15833         * tests/test-floorl.c (minus_zero): Likewise.
15834         * tests/test-frexpl.c (minus_zero): Likewise.
15835         * tests/test-isnan.c (minus_zerol): Likewise.
15836         * tests/test-isnanl.h (minus_zero): Likewise.
15837         * tests/test-ldexpl.c (minus_zero): Likewise.
15838         * tests/test-roundl.c (minus_zero): Likewise.
15839         * tests/test-signbit.c (minus_zerol): Likewise.
15840         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
15841         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
15842         * tests/test-truncl.c (minus_zero): Likewise.
15843         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
15844         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
15845         Reported by Tom G. Christensen and Nelson H. F. Beebe.
15846
15847 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
15848
15849         regex: fix glibc bug 9697
15850         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
15851         handling.
15852
15853 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
15854
15855         regex: fix glibc bug 697
15856         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
15857         being NULL also if there are no backreferences.
15858
15859 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
15860
15861         regex: merge glibc changes
15862         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
15863         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
15864         re_string_skip_chars, re_string_reconstruct): Likewise.
15865         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
15866
15867 2009-01-07  Jim Meyering  <meyering@redhat.com>
15868
15869         poll: filter through cppi
15870         * lib/poll.c: Indent cpp directives to reflect nesting.
15871
15872 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
15873
15874         poll: don't return uninitialized
15875         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
15876
15877 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
15878
15879         avoid compile failure on AIX 6.1
15880         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
15881         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
15882
15883 2009-01-04  Jim Meyering  <meyering@redhat.com>
15884
15885         remove duplicate inclusion of <stdio.h>
15886         * tests/test-fprintf-posix.c: Likewise.
15887         * tests/test-printf-posix.c: Likewise.
15888         * tests/test-snprintf-posix.c: Likewise.
15889         * tests/test-sprintf-posix.c: Likewise.
15890         * tests/test-vasprintf-posix.c: Likewise.
15891         * tests/test-vfprintf-posix.c: Likewise.
15892         * tests/test-vprintf-posix.c: Likewise.
15893         * tests/test-vsnprintf-posix.c: Likewise.
15894         * tests/test-vsprintf-posix.c: Likewise.
15895
15896 2009-01-03  Jim Meyering  <meyering@redhat.com>
15897
15898         gnulib-tool: fix sed-based filtering
15899         * gnulib-tool (func_filter_filelist): Remove extra backslash
15900         in sed_fff_filter definition.
15901
15902 2009-01-02  Jim Meyering  <meyering@redhat.com>
15903
15904         strftime: avoid compilation failure on Solaris 2.6
15905         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
15906         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
15907         Don't #define mbrlen or mbsinit, since now they're guaranteed to
15908         be available.  Reported by Tom G. Christensen.  Details in
15909         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
15910
15911 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15912             Bruno Haible  <bruno@clisp.org>
15913
15914         Speed up gnulib-tool by doing more string processing through shell
15915         built-ins.
15916         * gnulib-tool (fast_func_append): New variable.
15917         (func_remove_prefix, func_remove_suffix): New functions.
15918         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
15919         (func_filter_filelist): New function.
15920         (func_get_dependencies): Use func_remove_suffix instead of sed.
15921         (func_get_automake_snippet): Use func_filter_filelist instead of a
15922         subshell and sed invocation.
15923
15924 2009-01-01  Bruno Haible  <bruno@clisp.org>
15925
15926         Fix a security bug.
15927         * gnulib-tool (func_import, import, update): Don't allow the characters
15928         '"', '$', '`', '\' in macro arguments that become part of commands that
15929         are evaluated.
15930
15931 2009-01-01  Bruno Haible  <bruno@clisp.org>
15932
15933         * gnulib-tool (func_reset_sigpipe): Add more comments.
15934
15935 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15936
15937         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
15938         func_emit_tests_Makefile_am, func_import): Abort loops early if we
15939         already know the answer.
15940
15941 2009-01-01  Jim Meyering  <meyering@redhat.com>
15942
15943         * lib/version-etc.c (version_etc_va): Update copyright year.
15944
15945 2008-12-30  Bruno Haible  <bruno@clisp.org>
15946
15947         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
15948         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
15949         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
15950
15951 2008-12-29  Eric Blake  <ebb9@byu.net>
15952
15953         multiarch: avoid autoconf AC_REQUIRE bug
15954         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
15955         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
15956         2.63 and older.
15957         Reported by Bruno Haible, and analyzed in
15958         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
15959
15960 2008-12-29  Bruno Haible  <bruno@clisp.org>
15961
15962         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
15963         files in subdirectories correctly.
15964         Reported by Ralf Wildenhues.
15965
15966 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15967
15968         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
15969         rather than 'join FILE -', for Solaris join.
15970
15971 2008-12-29  Bruno Haible  <bruno@clisp.org>
15972
15973         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
15974         quoting.
15975         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
15976         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
15977         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
15978         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
15979         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
15980         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
15981         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
15982         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
15983         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
15984         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
15985         * m4/nls.m4 (AM_NLS): Likewise.
15986         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
15987         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
15988         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
15989         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
15990         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
15991         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15992         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
15993         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
15994         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
15995         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
15996         * m4/xsize.m4 (gl_XSIZE): Likewise.
15997         Suggested by Jim Meyering.
15998
15999 2008-11-17  Bruce Korb  <bkorb@gnu.org>
16000
16001         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
16002         * lib/parse-duration.c: use a switch instead of cascading if's.
16003
16004 2008-12-29  Eric Blake  <ebb9@byu.net>
16005
16006         wchar.h: supply WEOF on Irix 5.3
16007         * lib/wchar.in.h (wint_t): Also supply WEOF.
16008         * lib/wctype.in.h (wint_t): Likewise.
16009         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
16010         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
16011         Reported by Tom G. Christensen.
16012
16013 2008-12-26  Bruno Haible  <bruno@clisp.org>
16014
16015         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
16016         i486, i586, i686.
16017
16018 2008-12-26  Bruno Haible  <bruno@clisp.org>
16019
16020         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
16021
16022 2008-12-26  Bruno Haible  <bruno@clisp.org>
16023
16024         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
16025         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
16026         not __STDC_CONSTANT_MACROS.
16027         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
16028
16029 2008-12-25  Bruno Haible  <bruno@clisp.org>
16030
16031         Add support for universal builds to vasnprintf.
16032         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
16033         universal builds, guess no.
16034         * modules/vasnprintf-posix (Depends-on): Add multiarch.
16035         * modules/vasprintf-posix (Depends-on): Likewise.
16036         * modules/fprintf-posix (Depends-on): Likewise.
16037         * modules/vfprintf-posix (Depends-on): Likewise.
16038         * modules/snprintf-posix (Depends-on): Likewise.
16039         * modules/vsnprintf-posix (Depends-on): Likewise.
16040         * modules/sprintf-posix (Depends-on): Likewise.
16041         * modules/vsprintf-posix (Depends-on): Likewise.
16042         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
16043         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16044         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16045         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16046         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16047         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16048         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16049
16050         Add support for universal builds to <inttypes.h>.
16051         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
16052         _SCNu64_PREFIX): In Apple
16053         universal builds, define directly, using _LP64.
16054         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
16055         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
16056         * modules/inttypes (Depends-on): Add multiarch.
16057         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
16058
16059         Add support for universal builds to <stdint.h>.
16060         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
16061         universal builds, define directly, using _LP64.
16062         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
16063         Apple universal builds, don't test for the size and suffix of ptrdiff_t
16064         and size_t.
16065         * modules/stdint (Depends-on): Add multiarch.
16066         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
16067
16068         New module 'multiarch'.
16069         * modules/multiarch: New file.
16070         * m4/multiarch.m4: New file.
16071
16072 2008-12-25  Bruno Haible  <bruno@clisp.org>
16073
16074         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
16075
16076 2008-12-25  Bruno Haible  <bruno@clisp.org>
16077
16078         * modules/btowc (License): Relicense under LGPLv2+.
16079         * modules/mbsinit (License): Likewise.
16080         * modules/mbrtowc (License): Likewise.
16081         * modules/wcrtomb (License): Likewise.
16082         * modules/streq (License): Likewise.
16083         Reported by David Lutterkort <lutter@redhat.com>.
16084
16085 2008-12-23  Bruno Haible  <bruno@clisp.org>
16086
16087         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
16088
16089 2008-12-23  Bruno Haible  <bruno@clisp.org>
16090
16091         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
16092         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
16093         GETADDRINFO_LIB, not in LIBS.
16094         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
16095         * modules/canon-host (Link): Likewise.
16096         * NEWS: Mention the change.
16097         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
16098         GETADDRINFO_LIB.
16099
16100 2008-12-22  Bruno Haible  <bruno@clisp.org>
16101
16102         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
16103         * doc/posix-functions/iswalpha_l.texi: Likewise.
16104         * doc/posix-functions/iswblank_l.texi: Likewise.
16105         * doc/posix-functions/iswcntrl_l.texi: Likewise.
16106         * doc/posix-functions/iswctype_l.texi: Likewise.
16107         * doc/posix-functions/iswdigit_l.texi: Likewise.
16108         * doc/posix-functions/iswgraph_l.texi: Likewise.
16109         * doc/posix-functions/iswlower_l.texi: Likewise.
16110         * doc/posix-functions/iswprint_l.texi: Likewise.
16111         * doc/posix-functions/iswpunct_l.texi: Likewise.
16112         * doc/posix-functions/iswspace_l.texi: Likewise.
16113         * doc/posix-functions/iswupper_l.texi: Likewise.
16114         * doc/posix-functions/iswxdigit_l.texi: Likewise.
16115         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
16116         * doc/posix-functions/open_wmemstream.texi: Likewise.
16117         * doc/posix-functions/swscanf.texi: Likewise.
16118         * doc/posix-functions/towctrans_l.texi: Likewise.
16119         * doc/posix-functions/towlower.texi: Likewise.
16120         * doc/posix-functions/towlower_l.texi: Likewise.
16121         * doc/posix-functions/towupper.texi: Likewise.
16122         * doc/posix-functions/towupper_l.texi: Likewise.
16123         * doc/posix-functions/vfwprintf.texi: Likewise.
16124         * doc/posix-functions/vfwscanf.texi: Likewise.
16125         * doc/posix-functions/vswscanf.texi: Likewise.
16126         * doc/posix-functions/vwprintf.texi: Likewise.
16127         * doc/posix-functions/vwscanf.texi: Likewise.
16128         * doc/posix-functions/wcpcpy.texi: Likewise.
16129         * doc/posix-functions/wcpncpy.texi: Likewise.
16130         * doc/posix-functions/wcscasecmp.texi: Likewise.
16131         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
16132         * doc/posix-functions/wcscoll_l.texi: Likewise.
16133         * doc/posix-functions/wcsdup.texi: Likewise.
16134         * doc/posix-functions/wcsncasecmp.texi: Likewise.
16135         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
16136         * doc/posix-functions/wcsnlen.texi: Likewise.
16137         * doc/posix-functions/wcsnrtombs.texi: Likewise.
16138         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
16139         * doc/posix-functions/wctrans_l.texi: Likewise.
16140         * doc/posix-functions/wctype_l.texi: Likewise.
16141         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
16142         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
16143         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
16144         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
16145         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
16146         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
16147         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
16148         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
16149         * doc/glibc-functions/wcschrnul.texi: Likewise.
16150         * doc/glibc-functions/wcsftime_l.texi: Likewise.
16151         * doc/glibc-functions/wcstod_l.texi: Likewise.
16152         * doc/glibc-functions/wcstof_l.texi: Likewise.
16153         * doc/glibc-functions/wcstol_l.texi: Likewise.
16154         * doc/glibc-functions/wcstold_l.texi: Likewise.
16155         * doc/glibc-functions/wcstoll_l.texi: Likewise.
16156         * doc/glibc-functions/wcstoq.texi: Likewise.
16157         * doc/glibc-functions/wcstoul_l.texi: Likewise.
16158         * doc/glibc-functions/wcstoull_l.texi: Likewise.
16159         * doc/glibc-functions/wcstouq.texi: Likewise.
16160         * doc/glibc-functions/wmempcpy.texi: Likewise.
16161
16162 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
16163             Eric Blake  <ebb9@byu.net>
16164             Paolo Bonzini  <bonzini@gnu.org>
16165             Bruno Haible  <bruno@clisp.org>
16166
16167         Make c-stack work on Haiku.
16168         * lib/c-stack.c (SA_ONSTACK): Define fallback.
16169         (c_stack_action): Use SA_ONSTACK flag.
16170
16171 2008-12-22  Bruno Haible  <bruno@clisp.org>
16172
16173         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
16174
16175 2008-12-22  Bruno Haible  <bruno@clisp.org>
16176
16177         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
16178         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
16179         being overridden.
16180         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
16181         New macros.
16182         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
16183         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
16184         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
16185         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
16186
16187 2008-12-22  Bruno Haible  <bruno@clisp.org>
16188
16189         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
16190         from test code.
16191
16192 2008-12-22  Eric Blake  <ebb9@byu.net>
16193
16194         Avoid gcc warnings on cygwin.
16195         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
16196         Avoid unused variable.
16197         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
16198         Likewise.
16199
16200 2008-12-22  Bruno Haible  <bruno@clisp.org>
16201
16202         Remove HAVE_MBRTOWC conditionals.
16203         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
16204         (mbscasecmp): Assume mbrtowc function.
16205         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
16206         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
16207         * lib/mbschr.c: Include mbuiter.h unconditionally.
16208         (mbschr): Assume mbrtowc function.
16209         * lib/mbscspn.c: Include mbuiter.h unconditionally.
16210         (mbscspn): Assume mbrtowc function.
16211         * lib/mbslen.c: Include mbuiter.h unconditionally.
16212         (mbslen): Assume mbrtowc function.
16213         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
16214         (mbsncasecmp): Assume mbrtowc function.
16215         * lib/mbsnlen.c: Include mbiter.h unconditionally.
16216         (mbsnlen): Assume mbrtowc function.
16217         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
16218         (mbspbrk): Assume mbrtowc function.
16219         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
16220         (mbspcasecmp): Assume mbrtowc function.
16221         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
16222         (mbsrchr): Assume mbrtowc function.
16223         * lib/mbssep.c: Include mbuiter.h unconditionally.
16224         (mbssep): Assume mbrtowc function.
16225         * lib/mbsspn.c: Include mbuiter.h unconditionally.
16226         (mbsspn): Assume mbrtowc function.
16227         * lib/mbsstr.c: Include mbuiter.h unconditionally.
16228         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
16229         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
16230         (mbstok_r): Assume mbrtowc function.
16231         * lib/propername.c: Include mbuiter.h unconditionally.
16232         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
16233         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
16234         (trim2): Assume mbrtowc function.
16235         * lib/mbswidth.c (mbsinit): Remove fallback definition.
16236         (mbsnwidth): Assume mbrtowc function.
16237         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
16238         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
16239         fallback definitions.
16240         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
16241
16242 2008-12-22  Bruno Haible  <bruno@clisp.org>
16243
16244         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
16245
16246 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
16247
16248         * modules/regex: Request emulations for the mb*/wc* functions we need.
16249         * m4/regex.m4: Don't look for those functions here.
16250         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
16251
16252 2008-12-22  Bruno Haible  <bruno@clisp.org>
16253
16254         * modules/fnmatch (Depends-on): Remove duplicated dependency.
16255
16256 2008-12-21  Bruno Haible  <bruno@clisp.org>
16257
16258         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
16259         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
16260         (Include): Remove conditionalization.
16261         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
16262         (Include): Remove conditionalization.
16263         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
16264         (Include): Remove conditionalization.
16265         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
16266         * m4/mbfile.m4 (gl_MBFILE): Likewise.
16267         * NEWS: Mention the change.
16268         Reported by Alan Hourihane <alanh@fairlite.co.uk>
16269         via Sergey Poznyakoff <gray@gnu.org.ua>.
16270
16271 2008-12-21  Bruno Haible  <bruno@clisp.org>
16272
16273         * MODULES.html.sh (Extended multibyte and wide character utilities
16274         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
16275         wcrtomb, wcsrtombs.
16276         (Support for systems lacking POSIX:2008): Add accept, bind, close,
16277         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
16278         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
16279         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
16280
16281 2008-12-21  Bruno Haible  <bruno@clisp.org>
16282
16283         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
16284
16285 2008-12-21  Bruno Haible  <bruno@clisp.org>
16286
16287         * modules/wcsnrtombs-tests: New file.
16288         * tests/test-wcsnrtombs1.sh: New file.
16289         * tests/test-wcsnrtombs2.sh: New file.
16290         * tests/test-wcsnrtombs3.sh: New file.
16291         * tests/test-wcsnrtombs4.sh: New file.
16292         * tests/test-wcsnrtombs.c: New file.
16293
16294         New module 'wcsnrtombs'.
16295         * lib/wchar.in.h (wcsnrtombs): New declaration.
16296         * lib/wcsnrtombs.c: New file.
16297         * lib/wcsrtombs-state.c: New file.
16298         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
16299         (internal_state): Remove variable.
16300         * m4/wcsnrtombs.m4: New file.
16301         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
16302         compilation units.
16303         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
16304         HAVE_WCSNRTOMBS.
16305         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
16306         HAVE_WCSNRTOMBS.
16307         * modules/wcsnrtombs: New file.
16308         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
16309         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
16310
16311 2008-12-21  Bruno Haible  <bruno@clisp.org>
16312
16313         * modules/wcsrtombs-tests: New file.
16314         * tests/test-wcsrtombs1.sh: New file.
16315         * tests/test-wcsrtombs2.sh: New file.
16316         * tests/test-wcsrtombs3.sh: New file.
16317         * tests/test-wcsrtombs4.sh: New file.
16318         * tests/test-wcsrtombs.c: New file.
16319
16320         New module 'wcsrtombs'.
16321         * lib/wchar.in.h (wcsrtombs): New declaration.
16322         * lib/wcsrtombs.c: New file.
16323         * m4/wcsrtombs.m4: New file.
16324         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
16325         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
16326         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
16327         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
16328         * modules/wcsrtombs: New file.
16329         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
16330         bugs.
16331
16332 2008-12-21  Bruno Haible  <bruno@clisp.org>
16333
16334         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
16335         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
16336         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
16337         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
16338         if not correct.
16339         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
16340         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
16341         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16342         m4/locale-zh.m4, m4/codeset.m4.
16343         * doc/posix-functions/wcrtomb.texi: Document the bug.
16344
16345 2008-12-21  Bruno Haible  <bruno@clisp.org>
16346
16347         Work around a btowc() bug on IRIX 6.5.
16348         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
16349         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
16350         REPLACE_WTOBC if not.
16351         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
16352         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
16353         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
16354
16355 2008-12-21  Bruno Haible  <bruno@clisp.org>
16356
16357         * modules/wcrtomb-tests: New file.
16358         * tests/test-wcrtomb.sh: New file.
16359         * tests/test-wcrtomb.c: New file.
16360
16361         New module 'wcrtomb'.
16362         * lib/wchar.in.h (wcrtomb): New declaration.
16363         * lib/wcrtomb.c: New file.
16364         * m4/wcrtomb.m4: New file.
16365         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
16366         HAVE_WCRTOMB.
16367         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
16368         HAVE_WCRTOMB.
16369         * modules/wcrtomb: New file.
16370         * doc/posix-functions/wcrtomb.texi: Mention the new module.
16371
16372 2008-12-21  Bruno Haible  <bruno@clisp.org>
16373
16374         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
16375         * modules/mbsrtowcs (Files): Likewise.
16376         * modules/wctob (Files): Likewise.
16377         * modules/c-strcase-tests (Files): Likewise.
16378         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
16379         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
16380         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
16381         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
16382         * modules/vasnprintf-posix-tests (Files): Likewise.
16383
16384 2008-12-21  William Pursell  <bill.pursell@gmail.com>
16385
16386         gitlog-to-changelog: pass all command-line arguments to git-log
16387         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
16388         it is sometimes convenient to filter the commits in various ways.
16389         gitlog-to-changelog only allows --since to specify a start date,
16390         but git-log itself supports many other filtering mechanisms.
16391         At the moment, I want to filter by branch name.  Rather than
16392         adding a --branch option to gitlog-to-changelog, it seems more
16393         flexible to simply pass all options directly to git-log and let
16394         git do the work.  Notice that this effectively makes --since a
16395         redundant option for gitlog-to-changelog, but removing it would
16396         require current usage to change since calls would then require
16397         an additional '--'.
16398
16399 2008-12-21  Bruno Haible  <bruno@clisp.org>
16400
16401         * modules/mbsnrtowcs-tests: New file.
16402         * tests/test-mbsnrtowcs1.sh: New file.
16403         * tests/test-mbsnrtowcs2.sh: New file.
16404         * tests/test-mbsnrtowcs3.sh: New file.
16405         * tests/test-mbsnrtowcs4.sh: New file.
16406         * tests/test-mbsnrtowcs.c: New file.
16407
16408         New module 'mbsnrtowcs'.
16409         * lib/wchar.in.h (mbsnrtowcs): New declaration.
16410         * lib/mbsnrtowcs.c: New file.
16411         * lib/mbsrtowcs-state.c: New file.
16412         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
16413         (internal_state): Remove variable.
16414         * m4/mbsnrtowcs.m4: New file.
16415         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
16416         compilation units.
16417         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
16418         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
16419         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
16420         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
16421         * modules/mbsnrtowcs: New file.
16422         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
16423         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
16424         portability problem.
16425
16426 2008-12-21  Bruno Haible  <bruno@clisp.org>
16427
16428         Work around mbsrtowcs bug.
16429         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
16430         (gl_FUNC_MBSRTOWCS): Invoke it.
16431         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16432         m4/locale-zh.m4.
16433         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
16434
16435 2008-12-21  Bruno Haible  <bruno@clisp.org>
16436
16437         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
16438
16439 2008-12-21  Bruno Haible  <bruno@clisp.org>
16440
16441         Update doc for AIX.
16442         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
16443         16-bit wchar_t type.
16444         * doc/posix-functions/btowc.texi: Likewise.
16445         * doc/posix-functions/fgetwc.texi: Likewise.
16446         * doc/posix-functions/fgetws.texi: Likewise.
16447         * doc/posix-functions/fputwc.texi: Likewise.
16448         * doc/posix-functions/fputws.texi: Likewise.
16449         * doc/posix-functions/fwide.texi: Likewise.
16450         * doc/posix-functions/fwprintf.texi: Likewise.
16451         * doc/posix-functions/fwscanf.texi: Likewise.
16452         * doc/posix-functions/getwchar.texi: Likewise.
16453         * doc/posix-functions/getwc.texi: Likewise.
16454         * doc/posix-functions/iswalnum.texi: Likewise.
16455         * doc/posix-functions/iswalpha.texi: Likewise.
16456         * doc/posix-functions/iswblank.texi: Likewise.
16457         * doc/posix-functions/iswcntrl.texi: Likewise.
16458         * doc/posix-functions/iswctype.texi: Likewise.
16459         * doc/posix-functions/iswdigit.texi: Likewise.
16460         * doc/posix-functions/iswgraph.texi: Likewise.
16461         * doc/posix-functions/iswlower.texi: Likewise.
16462         * doc/posix-functions/iswprint.texi: Likewise.
16463         * doc/posix-functions/iswpunct.texi: Likewise.
16464         * doc/posix-functions/iswspace.texi: Likewise.
16465         * doc/posix-functions/iswupper.texi: Likewise.
16466         * doc/posix-functions/iswxdigit.texi: Likewise.
16467         * doc/posix-functions/mbrtowc.texi: Likewise.
16468         * doc/posix-functions/mbsrtowcs.texi: Likewise.
16469         * doc/posix-functions/mbstowcs.texi: Likewise.
16470         * doc/posix-functions/mbtowc.texi: Likewise.
16471         * doc/posix-functions/putwchar.texi: Likewise.
16472         * doc/posix-functions/putwc.texi: Likewise.
16473         * doc/posix-functions/swprintf.texi: Likewise.
16474         * doc/posix-functions/tolower.texi: Likewise.
16475         * doc/posix-functions/toupper.texi: Likewise.
16476         * doc/posix-functions/towctrans.texi: Likewise.
16477         * doc/posix-functions/ungetwc.texi: Likewise.
16478         * doc/posix-functions/vswprintf.texi: Likewise.
16479         * doc/posix-functions/wcrtomb.texi: Likewise.
16480         * doc/posix-functions/wcscat.texi: Likewise.
16481         * doc/posix-functions/wcschr.texi: Likewise.
16482         * doc/posix-functions/wcscmp.texi: Likewise.
16483         * doc/posix-functions/wcscoll.texi: Likewise.
16484         * doc/posix-functions/wcscpy.texi: Likewise.
16485         * doc/posix-functions/wcscspn.texi: Likewise.
16486         * doc/posix-functions/wcsftime.texi: Likewise.
16487         * doc/posix-functions/wcslen.texi: Likewise.
16488         * doc/posix-functions/wcsncat.texi: Likewise.
16489         * doc/posix-functions/wcsncmp.texi: Likewise.
16490         * doc/posix-functions/wcsncpy.texi: Likewise.
16491         * doc/posix-functions/wcspbrk.texi: Likewise.
16492         * doc/posix-functions/wcsrchr.texi: Likewise.
16493         * doc/posix-functions/wcsrtombs.texi: Likewise.
16494         * doc/posix-functions/wcsspn.texi: Likewise.
16495         * doc/posix-functions/wcsstr.texi: Likewise.
16496         * doc/posix-functions/wcstod.texi: Likewise.
16497         * doc/posix-functions/wcstof.texi: Likewise.
16498         * doc/posix-functions/wcstoimax.texi: Likewise.
16499         * doc/posix-functions/wcstok.texi: Likewise.
16500         * doc/posix-functions/wcstold.texi: Likewise.
16501         * doc/posix-functions/wcstoll.texi: Likewise.
16502         * doc/posix-functions/wcstol.texi: Likewise.
16503         * doc/posix-functions/wcstombs.texi: Likewise.
16504         * doc/posix-functions/wcstoull.texi: Likewise.
16505         * doc/posix-functions/wcstoul.texi: Likewise.
16506         * doc/posix-functions/wcstoumax.texi: Likewise.
16507         * doc/posix-functions/wcswidth.texi: Likewise.
16508         * doc/posix-functions/wcsxfrm.texi: Likewise.
16509         * doc/posix-functions/wctob.texi: Likewise.
16510         * doc/posix-functions/wctomb.texi: Likewise.
16511         * doc/posix-functions/wctrans.texi: Likewise.
16512         * doc/posix-functions/wctype.texi: Likewise.
16513         * doc/posix-functions/wcwidth.texi: Likewise.
16514         * doc/posix-functions/wmemchr.texi: Likewise.
16515         * doc/posix-functions/wmemcmp.texi: Likewise.
16516         * doc/posix-functions/wmemcpy.texi: Likewise.
16517         * doc/posix-functions/wmemmove.texi: Likewise.
16518         * doc/posix-functions/wmemset.texi: Likewise.
16519         * doc/posix-functions/wprintf.texi: Likewise.
16520         * doc/posix-functions/wscanf.texi: Likewise.
16521
16522 2008-12-21  Bruno Haible  <bruno@clisp.org>
16523
16524         Update doc for HP-UX 11.11.
16525         * doc/posix-functions/btowc.texi: Clarify that the function is missing
16526         in HP-UX version 11.00, not in all versions of HP-UX 11.
16527         * doc/posix-functions/fwide.texi: Likewise.
16528         * doc/posix-functions/fwprintf.texi: Likewise.
16529         * doc/posix-functions/fwscanf.texi: Likewise.
16530         * doc/posix-functions/inet_ntop.texi: Likewise.
16531         * doc/posix-functions/inet_pton.texi: Likewise.
16532         * doc/posix-functions/mbrlen.texi: Likewise.
16533         * doc/posix-functions/mbrtowc.texi: Likewise.
16534         * doc/posix-functions/mbsinit.texi: Likewise.
16535         * doc/posix-functions/mbsrtowcs.texi: Likewise.
16536         * doc/posix-functions/swprintf.texi: Likewise.
16537         * doc/posix-functions/swscanf.texi: Likewise.
16538         * doc/posix-functions/towctrans.texi: Likewise.
16539         * doc/posix-functions/vfwprintf.texi: Likewise.
16540         * doc/posix-functions/vswprintf.texi: Likewise.
16541         * doc/posix-functions/vwprintf.texi: Likewise.
16542         * doc/posix-functions/wcrtomb.texi: Likewise.
16543         * doc/posix-functions/wcsrtombs.texi: Likewise.
16544         * doc/posix-functions/wcsstr.texi: Likewise.
16545         * doc/posix-functions/wctob.texi: Likewise.
16546         * doc/posix-functions/wctrans.texi: Likewise.
16547         * doc/posix-functions/wmemchr.texi: Likewise.
16548         * doc/posix-functions/wmemcmp.texi: Likewise.
16549         * doc/posix-functions/wmemcpy.texi: Likewise.
16550         * doc/posix-functions/wmemmove.texi: Likewise.
16551         * doc/posix-functions/wmemset.texi: Likewise.
16552         * doc/posix-functions/wprintf.texi: Likewise.
16553         * doc/posix-functions/wscanf.texi: Likewise.
16554
16555 2008-12-21  Bruno Haible  <bruno@clisp.org>
16556
16557         Work around a portability problem.
16558         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
16559         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
16560
16561 2008-12-20  Bruno Haible  <bruno@clisp.org>
16562
16563         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
16564         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
16565         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
16566         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
16567         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
16568
16569         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
16570         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
16571         set.
16572         (GNULIB_defined_mbstate_t): New macro.
16573         (mbsinit): Redefine if REPLACE_MBSINIT is set.
16574         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
16575         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
16576         reuses the system's mbrtowc function but works around the bugs.
16577         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
16578         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
16579         macros.
16580         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
16581         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
16582         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
16583         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
16584         REPLACE_MBSINIT if mbsinit needs to be overridden.
16585         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
16586         REPLACE_MBSINIT, REPLACE_MBRTOWC.
16587         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
16588         REPLACE_MBSINIT, REPLACE_MBRTOWC.
16589         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16590         m4/locale-zh.m4.
16591         (Depends): Add mbsinit.
16592         * modules/mbsinit (Depends): Add mbrtowc.
16593         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
16594
16595 2008-12-20  Bruno Haible  <bruno@clisp.org>
16596
16597         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
16598         so that there are no conversion errors on AIX.
16599         * tests/test-mbsrtowcs.c (main): LIkewise.
16600
16601 2008-12-20  Bruno Haible  <bruno@clisp.org>
16602
16603         Work around wctob bug on Solaris <= 9.
16604         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
16605         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
16606         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
16607         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
16608         * modules/wctob (Files): Add m4/locale-fr.m4.
16609         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
16610
16611 2008-12-20  Bruno Haible  <bruno@clisp.org>
16612
16613         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
16614         /dev/null.
16615         * tests/test-select-in.sh: Likewise.
16616         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16617
16618 2008-12-20  Bruno Haible  <bruno@clisp.org>
16619
16620         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
16621         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
16622         Cygwin 1.5.x.
16623
16624 2008-12-20  Bruno Haible  <bruno@clisp.org>
16625
16626         Ensure mbstate_t is defined on HP-UX 11.11.
16627         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
16628         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
16629         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
16630         AC_USE_SYSTEM_EXTENSIONS.
16631         * modules/fnmatch (Depends-on): Add extensions.
16632         * modules/mbrlen (Depends-on): Likewise.
16633         * modules/mbrtowc (Depends-on): Likewise.
16634         * modules/mbsinit (Depends-on): Likewise.
16635         * modules/mbsrtowcs (Depends-on): Likewise.
16636         * modules/mbswidth (Depends-on): Likewise.
16637         * modules/quotearg (Depends-on): Likewise.
16638         * modules/strftime (Depends-on): Likewise.
16639
16640 2008-12-20  Bruno Haible  <bruno@clisp.org>
16641
16642         Ensure wctob is declared on IRIX 6.5.
16643         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
16644         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
16645         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
16646         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
16647         of HAVE_WCTOB.
16648         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
16649         HAVE_WCTOB.
16650         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
16651
16652 2008-12-19  Bruno Haible  <bruno@clisp.org>
16653
16654         * modules/mbsrtowcs-tests: New file.
16655         * tests/test-mbsrtowcs1.sh: New file.
16656         * tests/test-mbsrtowcs2.sh: New file.
16657         * tests/test-mbsrtowcs3.sh: New file.
16658         * tests/test-mbsrtowcs4.sh: New file.
16659         * tests/test-mbsrtowcs.c: New file.
16660
16661         New module 'mbsrtowcs'.
16662         * lib/wchar.in.h (mbsrtowcs): New declaration.
16663         * lib/mbsrtowcs.c: New file.
16664         * m4/mbsrtowcs.m4: New file.
16665         * modules/mbsrtowcs: New file.
16666         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
16667         HAVE_MBSRTOWCS.
16668         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
16669         HAVE_MBSRTOWCS.
16670         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
16671
16672 2008-12-19  Bruno Haible  <bruno@clisp.org>
16673
16674         New module 'mbrlen'.
16675         * lib/wchar.in.h (mbrlen): New declaration.
16676         * lib/mbrlen.c: New file.
16677         * m4/mbrlen.m4: New file.
16678         * modules/mbrlen: New file.
16679         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
16680         HAVE_MBRLEN.
16681         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
16682         HAVE_MBRLEN.
16683         * doc/posix-functions/mbrlen.texi: Document the new module.
16684
16685 2008-12-19  Bruno Haible  <bruno@clisp.org>
16686
16687         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
16688         * modules/mbrtowc (Depends-on): Add verify.
16689         Suggested by Paul Eggert.
16690
16691 2008-12-18  Bruno Haible  <bruno@clisp.org>
16692
16693         * modules/mbsinit-tests: New file.
16694         * tests/test-mbsinit.sh: New file.
16695         * tests/test-mbsinit.c: New file.
16696
16697 2008-12-18  Bruno Haible  <bruno@clisp.org>
16698
16699         * modules/mbrtowc-tests: New file.
16700         * tests/test-mbrtowc1.sh: New file.
16701         * tests/test-mbrtowc2.sh: New file.
16702         * tests/test-mbrtowc3.sh: New file.
16703         * tests/test-mbrtowc4.sh: New file.
16704         * tests/test-mbrtowc.c: New file.
16705
16706         New module 'mbrtowc'.
16707         * lib/wchar.in.h (mbstate_t): Override when the system does not have
16708         mbsinit and mbrtowc.
16709         (mbrtowc): New declaration.
16710         * lib/mbrtowc.c: New file.
16711         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
16712         * modules/mbrtowc: New file.
16713         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
16714         HAVE_MBRTOWC.
16715         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
16716         HAVE_MBRTOWC.
16717         * doc/posix-functions/mbrtowc.texi: Document the new module.
16718
16719 2008-12-18  Bruno Haible  <bruno@clisp.org>
16720
16721         New module 'wctob'.
16722         * lib/wchar.in.h (wctob): New declaration.
16723         * lib/wctob.c: New file.
16724         * m4/wctob.m4: New file.
16725         * modules/wctob: New file.
16726         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
16727         HAVE_WCTOB.
16728         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
16729         * doc/posix-functions/wctob.texi: Document the new module.
16730
16731 2008-12-18  Bruno Haible  <bruno@clisp.org>
16732
16733         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
16734         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
16735
16736 2008-12-18  Simon Josefsson  <simon@josefsson.org>
16737
16738         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
16739         G. Christensen" <tgc@jupiterrise.com>.
16740
16741         * lib/flock.c: Need to include errno.h.  Reported by "Tom
16742         G. Christensen" <tgc@jupiterrise.com>.
16743
16744         * lib/flock.c: Need to include string.h.  Reported by "Tom
16745         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
16746         <ebb9@byu.net>.
16747
16748 2008-12-18  Bruno Haible  <bruno@clisp.org>
16749
16750         * m4/locale-ja.m4: New file, from GNU gettext.
16751
16752 2008-12-17  Bruno Haible  <bruno@clisp.org>
16753
16754         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
16755         Suggested by Eric Blake.
16756
16757 2008-12-17  Bruno Haible  <bruno@clisp.org>
16758
16759         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
16760
16761 2008-12-17  Bruno Haible  <bruno@clisp.org>
16762
16763         * lib/mbsinit.c: Include verify.h. Verify an assumption.
16764         * modules/mbsinit (Depends-on): Add verify.
16765         Suggested by Paul Eggert.
16766
16767 2008-12-17  Bruno Haible  <bruno@clisp.org>
16768
16769         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
16770         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
16771         gl_FUNC_MBRTOWC.
16772         * m4/mbiter.m4 (gl_MBITER): LIkewise.
16773         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
16774         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
16775         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
16776         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
16777         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
16778         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
16779         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
16780         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
16781         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
16782         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
16783         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
16784         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
16785         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
16786         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
16787         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
16788         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
16789         * modules/trim (configure.ac): Likewise.
16790
16791 2008-12-17  Bruno Haible  <bruno@clisp.org>
16792
16793         * modules/btowc-tests: New file.
16794         * tests/test-btowc1.sh: New file.
16795         * tests/test-btowc2.sh: New file.
16796         * tests/test-btowc.c: New file.
16797
16798         New module 'btowc'.
16799         * lib/wchar.in.h (btowc): New declaration.
16800         * lib/btowc.c: New file.
16801         * m4/btowc.m4: New file.
16802         * modules/btowc: New file.
16803         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
16804         HAVE_BTOWC.
16805         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
16806         * doc/posix-functions/btowc.texi: Document the new module.
16807
16808 2008-12-17  Bruno Haible  <bruno@clisp.org>
16809
16810         New module 'mbsinit'.
16811         * lib/wchar.in.h (mbsinit): New declaration.
16812         * lib/mbsinit.c: New file.
16813         * m4/mbsinit.m4: New file.
16814         * modules/mbsinit: New file.
16815         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
16816         HAVE_MBSINIT.
16817         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
16818         HAVE_MBSINIT.
16819         * doc/posix-functions/mbsinit.texi: Document the new module.
16820
16821 2008-12-16  Bruno Haible  <bruno@clisp.org>
16822
16823         * lib/unistd.in.h: Add comment.
16824         * tests/test-environ.c: Don't include <stdlib.h>.
16825
16826 2008-12-16  Bruno Haible  <bruno@clisp.org>
16827
16828         * lib/parse-duration.h (parse_duration): Document return value
16829         convention.
16830         * lib/parse-duration.c: Include specification header first. Add
16831         comments.
16832         (_): Remove macro.
16833         (parse_year_month_day, parse_hour_minute_second): Move side effects
16834         outside of strchr call.
16835         (parse_non_iso8601): Move side effects outside of isspace call.
16836         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
16837         call.
16838
16839 2008-12-16  Bruno Haible  <bruno@clisp.org>
16840
16841         * tests/test-parse-duration.sh: Produce no output when the test
16842         succeeds.
16843
16844 2008-12-16  Bruno Haible  <bruno@clisp.org>
16845
16846         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
16847         expressions.
16848
16849 2008-12-15  Bruno Haible  <bruno@clisp.org>
16850
16851         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
16852         * doc/glibc-functions/flistxattr.texi: Likewise.
16853         * doc/glibc-functions/fopencookie.texi: Likewise.
16854         * doc/glibc-functions/fremovexattr.texi: Likewise.
16855         * doc/glibc-functions/fsetxattr.texi: Likewise.
16856         * doc/glibc-functions/getxattr.texi: Likewise.
16857         * doc/glibc-functions/lgetxattr.texi: Likewise.
16858         * doc/glibc-functions/listxattr.texi: Likewise.
16859         * doc/glibc-functions/llistxattr.texi: Likewise.
16860         * doc/glibc-functions/lremovexattr.texi: Likewise.
16861         * doc/glibc-functions/lsetxattr.texi: Likewise.
16862         * doc/glibc-functions/removexattr.texi: Likewise.
16863         * doc/glibc-functions/setxattr.texi: Likewise.
16864         * doc/posix-functions/open_memstream.texi: Likewise.
16865
16866 2008-12-15  Eric Blake  <ebb9@byu.net>
16867
16868         Update doc for cygwin 1.7.
16869         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
16870         functions.
16871         * doc/posix-functions/fchmodat.texi: Likewise.
16872         * doc/posix-functions/fchownat.texi: Likewise.
16873         * doc/posix-functions/fdopendir.texi: Likewise.
16874         * doc/posix-functions/fmemopen.texi: Likewise.
16875         * doc/posix-functions/freeaddrinfo.texi: Likewise.
16876         * doc/posix-functions/fstatat.texi: Likewise.
16877         * doc/posix-functions/futimens.texi: Likewise.
16878         * doc/posix-functions/gai_strerror.texi: Likewise.
16879         * doc/posix-functions/getaddrinfo.texi: Likewise.
16880         * doc/posix-functions/getnameinfo.texi: Likewise.
16881         * doc/posix-functions/if_freenameindex.texi: Likewise.
16882         * doc/posix-functions/if_indextoname.texi: Likewise.
16883         * doc/posix-functions/if_nameindex.texi: Likewise.
16884         * doc/posix-functions/if_nametoindex.texi: Likewise.
16885         * doc/posix-functions/insque.texi: Likewise.
16886         * doc/posix-functions/linkat.texi: Likewise.
16887         * doc/posix-functions/llrint.texi: Likewise.
16888         * doc/posix-functions/llrintf.texi: Likewise.
16889         * doc/posix-functions/llrintl.texi: Likewise.
16890         * doc/posix-functions/lockf.texi: Likewise.
16891         * doc/posix-functions/lrintl.texi: Likewise.
16892         * doc/posix-functions/mkdirat.texi: Likewise.
16893         * doc/posix-functions/mkfifoat.texi: Likewise.
16894         * doc/posix-functions/mknodat.texi: Likewise.
16895         * doc/posix-functions/mq_close.texi: Likewise.
16896         * doc/posix-functions/mq_getattr.texi: Likewise.
16897         * doc/posix-functions/mq_notify.texi: Likewise.
16898         * doc/posix-functions/mq_open.texi: Likewise.
16899         * doc/posix-functions/mq_receive.texi: Likewise.
16900         * doc/posix-functions/mq_send.texi: Likewise.
16901         * doc/posix-functions/mq_setattr.texi: Likewise.
16902         * doc/posix-functions/mq_timedreceive.texi: Likewise.
16903         * doc/posix-functions/mq_timedsend.texi: Likewise.
16904         * doc/posix-functions/mq_unlink.texi: Likewise.
16905         * doc/posix-functions/open_memstream.texi: Likewise.
16906         * doc/posix-functions/openat.texi: Likewise.
16907         * doc/posix-functions/posix_fadvise.texi: Likewise.
16908         * doc/posix-functions/posix_fallocate.texi: Likewise.
16909         * doc/posix-functions/posix_madvise.texi: Likewise.
16910         * doc/posix-functions/posix_memalign.texi: Likewise.
16911         * doc/posix-functions/posix_openpt.texi: Likewise.
16912         * doc/posix-functions/readlinkat.texi: Likewise.
16913         * doc/posix-functions/remque.texi: Likewise.
16914         * doc/posix-functions/renameat.texi: Likewise.
16915         * doc/posix-functions/rintl.texi: Likewise.
16916         * doc/posix-functions/sem_unlink.texi: Likewise.
16917         * doc/posix-functions/shm_open.texi: Likewise.
16918         * doc/posix-functions/shm_unlink.texi: Likewise.
16919         * doc/posix-functions/signgam.texi: Likewise.
16920         * doc/posix-functions/sigset.texi: Likewise.
16921         * doc/posix-functions/stpcpy.texi: Likewise.
16922         * doc/posix-functions/stpncpy.texi: Likewise.
16923         * doc/posix-functions/strerror.texi: Likewise.
16924         * doc/posix-functions/strtod.texi: Likewise.
16925         * doc/posix-functions/symlinkat.texi: Likewise.
16926         * doc/posix-functions/unlinkat.texi: Likewise.
16927         * doc/posix-functions/utimensat.texi: Likewise.
16928         * doc/glibc-functions/bindresvport.texi: Likewise.
16929         * doc/glibc-functions/dn_expand.texi: Likewise.
16930         * doc/glibc-functions/exp10.texi: Likewise.
16931         * doc/glibc-functions/exp10f.texi: Likewise.
16932         * doc/glibc-functions/fgetxattr.texi: Likewise.
16933         * doc/glibc-functions/flistxattr.texi: Likewise.
16934         * doc/glibc-functions/fopencookie.texi: Likewise.
16935         * doc/glibc-functions/freeifaddrs.texi: Likewise.
16936         * doc/glibc-functions/fremovexattr.texi: Likewise.
16937         * doc/glibc-functions/fsetxattr.texi: Likewise.
16938         * doc/glibc-functions/getifaddrs.texi: Likewise.
16939         * doc/glibc-functions/getxattr.texi: Likewise.
16940         * doc/glibc-functions/lgetxattr.texi: Likewise.
16941         * doc/glibc-functions/listxattr.texi: Likewise.
16942         * doc/glibc-functions/llistxattr.texi: Likewise.
16943         * doc/glibc-functions/lremovexattr.texi: Likewise.
16944         * doc/glibc-functions/lsetxattr.texi: Likewise.
16945         * doc/glibc-functions/pow10.texi: Likewise.
16946         * doc/glibc-functions/pow10f.texi: Likewise.
16947         * doc/glibc-functions/rcmd_af.texi: Likewise.
16948         * doc/glibc-functions/removexattr.texi: Likewise.
16949         * doc/glibc-functions/res_init.texi: Likewise.
16950         * doc/glibc-functions/res_mkquery.texi: Likewise.
16951         * doc/glibc-functions/res_query.texi: Likewise.
16952         * doc/glibc-functions/res_querydomain.texi: Likewise.
16953         * doc/glibc-functions/res_send.texi: Likewise.
16954         * doc/glibc-functions/rresvport_af.texi: Likewise.
16955         * doc/glibc-functions/setxattr.texi: Likewise.
16956         * doc/glibc-functions/strcasestr.texi: Likewise.
16957
16958 2008-12-15  Bruno Haible  <bruno@clisp.org>
16959
16960         Fix compilation error on OSF/1 4.0.
16961         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
16962         <sys/time.h>, simply delegate to the system header.
16963         Reported by Daniel Richard G. <oss@teragram.com>.
16964
16965 2008-12-15  Bruno Haible  <bruno@clisp.org>
16966
16967         * doc/posix-functions/openat.texi: Mention the 'openat' module.
16968         * doc/posix-functions/fchmodat.texi: Likewise.
16969         * doc/posix-functions/fchownat.texi: Likewise.
16970         * doc/posix-functions/fdopendir.texi: Likewise.
16971         * doc/posix-functions/fstatat.texi: Likewise.
16972         * doc/posix-functions/mkdirat.texi: Likewise.
16973         * doc/posix-functions/unlinkat.texi: Likewise.
16974
16975 2008-12-14  Bruno Haible  <bruno@clisp.org>
16976
16977         Update doc for POSIX:2008.
16978         * doc/posix-functions/faccessat.texi: New file.
16979         * doc/posix-functions/fchmodat.texi: New file.
16980         * doc/posix-functions/fchownat.texi: New file.
16981         * doc/posix-functions/fdopendir.texi: New file.
16982         * doc/posix-functions/fstatat.texi: New file.
16983         * doc/posix-functions/futimens.texi: New file.
16984         * doc/posix-functions/linkat.texi: New file.
16985         * doc/posix-functions/mkdirat.texi: New file.
16986         * doc/posix-functions/mkfifoat.texi: New file.
16987         * doc/posix-functions/mknodat.texi: New file.
16988         * doc/posix-functions/open_wmemstream.texi: New file.
16989         * doc/posix-functions/openat.texi: New file.
16990         * doc/posix-functions/psiginfo.texi: New file.
16991         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
16992         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
16993         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
16994         * doc/posix-functions/readlinkat.texi: New file.
16995         * doc/posix-functions/renameat.texi: New file.
16996         * doc/posix-functions/strerror_l.texi: New file.
16997         * doc/posix-functions/symlinkat.texi: New file.
16998         * doc/posix-functions/unlinkat.texi: New file.
16999         * doc/posix-functions/utimensat.texi: New file.
17000         * doc/gnulib.texi (Function Substitutes): Add these subsections.
17001
17002 2008-12-14  Bruno Haible  <bruno@clisp.org>
17003
17004         Update doc for POSIX:2008.
17005         * doc/posix-functions/alphasort.texi: Renamed from
17006         doc/glibc-functions/alphasort.texi.
17007         * doc/posix-functions/dirfd.texi: Renamed from
17008         doc/glibc-functions/dirfd.texi.
17009         * doc/posix-functions/dprintf.texi: Renamed from
17010         doc/glibc-functions/dprintf.texi.
17011         * doc/posix-functions/duplocale.texi: Renamed from
17012         doc/glibc-functions/duplocale.texi.
17013         * doc/posix-functions/fexecve.texi: Renamed from
17014         doc/glibc-functions/fexecve.texi.
17015         * doc/posix-functions/fmemopen.texi: Renamed from
17016         doc/glibc-functions/fmemopen.texi.
17017         * doc/posix-functions/freelocale.texi: Renamed from
17018         doc/glibc-functions/freelocale.texi.
17019         * doc/posix-functions/getdate_err.texi: Renamed from
17020         doc/glibc-functions/getdate_err.texi.
17021         * doc/posix-functions/isalnum_l.texi: Renamed from
17022         doc/glibc-functions/isalnum_l.texi.
17023         * doc/posix-functions/isalpha_l.texi: Renamed from
17024         doc/glibc-functions/isalpha_l.texi.
17025         * doc/posix-functions/isblank_l.texi: Renamed from
17026         doc/glibc-functions/isblank_l.texi.
17027         * doc/posix-functions/iscntrl_l.texi: Renamed from
17028         doc/glibc-functions/iscntrl_l.texi.
17029         * doc/posix-functions/isdigit_l.texi: Renamed from
17030         doc/glibc-functions/isdigit_l.texi.
17031         * doc/posix-functions/isgraph_l.texi: Renamed from
17032         doc/glibc-functions/isgraph_l.texi.
17033         * doc/posix-functions/islower_l.texi: Renamed from
17034         doc/glibc-functions/islower_l.texi.
17035         * doc/posix-functions/isprint_l.texi: Renamed from
17036         doc/glibc-functions/isprint_l.texi.
17037         * doc/posix-functions/ispunct_l.texi: Renamed from
17038         doc/glibc-functions/ispunct_l.texi.
17039         * doc/posix-functions/isspace_l.texi: Renamed from
17040         doc/glibc-functions/isspace_l.texi.
17041         * doc/posix-functions/isupper_l.texi: Renamed from
17042         doc/glibc-functions/isupper_l.texi.
17043         * doc/posix-functions/iswalnum_l.texi: Renamed from
17044         doc/glibc-functions/iswalnum_l.texi.
17045         * doc/posix-functions/iswalpha_l.texi: Renamed from
17046         doc/glibc-functions/iswalpha_l.texi.
17047         * doc/posix-functions/iswblank_l.texi: Renamed from
17048         doc/glibc-functions/iswblank_l.texi.
17049         * doc/posix-functions/iswcntrl_l.texi: Renamed from
17050         doc/glibc-functions/iswcntrl_l.texi.
17051         * doc/posix-functions/iswctype_l.texi: Renamed from
17052         doc/glibc-functions/iswctype_l.texi.
17053         * doc/posix-functions/iswdigit_l.texi: Renamed from
17054         doc/glibc-functions/iswdigit_l.texi.
17055         * doc/posix-functions/iswgraph_l.texi: Renamed from
17056         doc/glibc-functions/iswgraph_l.texi.
17057         * doc/posix-functions/iswlower_l.texi: Renamed from
17058         doc/glibc-functions/iswlower_l.texi.
17059         * doc/posix-functions/iswprint_l.texi: Renamed from
17060         doc/glibc-functions/iswprint_l.texi.
17061         * doc/posix-functions/iswpunct_l.texi: Renamed from
17062         doc/glibc-functions/iswpunct_l.texi.
17063         * doc/posix-functions/iswspace_l.texi: Renamed from
17064         doc/glibc-functions/iswspace_l.texi.
17065         * doc/posix-functions/iswupper_l.texi: Renamed from
17066         doc/glibc-functions/iswupper_l.texi.
17067         * doc/posix-functions/iswxdigit_l.texi: Renamed from
17068         doc/glibc-functions/iswxdigit_l.texi.
17069         * doc/posix-functions/isxdigit_l.texi: Renamed from
17070         doc/glibc-functions/isxdigit_l.texi.
17071         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
17072         doc/glibc-functions/mbsnrtowcs.texi.
17073         * doc/posix-functions/mkdtemp.texi: Renamed from
17074         doc/glibc-functions/mkdtemp.texi.
17075         * doc/posix-functions/newlocale.texi: Renamed from
17076         doc/glibc-functions/newlocale.texi.
17077         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
17078         doc/glibc-functions/nl_langinfo_l.texi.
17079         * doc/posix-functions/open_memstream.texi: Renamed from
17080         doc/glibc-functions/open_memstream.texi.
17081         * doc/posix-functions/opterr.texi: Renamed from
17082         doc/glibc-functions/opterr.texi.
17083         * doc/posix-functions/optind.texi: Renamed from
17084         doc/glibc-functions/optind.texi.
17085         * doc/posix-functions/optopt.texi: Renamed from
17086         doc/glibc-functions/optopt.texi.
17087         * doc/posix-functions/psignal.texi: Renamed from
17088         doc/glibc-functions/psignal.texi.
17089         * doc/posix-functions/scandir.texi: Renamed from
17090         doc/glibc-functions/scandir.texi.
17091         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
17092         doc/glibc-functions/sched_get_priority_min.texi.
17093         * doc/posix-functions/signgam.texi: Renamed from
17094         doc/glibc-functions/signgam.texi.
17095         * doc/posix-functions/stpcpy.texi: Renamed from
17096         doc/glibc-functions/stpcpy.texi.
17097         * doc/posix-functions/stpncpy.texi: Renamed from
17098         doc/glibc-functions/stpncpy.texi.
17099         * doc/posix-functions/strcasecmp_l.texi: Renamed from
17100         doc/glibc-functions/strcasecmp_l.texi.
17101         * doc/posix-functions/strcoll_l.texi: Renamed from
17102         doc/glibc-functions/strcoll_l.texi.
17103         * doc/posix-functions/strfmon_l.texi: Renamed from
17104         doc/glibc-functions/strfmon_l.texi.
17105         * doc/posix-functions/strftime_l.texi: Renamed from
17106         doc/glibc-functions/strftime_l.texi.
17107         * doc/posix-functions/strncasecmp_l.texi: Renamed from
17108         doc/glibc-functions/strncasecmp_l.texi.
17109         * doc/posix-functions/strndup.texi: Renamed from
17110         doc/glibc-functions/strndup.texi.
17111         * doc/posix-functions/strnlen.texi: Renamed from
17112         doc/glibc-functions/strnlen.texi.
17113         * doc/posix-functions/strsignal.texi: Renamed from
17114         doc/glibc-functions/strsignal.texi.
17115         * doc/posix-functions/strxfrm_l.texi: Renamed from
17116         doc/glibc-functions/strxfrm_l.texi.
17117         * doc/posix-functions/timer_gettime.texi: Renamed from
17118         doc/glibc-functions/timer_gettime.texi.
17119         * doc/posix-functions/tolower_l.texi: Renamed from
17120         doc/glibc-functions/tolower_l.texi.
17121         * doc/posix-functions/toupper_l.texi: Renamed from
17122         doc/glibc-functions/toupper_l.texi.
17123         * doc/posix-functions/towctrans_l.texi: Renamed from
17124         doc/glibc-functions/towctrans_l.texi.
17125         * doc/posix-functions/towlower_l.texi: Renamed from
17126         doc/glibc-functions/towlower_l.texi.
17127         * doc/posix-functions/towupper_l.texi: Renamed from
17128         doc/glibc-functions/towupper_l.texi.
17129         * doc/posix-functions/uselocale.texi: Renamed from
17130         doc/glibc-functions/uselocale.texi.
17131         * doc/posix-functions/vdprintf.texi: Renamed from
17132         doc/glibc-functions/vdprintf.texi.
17133         * doc/posix-functions/wcpcpy.texi:
17134         Renamed from doc/glibc-functions/wcpcpy.texi.
17135         * doc/posix-functions/wcpncpy.texi: Renamed from
17136         doc/glibc-functions/wcpncpy.texi.
17137         * doc/posix-functions/wcscasecmp.texi: Renamed from
17138         doc/glibc-functions/wcscasecmp.texi.
17139         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
17140         doc/glibc-functions/wcscasecmp_l.texi.
17141         * doc/posix-functions/wcscoll_l.texi: Renamed from
17142         doc/glibc-functions/wcscoll_l.texi.
17143         * doc/posix-functions/wcsdup.texi: Renamed from
17144         doc/glibc-functions/wcsdup.texi.
17145         * doc/posix-functions/wcsncasecmp.texi: Renamed from
17146         doc/glibc-functions/wcsncasecmp.texi.
17147         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
17148         doc/glibc-functions/wcsncasecmp_l.texi.
17149         * doc/posix-functions/wcsnlen.texi: Renamed from
17150         doc/glibc-functions/wcsnlen.texi.
17151         * doc/posix-functions/wcsnrtombs.texi: Renamed from
17152         doc/glibc-functions/wcsnrtombs.texi.
17153         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
17154         doc/glibc-functions/wcsxfrm_l.texi.
17155         * doc/posix-functions/wctrans_l.texi: Renamed from
17156         doc/glibc-functions/wctrans_l.texi.
17157         * doc/posix-functions/wctype_l.texi: Renamed from
17158         doc/glibc-functions/wctype_l.texi.
17159         * doc/gnulib.texi (Function Substitutes): Add these subsections.
17160         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
17161         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
17162         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
17163         these subsections.
17164         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
17165         Remove sections.
17166
17167 2008-12-14  Bruno Haible  <bruno@clisp.org>
17168
17169         Update doc for POSIX:2008.
17170         * doc/posix-functions/*.texi: Update URL of POSIX specification.
17171
17172 2008-12-14  Bruno Haible  <bruno@clisp.org>
17173
17174         Update doc for POSIX:2008.
17175         * doc/pastposix-functions/bcmp.texi: Renamed from
17176         doc/posix-functions/bcmp.texi.
17177         * doc/pastposix-functions/bcopy.texi: Renamed from
17178         doc/posix-functions/bcopy.texi.
17179         * doc/pastposix-functions/bsd_signal.texi: Renamed from
17180         doc/posix-functions/bsd_signal.texi.
17181         * doc/pastposix-functions/bzero.texi: Renamed from
17182         doc/posix-functions/bzero.texi.
17183         * doc/pastposix-functions/ecvt.texi: Renamed from
17184         doc/posix-functions/ecvt.texi.
17185         * doc/pastposix-functions/fcvt.texi: Renamed from
17186         doc/posix-functions/fcvt.texi.
17187         * doc/pastposix-functions/ftime.texi: Renamed from
17188         doc/posix-functions/ftime.texi.
17189         * doc/pastposix-functions/gcvt.texi: Renamed from
17190         doc/posix-functions/gcvt.texi.
17191         * doc/pastposix-functions/getcontext.texi: Renamed from
17192         doc/posix-functions/getcontext.texi.
17193         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
17194         doc/posix-functions/gethostbyaddr.texi.
17195         * doc/pastposix-functions/gethostbyname.texi: Renamed from
17196         doc/posix-functions/gethostbyname.texi.
17197         * doc/pastposix-functions/getwd.texi: Renamed from
17198         doc/posix-functions/getwd.texi.
17199         * doc/pastposix-functions/h_errno.texi: Renamed from
17200         doc/posix-functions/h_errno.texi.
17201         * doc/pastposix-functions/index.texi: Renamed from
17202         doc/posix-functions/index.texi.
17203         * doc/pastposix-functions/makecontext.texi: Renamed from
17204         doc/posix-functions/makecontext.texi.
17205         * doc/pastposix-functions/mktemp.texi: Renamed from
17206         doc/posix-functions/mktemp.texi.
17207         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
17208         doc/posix-functions/pthread_attr_getstackaddr.texi.
17209         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
17210         doc/posix-functions/pthread_attr_setstackaddr.texi.
17211         * doc/pastposix-functions/rindex.texi: Renamed from
17212         doc/posix-functions/rindex.texi.
17213         * doc/pastposix-functions/scalb.texi: Renamed from
17214         doc/posix-functions/scalb.texi.
17215         * doc/pastposix-functions/setcontext.texi: Renamed from
17216         doc/posix-functions/setcontext.texi.
17217         * doc/pastposix-functions/swapcontext.texi: Renamed from
17218         doc/posix-functions/swapcontext.texi.
17219         * doc/pastposix-functions/ualarm.texi: Renamed from
17220         doc/posix-functions/ualarm.texi.
17221         * doc/pastposix-functions/usleep.texi: Renamed from
17222         doc/posix-functions/usleep.texi.
17223         * doc/pastposix-functions/vfork.texi: Renamed from
17224         doc/posix-functions/vfork.texi.
17225         * doc/pastposix-functions/wcswcs.texi: Renamed from
17226         doc/posix-functions/wcswcs.texi.
17227         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
17228         (Function Substitutes): Update.
17229
17230 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17231
17232         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
17233         m4/strerror.m4.
17234
17235 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17236             Bruno Haible  <bruno@clisp.org>
17237
17238         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
17239
17240 2008-12-13  Bruno Haible  <bruno@clisp.org>
17241
17242         * modules/strtoull (Depends-on): Remove unistd.
17243
17244 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17245
17246         * modules/strtoull (Depends-on): Add stdlib.
17247
17248 2008-12-11  Simon Josefsson  <simon@josefsson.org>
17249
17250         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
17251
17252 2008-12-10  Jim Meyering  <meyering@redhat.com>
17253
17254         gl_ASSERT: don't say assertions are disabled when they're not
17255         * m4/assert.m4 (gl_ASSERT): Do not make configure report
17256         "checking whether to enable assertions... no", when they are in
17257         fact enabled.  This is solely a bug in the output of configure.
17258         In spite of saying "no", NDEBUG was not defined in that case.
17259         Also, as noted by Eric Blake, leave assertions enabled upon
17260         --enable-assert=INVALID.
17261
17262 2008-12-10  Bruno Haible  <bruno@clisp.org>
17263
17264         Change MODULES.html to refer to POSIX:2008 where possible.
17265         * MODULES.html.sh (POSIX2008_URL): New variable.
17266         (posix_headers): Remove sys/timeb, ucontext.
17267         (posix2001_headers): New variable.
17268         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
17269         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
17270         index, makecontext, mktemp, pthread_attr_getstackaddr,
17271         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
17272         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
17273         (posix2001_functions): New variable.
17274         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
17275         otherwise.
17276
17277 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17278
17279         add missing include to parse-duration.c
17280         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
17281         * modules/parse-duration (Depends-on): Add xalloc.
17282
17283         fix sed script reading maint.mk
17284         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
17285         (syntax-check-rules): Use it.
17286
17287 2008-12-09  Bruno Haible  <bruno@clisp.org>
17288
17289         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
17290         MacOS X 10.4/PowerPC.
17291         Reported by Simon Josefsson.
17292
17293 2008-12-08  Jim Meyering  <meyering@redhat.com>
17294
17295         work around mingw's lack of some S_IF definitions
17296         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
17297         Reported by Simon Josefsson.
17298
17299 2008-12-08  Bruno Haible  <bruno@clisp.org>
17300
17301         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
17302         applied to variables. Needed on MacOS X 10.4/PowerPC.
17303         Reported by Simon Josefsson.
17304
17305 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
17306         and Eric Blake  <ebb9@byu.net>
17307
17308         assert: honor --enable-assert
17309         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
17310         order to honor --enable-assert, rather than treating it as a
17311         synonym for --disable-assert.
17312
17313 2008-12-08  Jim Meyering  <meyering@redhat.com>
17314
17315         * lib/posixtm.c: Remove now-useless declaration of mktime.
17316
17317         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
17318
17319 2008-12-07  Bruno Haible  <bruno@clisp.org>
17320
17321         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
17322         test_once): Mark functions as static.
17323         * tests/test-tls.c (test_tls): Likewise.
17324
17325 2008-12-07  Bruno Haible  <bruno@clisp.org>
17326
17327         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
17328         iconv_register_autodetect.
17329
17330 2008-12-07  Jim Meyering  <meyering@redhat.com>
17331
17332         posixtm.c: avoid a warning
17333         * lib/posixtm.c (posixtime): Don't initialize tm0.
17334         It's no longer needed to placate gcc4's -Wuninitialized,
17335         and the attempt to placate would elicit a new warning.
17336
17337         unicodeio.c: mark unused parameters
17338         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
17339         (fallback_failure_callback): Likewise.
17340
17341 2008-12-07  Bruno Haible  <bruno@clisp.org>
17342
17343         * gnulib-tool (func_create_testdir): When building the tests
17344         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
17345         Reported by Simon Josefsson.
17346
17347 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17348
17349         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
17350
17351 2008-12-06  Bruno Haible  <bruno@clisp.org>
17352
17353         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
17354         Suggested by Eric Blake.
17355
17356 2008-12-06  Bruno Haible  <bruno@clisp.org>
17357
17358         Fix a c-stack test failure on MacOS X.
17359         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
17360         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
17361         handler for SIGBUS as well.
17362         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
17363         install a signal handler for SIGBUS as well.
17364         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
17365
17366 2008-12-06  Bruno Haible  <bruno@clisp.org>
17367
17368         Advocacy documentation.
17369         * doc/gnulib-intro.texi (Benefits): New section.
17370         * doc/gnulib.texi: Update.
17371
17372 2008-12-06  Bruno Haible  <bruno@clisp.org>
17373
17374         Document the 'manywarnings' module.
17375         * doc/manywarnings.texi: New file.
17376         * doc/gnulib.texi: Include it.
17377
17378 2008-12-05  Eric Blake  <ebb9@byu.net>
17379
17380         tests: silence some gcc warnings
17381         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
17382         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
17383         type mismatches.
17384
17385 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17386             Bruno Haible  <bruno@clisp.org>
17387
17388         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
17389
17390 2008-11-29  Jim Meyering  <meyering@redhat.com>
17391
17392         unicodeio.c: mark unused parameters
17393         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
17394         (fallback_failure_callback): Likewise.
17395
17396         fts: fix a thinko
17397         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
17398         (set_stat_type): Return S_IF*-valued "type" directly.
17399         Prompted by James Youngman's spotting a related bug.
17400         Confirmed by further testing through find.
17401
17402         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
17403         * lib/fts.c (D_TYPE): Define.
17404         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
17405         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
17406         (s_ifmt_shift_bits): New function.
17407         (set_stat_type): New function.
17408         (fts_build): When not calling fts_stat, call set_stat_type
17409         to propagate dirent.d_type info to fts_read caller.
17410         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
17411         fts_statp->st_mode type information may be valid.
17412
17413 2008-11-28  Simon Josefsson  <simon@josefsson.org>
17414
17415         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
17416         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
17417         <sds@gnu.org>.
17418
17419 2008-11-20  Bruno Haible  <bruno@clisp.org>
17420
17421         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
17422         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
17423         INCLUDE_NEXT.
17424         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
17425         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
17426         * modules/math (Makefile.am): Substitute
17427         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
17428         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17429
17430 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
17431             Bruno Haible  <bruno@clisp.org>
17432
17433         * lib/stdint.in.h: Define all type macros so that their expansion is
17434         a single typedef'ed token. Fixes a compilation failure in Boost which
17435         does "using ::int8_t;".
17436
17437 2008-11-18  Simon Josefsson  <simon@josefsson.org>
17438
17439         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
17440         gl_MANYWARN_ALL_GCC.
17441         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
17442         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
17443         * modules/manywarnings: New file.
17444         * MODULES.html.sh: Mention manywarnings module.
17445
17446 2008-11-18  Bruno Haible  <bruno@clisp.org>
17447
17448         * doc/gnulib-tool.texi (Unit tests): New section.
17449
17450 2008-11-18  Simon Josefsson  <simon@josefsson.org>
17451
17452         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
17453         paths like 'lib/po/foo.po'.
17454
17455 2008-11-17  Simon Josefsson  <simon@josefsson.org>
17456
17457         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
17458         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
17459
17460 2008-11-17  Simon Josefsson  <simon@josefsson.org>
17461
17462         * m4/warnings.m4: Use CPPFLAGS to really check whether the
17463         parameter works.
17464
17465 2008-11-17  Simon Josefsson  <simon@josefsson.org>
17466
17467         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
17468
17469 2008-11-17  Bruce Korb  <bkorb@gnu.org>
17470
17471         * modules/parse-duration-tests: New file.
17472         * tests/test-parse-duration.sh: New file.
17473         * tests/test-parse-duration.c: New file.
17474
17475         New module 'parse-duration'.
17476         * lib/parse-duration.h: New file.
17477         * lib/parse-duration.c: New file.
17478         * modules/parse-duration: New file.
17479
17480 2008-11-17  Bruno Haible  <bruno@clisp.org>
17481
17482         * tests/test-select-out.sh: Comment out the first pipe test.
17483         Reported by Simon Josefsson.
17484
17485 2008-11-17  Bruno Haible  <bruno@clisp.org>
17486
17487         * modules/getaddrinfo (Depends-on): Add servent, hostent.
17488         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
17489         gl_HOSTENT.
17490
17491 2008-11-17  Bruno Haible  <bruno@clisp.org>
17492
17493         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
17494         -lnetwork and -lnet. Needed for Haiku and BeOS.
17495
17496 2008-11-16  Bruno Haible  <bruno@clisp.org>
17497
17498         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
17499
17500 2008-11-16  Bruno Haible  <bruno@clisp.org>
17501
17502         Avoid test failure on Haiku.
17503         * tests/test-fsync.c: Include <errno.h>.
17504         (main): Don't require that fsync (0) fails.
17505
17506 2008-11-15  Bruno Haible  <bruno@clisp.org>
17507
17508         New module 'hostent'.
17509         * modules/hostent: New file.
17510         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
17511
17512 2008-11-15  Bruno Haible  <bruno@clisp.org>
17513
17514         New module 'servent'.
17515         * modules/servent: New file.
17516         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
17517
17518 2008-11-15  Bruno Haible  <bruno@clisp.org>
17519
17520         Avoid generating same test program with two different rules.
17521         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
17522         test-frexp to test-frexp-nolibm.
17523         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
17524         test-frexpl to test-frexpl-nolibm.
17525
17526 2008-11-15  Bruno Haible  <bruno@clisp.org>
17527
17528         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
17529         $(FREXPL_LIBM).
17530
17531 2008-11-15  Bruno Haible  <bruno@clisp.org>
17532
17533         * lib/netdb.in.h: Activate the definitions also when the system's
17534         <netdb.h> has 'struct addrinfo'.
17535         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
17536         EAI_OVERFLOW or AI_NUMERICSERV.
17537         * doc/posix-headers/netdb.texi: Document the problem.
17538
17539 2008-11-15  Bruno Haible  <bruno@clisp.org>
17540
17541         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
17542
17543         Make the 'sched' module work on platforms where <sched.h> exists but
17544         is incomplete (such as Haiku).
17545         * lib/sched.in.h; Include the system's <sched.h> if it exists.
17546         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
17547         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
17548         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
17549         HAVE_STRUCT_SCHED_PARAM.
17550         * modules/sched (Depends-on): Add include_next.
17551         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
17552         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
17553         * doc/posix-headers/sched.texi: Document the issue.
17554
17555 2008-11-13  Jim Meyering  <meyering@redhat.com>
17556
17557         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
17558         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
17559         test would fail due to the difference in the Report bugs to ...
17560         line.  The expected address is empty, "<>", while the actual
17561         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
17562
17563 2008-11-12  Bruno Haible  <bruno@clisp.org>
17564
17565         lstat: don't compile lstat.c on systems lacking lstat
17566         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
17567         which don't have lstat; this is handled by lib/sys_stat.in.h already.
17568         Reported by Daniel P. Berrange via Jim Meyering.
17569
17570 2008-11-12  Jim Meyering  <meyering@redhat.com>
17571
17572         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
17573
17574 2008-11-12  Simon Josefsson  <simon@josefsson.org>
17575
17576         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
17577         instead.
17578
17579 2008-11-12  Bruno Haible  <bruno@clisp.org>
17580
17581         * lib/unicodeio.c: Include unistr.h.
17582         (utf8_wctomb): Remove function.
17583         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
17584
17585 2008-11-12  Simon Josefsson  <simon@josefsson.org>
17586
17587         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
17588         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
17589         <bruno@clisp.org>.
17590         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
17591
17592 2008-11-12  Simon Josefsson  <simon@josefsson.org>
17593
17594         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
17595         * doc/gnulib.texi: Add section for warnings.
17596
17597 2008-11-11  Bruno Haible  <bruno@clisp.org>
17598
17599         * lib/sockets.h: Add a comment.
17600
17601 2008-11-11  Karl Berry  <karl@gnu.org>
17602
17603         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
17604
17605 2008-11-11  Eric Blake  <ebb9@byu.net>
17606
17607         fdl.texi: avoid git symlinks
17608         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
17609
17610 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
17611
17612         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
17613
17614 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
17615
17616         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
17617         (gl_WARN_ADD): Substitute $2 if literal.
17618
17619 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
17620
17621         * m4/warning.m4: Remove.
17622
17623 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
17624
17625         * m4/warnings.m4: Almost complete rewrite. :-)
17626
17627 2008-11-10  Simon Josefsson  <simon@josefsson.org>
17628
17629         * modules/warnings: New module.
17630         * m4/warnings.m4: New file.
17631         * MODULES.html.sh: Mention warnings module.
17632         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
17633         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17634
17635 2008-11-10  Eric Blake  <ebb9@byu.net>
17636
17637         fdl.texi: make a symlink to the latest version
17638         * doc/standards.texi: Revert today's earlier change.
17639         * doc/fdl-1.2.texi: Rename from old fdl.texi...
17640         * doc/fdl.texi: ...and replace this with a symlink to the newer
17641         fdl-1.3.texi.
17642
17643 2008-11-10  Bruno Haible  <bruno@clisp.org>
17644
17645         * tests/test-select-fd.c (main): Accept the result file name as fourth
17646         argument.
17647         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
17648         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
17649
17650 2008-11-10  Bruno Haible  <bruno@clisp.org>
17651
17652         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
17653         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
17654         as autoconf-substituted macros.
17655         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
17656         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
17657         gl_NETDB_H_DEFAULTS. Set these variables.
17658         * modules/netdb (Makefile.am): Substitute these variables.
17659
17660 2008-11-10  Eric Blake  <ebb9@byu.net>
17661
17662         standards.texi: include correct file for FDL 1.3
17663         * doc/standards.texi (GNU Free Documentation License): Change
17664         include file to pull in FDL 1.3, not 1.2.
17665
17666         fdl.texi: revert accidental change to license
17667         * doc/fdl.texi: This is FDL 1.2, not 1.3.
17668
17669 2008-11-10  Bruno Haible  <bruno@clisp.org>
17670
17671         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
17672         cross-compiling guesses also when the native compile gives no result.
17673
17674 2008-11-10  Bruno Haible  <bruno@clisp.org>
17675
17676         * lib/spawni.c (__spawni): Force variable into the stack.
17677
17678 2008-11-10  Bruno Haible  <bruno@clisp.org>
17679
17680         Add support for Haiku.
17681         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
17682         glibc and BeOS, but also on Haiku.
17683         * lib/fpurge.c (fpurge): Likewise.
17684         * lib/freadable.c (freadable): Likewise.
17685         * lib/freadahead.c (freadahead): Likewise.
17686         * lib/freading.c (freading): Likewise.
17687         * lib/freadptr.c (freadptr): Likewise.
17688         * lib/freadseek.c (freadptrinc): Likewise.
17689         * lib/fseeko.c (rpl_fseeko): Likewise.
17690         * lib/fseterr.c (fseterr): Likewise.
17691         * lib/fwritable.c (fwritable): Likewise.
17692         * lib/fwriting.c (fwriting): Likewise.
17693         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
17694
17695 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
17696
17697         * lib/config.charset: Treat Haiku like BeOS.
17698
17699 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
17700
17701         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
17702         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
17703
17704 2008-11-08  Bruno Haible  <bruno@clisp.org>
17705
17706         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
17707         AC_CACHE_CHECK.
17708
17709 2008-11-08  Bruno Haible  <bruno@clisp.org>
17710
17711         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
17712
17713 2008-11-08  Bruno Haible  <bruno@clisp.org>
17714
17715         * tests/test-select-fd.c: New file.
17716         * tests/test-select-in.sh: New file.
17717         * tests/test-select-out.sh: New file.
17718         * tests/test-select-stdin.c: New file.
17719         * modules/select-tests (Files): Add the new files.
17720         (Depends-on): Add gettimeofday.
17721         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
17722         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
17723         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
17724
17725 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
17726             Bruno Haible  <bruno@clisp.org>
17727
17728         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
17729
17730 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
17731
17732         * build-aux/pmccabe2html: Added support for C++ source files.
17733
17734 2008-11-05  Ben Pfaff  <blp@gnu.org>
17735
17736         Fix lib/close.c build on Windows.
17737         * modules/close (Files): Add lib/w32sock.h.
17738
17739 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
17740
17741         Accept Bison's NEWS format.
17742         * build-aux/announce-gen (print_news_deltas): Tweak
17743         $re_prefix.
17744
17745 2008-11-04  Bruno Haible  <bruno@clisp.org>
17746
17747         * modules/random_r (Maintainer): Add glibc.
17748
17749 2008-11-04  Simon Josefsson  <simon@josefsson.org>
17750
17751         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
17752         by karl@freefriends.org (Karl Berry).
17753         * doc/alloca.texi: Likewise.
17754         * doc/c-ctype.texi: Likewise.
17755         * doc/c-strcase.texi: Likewise.
17756         * doc/c-strcaseeq.texi: Likewise.
17757         * doc/c-strcasestr.texi: Likewise.
17758         * doc/c-strstr.texi: Likewise.
17759         * doc/c-strtod.texi: Likewise.
17760         * doc/c-strtold.texi: Likewise.
17761         * doc/ctime.texi: Likewise.
17762         * doc/error.texi: Likewise.
17763         * doc/fdl.texi: Likewise.
17764         * doc/gcd.texi: Likewise.
17765         * doc/getdate.texi: Likewise.
17766         * doc/gnulib-intro.texi: Likewise.
17767         * doc/gnulib-tool.texi: Likewise.
17768         * doc/gnulib.texi: Likewise.
17769         * doc/inet_ntoa.texi: Likewise.
17770         * doc/maintain.texi: Likewise.
17771         * doc/make-stds.texi: Likewise.
17772         * doc/quote.texi: Likewise.
17773         * doc/regexprops-generic.texi: Likewise.
17774         * doc/standards.texi: Likewise.
17775         * doc/verify.texi: Likewise.
17776         * doc/visibility.texi: Likewise.
17777         * doc/gnulib.texi (GNU Free Documentation License): Include
17778         fdl-1.3.texi instead of fdl.texi.
17779
17780 2008-11-04  Simon Josefsson  <simon@josefsson.org>
17781
17782         * doc/fdl-1.3.texi: New file, from
17783         <http://www.gnu.org/licenses/fdl-1.3.texi>.
17784         * modules/fdl-1.3: Add.
17785         * MODULES.html.sh: Add fdl-1.3.
17786
17787 2008-11-03  Bruno Haible  <bruno@clisp.org>
17788
17789         Make determination of absolute name of header file work with AIX xlc.
17790         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
17791         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
17792         preprocessing.
17793         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
17794         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
17795
17796 2008-11-03  Simon Josefsson  <simon@josefsson.org>
17797
17798         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
17799         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
17800         <ludo@gnu.org>.
17801
17802 2008-11-02  Bruno Haible  <bruno@clisp.org>
17803
17804         Mark 'strpbrk' obsolete.
17805         * modules/strpbrk (Status, Notice): New sections.
17806         * modules/strtok_r (Depends-on): Add strpbrk.
17807
17808 2008-11-02  Bruno Haible  <bruno@clisp.org>
17809
17810         Mark 'strdup' obsolete.
17811         * modules/strdup (Status, Notice): New sections.
17812         * modules/findprog (Depends-on): Add strdup.
17813         * modules/getaddrinfo (Depends-on): Likewise.
17814         * modules/localename (Depends-on): Likewise.
17815         * modules/relocatable-lib (Depends-on): Likewise.
17816         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
17817         * modules/relocatable-prog (Depends-on): Likewise.
17818         * modules/trim (Depends-on): Likewise.
17819         * modules/unictype/gen-ctype (Depends-on): Likewise.
17820         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
17821
17822 2008-11-02  Bruno Haible  <bruno@clisp.org>
17823
17824         Mark 'strcspn' obsolete.
17825         * modules/strcspn (Status, Notice): New sections.
17826
17827 2008-11-02  Bruno Haible  <bruno@clisp.org>
17828
17829         Mark 'rmdir' obsolete.
17830         * modules/rmdir (Status, Notice): New sections.
17831         * modules/clean-temp (Depends-on): Add rmdir.
17832         * modules/openat (Depends-on): Likewise.
17833
17834 2008-11-02  Bruno Haible  <bruno@clisp.org>
17835
17836         Mark 'raise' obsolete.
17837         * modules/raise (Status, Notice): New sections.
17838         (Include): Specify <signal.h>.
17839         * modules/stdio (Depends-on): Add raise.
17840         * modules/write (Depends-on): Likewise.
17841
17842 2008-11-02  Bruno Haible  <bruno@clisp.org>
17843
17844         Mark 'memset' obsolete.
17845         * modules/memset (Status, Notice): New sections.
17846
17847 2008-11-02  Bruno Haible  <bruno@clisp.org>
17848
17849         Mark 'memmove' obsolete.
17850         * modules/memmove (Status, Notice): New sections.
17851         * modules/argp (Depends-on): Add memmove.
17852         * modules/argz (Depends-on): Likewise.
17853         * modules/canonicalize (Depends-on): Likewise.
17854         * modules/canonicalize-lgpl (Depends-on): Likewise.
17855         * modules/fts (Depends-on): Likewise.
17856         * modules/getcwd (Depends-on): Likewise.
17857         * modules/human (Depends-on): Likewise.
17858         * modules/regex (Depends-on): Likewise.
17859         * modules/striconveh (Depends-on): Likewise.
17860         * modules/trim (Depends-on): Likewise.
17861         * modules/unistr/u8-move (Depends-on): Likewise.
17862         * modules/unistr/u16-move (Depends-on): Likewise.
17863         * modules/unistr/u32-move (Depends-on): Likewise.
17864
17865 2008-11-02  Bruno Haible  <bruno@clisp.org>
17866
17867         Mark 'memcpy' obsolete.
17868         * modules/memcpy (Status, Notice): New sections.
17869
17870 2008-11-02  Bruno Haible  <bruno@clisp.org>
17871
17872         Mark 'memcmp' obsolete.
17873         * modules/memcmp (Status, Notice): New sections.
17874         * modules/argmatch (Depends-on): Add memchr.
17875         * modules/backupfile (Depends-on): Likewise.
17876         * modules/c-strcasestr (Depends-on): Likewise.
17877         * modules/crypto/des (Depends-on): Likewise.
17878         * modules/csharpcomp (Depends-on): Likewise.
17879         * modules/fnmatch (Depends-on): Likewise.
17880         * modules/git-merge-changelog (Depends-on): Likewise.
17881         * modules/isnand (Depends-on): Likewise.
17882         * modules/isnand-nolibm (Depends-on): Likewise.
17883         * modules/isnanf (Depends-on): Likewise.
17884         * modules/isnanf-nolibm (Depends-on): Likewise.
17885         * modules/isnanl (Depends-on): Likewise.
17886         * modules/isnanl-nolibm (Depends-on): Likewise.
17887         * modules/mbchar (Depends-on): Likewise.
17888         * modules/memcoll (Depends-on): Likewise.
17889         * modules/quotearg (Depends-on): Likewise.
17890         * modules/regex (Depends-on): Likewise.
17891         * modules/relocatable-prog (Depends-on): Likewise.
17892         * modules/same (Depends-on): Likewise.
17893         * modules/signbit (Depends-on): Likewise.
17894         * modules/strcasestr-simple (Depends-on): Likewise.
17895         * modules/unictype/gen-ctype (Depends-on): Likewise.
17896         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
17897         * modules/uniname/uniname (Depends-on): Likewise.
17898         * modules/unistr/u8-cmp (Depends-on): Likewise.
17899
17900 2008-11-02  Bruno Haible  <bruno@clisp.org>
17901
17902         Mark 'memchr' obsolete.
17903         * modules/memchr (Status, Notice): New sections.
17904         * modules/argp (Depends-on): Add memchr.
17905         * modules/base64 (Depends-on): Likewise.
17906         * modules/c-strcasestr (Depends-on): Likewise.
17907         * modules/chdir-long (Depends-on): Likewise.
17908         * modules/fnmatch (Depends-on): Likewise.
17909         * modules/getsubopt (Depends-on): Likewise.
17910         * modules/git-merge-changelog (Depends-on): Likewise.
17911         * modules/glob (Depends-on): Likewise.
17912         * modules/strcasestr-simple (Depends-on): Likewise.
17913         * modules/strnlen (Depends-on): Likewise.
17914
17915 2008-11-02  Bruno Haible  <bruno@clisp.org>
17916
17917         Mark 'atexit' obsolete.
17918         * modules/atexit (Status, Notice): New sections.
17919         * modules/chdir-long (Depends-on): Add atexit.
17920         * modules/wait-process (Depends-on): Likewise.
17921
17922 2008-11-02  Bruno Haible  <bruno@clisp.org>
17923
17924         * gnulib-tool: New option --with-obsolete.
17925         (func_usage): Document it.
17926         (func_modules_transitive_closure): Drop obsolete dependencies if
17927         incobsolete is not true.
17928         (func_import): Read and save the incobsolete variable to the cache.
17929
17930 2008-11-02  Bruno Haible  <bruno@clisp.org>
17931
17932         * modules/TEMPLATE-EXTENDED: New field 'Status'.
17933         * gnulib-tool: New option --extract-status.
17934         (func_usage): Document it.
17935         (sed_extract_prog): Recognize it.
17936         (func_get_status): New function.
17937
17938 2008-10-30  Simon Josefsson  <simon@josefsson.org>
17939
17940         * modules/sockets (License): Change from LGPL to LGPLv2+.
17941
17942 2008-10-28  Simon Josefsson  <simon@josefsson.org>
17943
17944         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
17945
17946 2008-10-28  Simon Josefsson  <simon@josefsson.org>
17947
17948         * MODULES.html.sh (Support for systems lacking POSIX:2001):
17949         Mention times and sys_times.
17950         * modules/sys_times, modules/sys_times-tests: New modules.
17951         * modules/times, modules/times-tests: Likewise
17952         * m4/sys_times_h.m4: New file.
17953         * lib/sys_times.in.h: Likewise
17954         * lib/times.c: Likewise.
17955         * tests/test-sys_times.c: Likewise.
17956         * tests/test-times.c: Likewise.
17957         * doc/posix-headers/sys_times.texi: Update.
17958         * doc/posix-functions/times.texi: Update.
17959
17960 2008-10-28  Jim Meyering  <meyering@redhat.com>
17961
17962         * modules/tempname (Depends-on): Add lstat.
17963
17964         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
17965
17966 2008-10-28  Simon Josefsson  <simon@josefsson.org>
17967
17968         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
17969         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
17970         using idiom used elsewhere in gnulib.
17971
17972 2008-10-27  Jim Meyering  <meyering@redhat.com>
17973
17974         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
17975
17976 2008-10-27  Simon Josefsson  <simon@josefsson.org>
17977
17978         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
17979         TESTS_ENVIRONMENT, for shell scripts that needs to call built
17980         programs.
17981         * tests/test-argp-2.sh: Use $EXEEXT when needed.
17982
17983 2008-10-27  Simon Josefsson  <simon@josefsson.org>
17984
17985         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
17986
17987 2008-10-27  Bruno Haible  <bruno@clisp.org>
17988
17989         * tests/test-lstat.c: Include <stdio.h>.
17990
17991 2008-10-27  Simon Josefsson  <simon@josefsson.org>
17992
17993         * modules/lstat-tests: New module.
17994         * tests/test-lstat.c: New file.
17995
17996 2008-10-26  Jim Meyering  <meyering@redhat.com>
17997
17998         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
17999
18000 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18001             Bruno Haible  <bruno@clisp.org>
18002
18003         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
18004         * modules/configmake (Include): Add a note that the include must come
18005         after all system headers.
18006         * lib/javaversion.c: Include configmake.h after all other includes.
18007
18008 2008-10-26  Bruno Haible  <bruno@clisp.org>
18009
18010         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
18011         HAVE_STRUCT_RANDOM_DATA to 1.
18012         (gl_STDLIB_H): Simplify.
18013
18014 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18015
18016         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
18017         substitute HAVE_STRUCT_RANDOM_DATA.
18018         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
18019         random_data.
18020         * modules/stdlib (Makefile.am): Substitute
18021         HAVE_STRUCT_RANDOM_DATA.
18022
18023 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18024
18025         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
18026         * doc/gnulib-intro.texi (Copyright): Likewise.
18027
18028 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18029
18030         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
18031         findings.
18032
18033 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
18034             Bruno Haible  <bruno@clisp.org>
18035
18036         * lib/unistd.in.h: Include <winsock2.h>.
18037         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
18038         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
18039         Provide dummy declarations.
18040         (gethostname): Override.
18041         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
18042         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
18043         gl_PREREQ_SYS_H_WINSOCK2.
18044         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
18045         * doc/posix-functions/gethostname.texi: More details.
18046
18047 2008-10-25  Bruno Haible  <bruno@clisp.org>
18048
18049         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
18050         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
18051         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
18052
18053         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
18054         here ...
18055         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
18056         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
18057         gl_UNISTD_H_DEFAULTS.
18058
18059 2008-10-25  Eric Blake  <ebb9@byu.net>
18060
18061         signbit: avoid spurious compiler failure
18062         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
18063         declarations inside function.
18064
18065 2008-10-24  Simon Josefsson  <simon@josefsson.org>
18066             Bruno Haible  <bruno@clisp.org>
18067
18068         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
18069         * modules/random_r (Depends-on): Add stdint.
18070
18071 2008-10-24  Bruno Haible  <bruno@clisp.org>
18072
18073         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
18074         Eggert.
18075         * modules/strerror (License): Likewise.
18076
18077 2008-10-24  Jim Meyering  <meyering@redhat.com>
18078
18079         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
18080         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
18081
18082 2008-10-24  Eric Blake  <ebb9@byu.net>
18083
18084         getgroups: fix compilation when getgroups is available
18085         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
18086         but with <config.h> override of getgroups disabled.
18087
18088 2008-10-24  Simon Josefsson  <simon@josefsson.org>
18089
18090         * doc/gnulib.texi (Header files): Add note about C++ problems.
18091         Explained by Bruno Haible <bruno@clisp.org>.
18092
18093 2008-10-23  Bruno Haible  <bruno@clisp.org>
18094
18095         Define a dummy SA_NODEFER macro on Interix.
18096         * lib/signal.in.h (SA_NODEFER): Define fallback.
18097         Reported by Aleksey Cheusov <cheusov@tut.by> via
18098         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
18099
18100 2008-10-23  Bruno Haible  <bruno@clisp.org>
18101
18102         * modules/freadahead (License): Change to LGPLv2+.
18103         Suggested by Simon Josefsson.
18104
18105 2008-10-23  Jim Meyering  <meyering@redhat.com>
18106
18107         random_r: new module
18108         * modules/random_r: New file.
18109         * m4/random_r.m4: New file.
18110         * lib/random_r.c: New file, from glibc.
18111         * modules/random_r-tests: New file.
18112         * tests/test-random_r.c: New file.
18113         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
18114          Declare.
18115         (RAND_MAX): Define.
18116         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
18117         * modules/stdlib: Substitute them, too.
18118         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
18119         * doc/glibc-functions/initstate_r.texi: Mention the new module.
18120         * doc/glibc-functions/random_r.texi: Likewise.
18121         * doc/glibc-functions/setstate_r.texi: Likewise.
18122         * doc/glibc-functions/srandom_r.texi: Likewise.
18123         * config/srclist.txt: Mention it.
18124
18125 2008-10-23  David Lutterkort  <lutter@redhat.com>
18126
18127         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
18128         link requirement
18129
18130 2008-10-23  Jim Meyering  <meyering@redhat.com>
18131
18132         selinux-h: mark parameters of stub functions as intentionally unused
18133         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
18134         * lib/se-context.in.h: Likewise.
18135
18136 2008-10-22  Simon Josefsson  <simon@josefsson.org>
18137
18138         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
18139
18140 2008-10-22  Simon Josefsson  <simon@josefsson.org>
18141
18142         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
18143
18144 2008-10-22  Eric Blake  <ebb9@byu.net>
18145
18146         glthread/thread: avoid compiler warning
18147         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
18148         Add unreachable abort to silence compiler.
18149
18150 2008-10-22  Eric Blake  <ebb9@byu.net>
18151
18152         netdb: also supply struct addrinfo for cygwin 1.5.x
18153         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
18154         older cygwin.
18155         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
18156         cygwin.
18157         * doc/posix-headers/netdb.texi (netdb.h): Document this.
18158
18159 2008-10-22  Bruno Haible  <bruno@clisp.org>
18160
18161         * users.txt: Update entry about pspp.
18162
18163 2008-10-21  Bruno Haible  <bruno@clisp.org>
18164
18165         Simplification.
18166         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
18167         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
18168
18169         Simplification.
18170         * lib/ioctl.c (ioctl): Don't undefine.
18171         * lib/socket.c (socket): Don't undefine.
18172
18173         Remove unused module indicator macros.
18174         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
18175         GNULIB_$1 as a C macro.
18176
18177         * doc/posix-functions/close.texi: Undo last change.
18178         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
18179         Windows platforms.
18180
18181 2008-10-21  Bruno Haible  <bruno@clisp.org>
18182
18183         Add gethostname() declaration to <unistd.h>.
18184         * lib/unistd.in.h (gethostname): New declaration.
18185         * lib/gethostname.c: Include <unistd.h>.
18186         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
18187         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
18188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
18189         and HAVE_GETHOSTNAME.
18190         * modules/gethostname (Depends-on): Add unistd.
18191         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18192         (Include): Specify <unistd.h>.
18193         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
18194         HAVE_GETHOSTNAME.
18195         * tests/test-gethostname.c: Include <unistd.h> first.
18196
18197 2008-10-21  Bruno Haible  <bruno@clisp.org>
18198
18199         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
18200         * modules/select-tests (Depends-on): Likewise.
18201         Reported by Simon Josefsson.
18202
18203 2008-10-21  Simon Josefsson  <simon@josefsson.org>
18204
18205         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
18206         * lib/accept.c: New file, based on winsock.c.
18207         * lib/bind.c: New file, based on winsock.c.
18208         * lib/connect.c: New file, based on winsock.c.
18209         * lib/getpeername.c: New file, based on winsock.c.
18210         * lib/getsockname.c: New file, based on winsock.c.
18211         * lib/getsockopt.c: New file, based on winsock.c.
18212         * lib/ioctl.c: New file, based on winsock.c.
18213         * lib/listen.c: New file, based on winsock.c.
18214         * lib/recv.c: New file, based on winsock.c.
18215         * lib/recvfrom.c: New file, based on winsock.c.
18216         * lib/send.c: New file, based on winsock.c.
18217         * lib/sendto.c: New file, based on winsock.c.
18218         * lib/setsockopt.c: New file, based on winsock.c.
18219         * lib/shutdown.c: New file, based on winsock.c.
18220         * lib/socket.c: New file, based on winsock.c.
18221         * lib/w32sock.h: New file, based on winsock.c.
18222         * lib/winsock.c: Remove file.
18223         * modules/accept: Likewise.
18224         * modules/bind: Likewise.
18225         * modules/connect: Likewise.
18226         * modules/getpeername: Likewise.
18227         * modules/getsockname: Likewise.
18228         * modules/getsockopt: Likewise.
18229         * modules/ioctl: Likewise.
18230         * modules/listen: Likewise.
18231         * modules/recv: Likewise.
18232         * modules/recvfrom: Likewise.
18233         * modules/send: Likewise.
18234         * modules/sendto: Likewise.
18235         * modules/setsockopt: Likewise.
18236         * modules/shutdown: Likewise.
18237         * modules/socket: Use socket.c instead of winsock.c.
18238         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
18239         * doc/posix-functions/accept.texi: Doc fix.
18240         * doc/posix-functions/bind.texi: Doc fix.
18241         * doc/posix-functions/close.texi: Doc fix.
18242         * doc/posix-functions/connect.texi: Doc fix.
18243         * doc/posix-functions/getpeername.texi: Doc fix.
18244         * doc/posix-functions/getsockname.texi: Doc fix.
18245         * doc/posix-functions/getsockopt.texi: Doc fix.
18246         * doc/posix-functions/ioctl.texi: Doc fix.
18247         * doc/posix-functions/listen.texi: Doc fix.
18248         * doc/posix-functions/recv.texi: Doc fix.
18249         * doc/posix-functions/recvfrom.texi: Doc fix.
18250         * doc/posix-functions/send.texi: Doc fix.
18251         * doc/posix-functions/sendto.texi: Doc fix.
18252         * doc/posix-functions/setsockopt.texi: Doc fix.
18253         * doc/posix-functions/shutdown.texi: Doc fix.
18254         * doc/posix-functions/socket.texi: Doc fix.
18255
18256 2008-10-20  Bruno Haible  <bruno@clisp.org>
18257
18258         Take into account the role of SIGABRT_COMPAT on Windows 2008.
18259         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
18260         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
18261         as an alias for SIGABRT.
18262         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
18263         (sigaction): Map it to SIGABRT.
18264         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
18265
18266 2008-10-20  Bruno Haible  <bruno@clisp.org>
18267
18268         * lib/fts.c: Don't include lstat.h.
18269         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
18270
18271         Move the lstat() declaration to <sys/stat.h>.
18272         * lib/lstat.h: Remove file.
18273         * lib/sys_stat.in.h: Add special invocation convention.
18274         (lstat): New declaration.
18275         * lib/lstat.c (orig_lstat): New function.
18276         (rpl_lstat): Use orig_lstat instead of lstat.
18277         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
18278         AC_C_INLINE. Set REPLACE_LSTAT.
18279         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
18280         and REPLACE_LSTAT.
18281         * modules/lstat (Files): Remove lib/lstat.h.
18282         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
18283         (Include): Specify <sys/stat.h> instead of lstat.h.
18284         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
18285         REPLACE_LSTAT.
18286         * NEWS: Mention the change.
18287
18288 2008-10-20  Bruno Haible  <bruno@clisp.org>
18289
18290         * modules/posix_spawn-tests: New file.
18291         * tests/test-posix_spawn3.c: New file.
18292
18293 2008-10-20  Bruno Haible  <bruno@clisp.org>
18294
18295         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
18296         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
18297         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
18298         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
18299         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
18300
18301 2008-10-20  Bruno Haible  <bruno@clisp.org>
18302
18303         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
18304         of posix_spawn on AIX 5.3.
18305
18306 2008-10-20  Bruno Haible  <bruno@clisp.org>
18307
18308         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
18309
18310 2008-10-20  Bruno Haible  <bruno@clisp.org>
18311
18312         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
18313         of AC_LANG_PROGRAM.
18314
18315 2008-10-20  Simon Josefsson  <simon@josefsson.org>
18316
18317         * lib/netdb.in.h: Don't define GNU specific constants until they
18318         are supported or needed.  Reported by Bruno Haible
18319         <bruno@clisp.org>.
18320
18321 2008-10-20  Simon Josefsson  <simon@josefsson.org>
18322
18323         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
18324
18325 2008-10-20  Simon Josefsson  <simon@josefsson.org>
18326
18327         * lib/getaddrinfo.h: Remove file.
18328         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
18329         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
18330         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
18331         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
18332         * modules/netdb: Substitute GNULIB_GETADDRINFO.
18333         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
18334         * tests/test-getaddrinfo.c: Likewise.
18335         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
18336         * NEWS: Mention change.
18337
18338 2008-10-19  Bruno Haible  <bruno@clisp.org>
18339
18340         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
18341
18342 2008-10-19  Bruno Haible  <bruno@clisp.org>
18343
18344         * lib/wait-process.c: Include simply <sys/wait.h>.
18345         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
18346         WIFSTOPPED): Remove fallback definitions.
18347         * modules/wait-process (Depends-on): Add sys_wait.
18348
18349         New module 'sys_wait'.
18350         * modules/sys_wait: New file.
18351         * lib/sys_wait.in.h: New file, partially copied from
18352         lib/wait-process.c.
18353         * m4/sys_wait_h.m4: New file.
18354         * doc/posix-headers/sys_wait.texi: Mention the new module.
18355
18356 2008-10-19  Bruno Haible  <bruno@clisp.org>
18357
18358         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
18359
18360 2008-10-19  Bruno Haible  <bruno@clisp.org>
18361
18362         Assume that waitpid() fills an 'int' status, not a 'union wait'.
18363         * lib/wait-process.c (WAIT_T): Remove type.
18364         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
18365         (wait_subprocess): Update.
18366
18367 2008-10-19  Bruno Haible  <bruno@clisp.org>
18368
18369         New module 'atoll'.
18370         * modules/atoll: New file.
18371         * lib/stdlib.in.h (atoll): New declaration.
18372         * lib/atoll.c: New file, from glibc with modifications.
18373         * m4/atoll.m4: New file.
18374         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
18375         HAVE_ATOLL.
18376         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
18377         * doc/posix-functions/atoll.texi: Mention the new module.
18378
18379 2008-10-19  Bruno Haible  <bruno@clisp.org>
18380
18381         Add strtoull() declaration to <stdlib.h>.
18382         * lib/stdlib.in.h (strtoull): New declaration.
18383         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
18384         Set HAVE_STRTOULL.
18385         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
18386         HAVE_STRTOULL.
18387         * modules/strtoull (Depends-on): Add stdlib.
18388         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18389         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
18390         HAVE_STRTOULL.
18391
18392 2008-10-19  Bruno Haible  <bruno@clisp.org>
18393
18394         Add strtoll() declaration to <stdlib.h>.
18395         * lib/stdlib.in.h (strtoll): New declaration.
18396         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
18397         Set HAVE_STRTOLL.
18398         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
18399         HAVE_STRTOLL.
18400         * modules/strtoll (Depends-on): Add stdlib.
18401         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18402         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
18403
18404 2008-10-19  Bruno Haible  <bruno@clisp.org>
18405
18406         * modules/bcopy (Depends-on): Add strings.
18407         (Include): Specify <strings.h>.
18408
18409 2008-10-19  Bruno Haible  <bruno@clisp.org>
18410
18411         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
18412
18413 2008-10-19  Bruno Haible  <bruno@clisp.org>
18414
18415         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
18416         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
18417         mingw.
18418
18419 2008-10-19  Bruno Haible  <bruno@clisp.org>
18420
18421         * lib/atanl.c: Don't include isnanl.h.
18422         * lib/cosl.c: Likewise.
18423         * lib/ldexpl.c: Likewise.
18424         * lib/logl.c: Likewise.
18425         * lib/sinl.c: Likewise.
18426         * lib/sqrtl.c: Likewise.
18427         * lib/tanl.c: Likewise.
18428
18429         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
18430         * lib/isnanf.h: Remove file.
18431         * lib/isnand.h: Remove file.
18432         * lib/isnanl.h: Remove file.
18433         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
18434         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
18435         macros.
18436         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
18437         HAVE_ISNANF, don't define it as a C macro.
18438         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
18439         HAVE_ISNAND, don't define it as a C macro.
18440         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
18441         HAVE_ISNANL, don't define it as a C macro.
18442         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
18443         HAVE_ISNAN[FDL].
18444         * modules/isnanf (Files): Remove lib/isnanf.h.
18445         (Depends-on): Add math.
18446         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18447         (Include): Specify <math.h> instead of isnanf.h.
18448         * modules/isnand (Files): Remove lib/isnand.h.
18449         (Depends-on): Add math.
18450         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18451         (Include): Specify <math.h> instead of isnand.h.
18452         * modules/isnanl (Files): Remove lib/isnanl.h.
18453         (Depends-on): Add math.
18454         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18455         (Include): Specify <math.h> instead of isnanl.h.
18456         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
18457         HAVE_ISNAN[FDL].
18458         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
18459         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
18460         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
18461         * NEWS: Mention the change.
18462
18463 2008-10-18  Bruno Haible  <bruno@clisp.org>
18464
18465         Add getusershell(), setusershell(), endusershell() declarations to
18466         <unistd.h>.
18467         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
18468         declarations.
18469         * lib/getusershell.c: Include unistd.h.
18470         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
18471         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
18472         HAVE_GETUSERSHELL.
18473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
18474         and HAVE_GETUSERSHELL.
18475         * modules/getusershell (Depends-on): Add unistd, extensions.
18476         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18477         (Include): Specify <unistd.h>.
18478         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
18479         HAVE_GETUSERSHELL.
18480
18481 2008-10-18  Bruno Haible  <bruno@clisp.org>
18482
18483         Add a getloadavg() declaration to <stdlib.h>.
18484         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
18485         getloadavg declaration.
18486         (getloadavg): New declaration.
18487         * lib/getloadavg.c: Include <stdlib.h> first.
18488         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
18489         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
18490         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
18491         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
18492         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
18493         * modules/getloadavg (Depends-on): Add stdlib, extensions.
18494         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18495         (Include): Specify <stdlib.h>.
18496         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
18497         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
18498
18499 2008-10-18  Bruno Haible  <bruno@clisp.org>
18500
18501         * lib/dirchownmod.c: Don't include lchmod.h.
18502
18503         Move the lchmod() declaration to <sys/stat.h>.
18504         * lib/lchmod.h: Remove file.
18505         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
18506         (lchmod): New declaration, moved here from lib/lchown.h.
18507         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
18508         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
18509         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
18510         and HAVE_LCHMOD.
18511         * modules/lchmod (Files): Remove lib/lchmod.h.
18512         (Depends-on): Add sys_stat, extensions.
18513         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
18514         (Include): Specify <sys/stat.h> instead of lchmod.h.
18515         * modules/sys_stat (Depends-on): Add link-warning.
18516         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
18517         definition of GL_LINK_WARNING.
18518         * NEWS: Mention the change.
18519
18520 2008-10-18  Bruno Haible  <bruno@clisp.org>
18521
18522         * lib/fchdir.c: Don't include dirfd.h.
18523         * lib/fts.c: Likewise.
18524         * lib/getcwd.c: Likewise.
18525         * lib/glob.c: Likewise.
18526
18527         Move the dirfd() declaration to <dirent.h>.
18528         * lib/dirfd.h: Remove file.
18529         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
18530         (dirfd): New declaration.
18531         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
18532         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
18533         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
18534         HAVE_DECL_DIRFD.
18535         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
18536         HAVE_DECL_DIRFD.
18537         * modules/dirfd (Files): Remove lib/dirfd.h.
18538         (Depends-on): Add dirent, extensions.
18539         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
18540         (Include): Specify <dirent.h> instead of dirfd.h.
18541         * modules/dirent (Depends-on): Add link-warning.
18542         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
18543         definition of GL_LINK_WARNING.
18544         * NEWS: Mention the change.
18545
18546 2008-10-18  Bruno Haible  <bruno@clisp.org>
18547
18548         Move the euidaccess() declaration to <unistd.h>.
18549         * lib/euidaccess.h: Remove file.
18550         * lib/unistd.in.h (euidaccess): New declaration.
18551         * lib/euidaccess.c: Don't include euidaccess.h.
18552         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
18553         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
18554         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
18555         and HAVE_EUIDACCESS.
18556         * modules/euidaccess (Files): Remove lib/euidaccess.h.
18557         (Depends-on): Add unistd.
18558         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18559         (Include): Specify <unistd.h> instead of euidaccess.h.
18560         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
18561         HAVE_EUIDACCESS.
18562         * NEWS: Mention the change.
18563
18564 2008-10-18  Bruno Haible  <bruno@clisp.org>
18565
18566         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
18567
18568         Move the getdomainname() declaration to <unistd.h>.
18569         * lib/getdomainname.h: Remove file.
18570         * lib/unistd.in.h (getdomainname): New declaration.
18571         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
18572         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18573         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
18574         HAVE_GETDOMAINNAME.
18575         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18576         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
18577         * modules/getdomainname (Files): Remove lib/getdomainname.h.
18578         (Depends-on): Add unistd, extensions.
18579         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18580         (Includes): Specify <unistd.h> instead of getdomainname.h.
18581         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
18582         HAVE_GETDOMAINNAME.
18583         * NEWS: Mention the change.
18584
18585 2008-10-18  Bruno Haible  <bruno@clisp.org>
18586
18587         * modules/dirent: New file.
18588         * m4/dirent_h.m4: New file.
18589         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
18590         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
18591         * modules/fchdir (Files): Remove lib/dirent.in.h.
18592         (Depends-on): Add dirent.
18593         (Makefile.am): Move rules to modules/dirent.
18594         * doc/posix-headers/dirent.texi: Mention the new module.
18595
18596 2008-10-18  Bruno Haible  <bruno@clisp.org>
18597
18598         Avoid -Wunused-parameter warnings in public gnulib header files.
18599         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
18600         macro.
18601         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
18602
18603 2008-10-18  Bruno Haible  <bruno@clisp.org>
18604
18605         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
18606         * doc/glibc-functions/error.texi: Mention the module 'error'.
18607         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
18608         * doc/glibc-functions/getdomainname.texi: Mention the module
18609         'getdomainname'.
18610         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
18611         * doc/glibc-functions/getpagesize.texi: Mention the module
18612         'getpagesize'.
18613         * doc/glibc-functions/getusershell.texi: Mention the module
18614         'getusershell'.
18615         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
18616         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
18617         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
18618         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
18619         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
18620         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
18621         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
18622         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
18623         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
18624         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
18625         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
18626         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
18627         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
18628         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
18629
18630 2008-10-17  Bruno Haible  <bruno@clisp.org>
18631
18632         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
18633         HP-UX and IRIX, use -0.0L.
18634         * tests/test-ceill.c (minus_zero): Likewise.
18635         * tests/test-floorl.c (minus_zero): Likewise.
18636         * tests/test-frexpl.c (minus_zero): Likewise.
18637         * tests/test-isnan.c (minus_zerol): Likewise.
18638         * tests/test-isnanl.h (minus_zero): Likewise.
18639         * tests/test-ldexpl.c (minus_zero): Likewise.
18640         * tests/test-roundl.c (minus_zero): Likewise.
18641         * tests/test-signbit.c (minus_zerol): Likewise.
18642         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
18643         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
18644         * tests/test-truncl.c (minus_zero): Likewise.
18645         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
18646         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
18647         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
18648         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
18649
18650 2008-10-17  Bruno Haible  <bruno@clisp.org>
18651
18652         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
18653         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
18654         that it gets activated only for gcc >= 3.0.
18655         * lib/dirent.in.h: Likewise.
18656         * lib/errno.in.h: Likewise.
18657         * lib/fcntl.in.h: Likewise.
18658         * lib/float.in.h: Likewise.
18659         * lib/iconv.in.h: Likewise.
18660         * lib/inttypes.in.h: Likewise.
18661         * lib/locale.in.h: Likewise.
18662         * lib/math.in.h: Likewise.
18663         * lib/netdb.in.h: Likewise.
18664         * lib/netinet_in.in.h: Likewise.
18665         * lib/search.in.h: Likewise.
18666         * lib/signal.in.h: Likewise.
18667         * lib/spawn.in.h: Likewise.
18668         * lib/stdarg.in.h: Likewise.
18669         * lib/stdint.in.h: Likewise.
18670         * lib/stdio.in.h: Likewise.
18671         * lib/stdlib.in.h: Likewise.
18672         * lib/string.in.h: Likewise.
18673         * lib/strings.in.h: Likewise.
18674         * lib/sys_file.in.h: Likewise.
18675         * lib/sys_ioctl.in.h: Likewise.
18676         * lib/sys_select.in.h: Likewise.
18677         * lib/sys_socket.in.h: Likewise.
18678         * lib/sys_stat.in.h: Likewise.
18679         * lib/sys_time.in.h: Likewise.
18680         * lib/sysexits.in.h: Likewise.
18681         * lib/time.in.h: Likewise.
18682         * lib/unistd.in.h: Likewise.
18683         * lib/wchar.in.h: Likewise.
18684         * lib/wctype.in.h: Likewise.
18685         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18686
18687 2008-10-17  Jim Meyering  <meyering@redhat.com>
18688
18689         ignore-value: don't depend on inline module
18690         * modules/ignore-value (Depends-on): Remove 'inline'.
18691         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
18692         Suggestion from Bruno Haible.
18693
18694 2008-10-17  Bruno Haible  <bruno@clisp.org>
18695
18696         New implementation of condition variables for Win32.
18697         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
18698         (gl_linked_waitqueue_t): New type.
18699         (gl_cond_t): Use it.
18700         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
18701         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
18702         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
18703         (glthread_cond_init_func, glthread_cond_wait_func,
18704         glthread_cond_timedwait_func, glthread_cond_signal_func,
18705         glthread_cond_broadcast_func, glthread_cond_destroy_func):
18706         Reimplemented on the basis of gl_linked_waitqueue_t.
18707         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
18708         gl_waitqueue_t.
18709         (gl_rwlock_t): Update.
18710         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
18711
18712 2008-10-17  Simon Josefsson  <simon@josefsson.org>
18713
18714         * modules/recvfrom (Depends-on): Add dependency on getpeername.
18715         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
18716
18717 2008-10-17  Jim Meyering  <meyering@redhat.com>
18718
18719         ignore-value: new module
18720         * modules/ignore-value: New file.
18721         * lib/ignore-value.h: New file.
18722         * MODULES.html.sh (Compiler warning management): New section,
18723         just for this module.  More to come.
18724
18725 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
18726
18727         open-safer.c: avoid 'signed and unsigned in conditional...' warning
18728         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
18729         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
18730
18731 2008-10-16  Jim Meyering  <meyering@redhat.com>
18732
18733         openat-die.c: avoid 'no previous prototype' warning
18734         * lib/openat-die.c: Include "openat.h".
18735         Reported by Reuben Thomas <rrt@sc3d.org>.
18736
18737 2008-10-16  Simon Josefsson  <simon@josefsson.org>
18738
18739         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
18740         * lib/netdb.in.h: Fix typo.
18741         Reported by Bruno Haible  <bruno@clisp.org>
18742
18743         * lib/netdb.in.h: Include sys/socket.h for platforms without
18744         netdb.h, to get structures like hostent on MinGW.
18745         * modules/netdb (Depends-on): Add sys_socket.
18746
18747 2008-10-15  Simon Josefsson  <simon@josefsson.org>
18748
18749         * modules/netdb, modules/netdb-tests: New file.
18750         * m4/netdb_h.m4: New file.
18751         * lib/netdb.in.h: Add, currently just an empty file pending
18752         definitions.
18753         * tests/test-netdb.c: New file.
18754         * doc/posix-headers/netdb.texi: Mention that we replace it if
18755         needed.
18756         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18757         netdb.
18758
18759 2008-10-15  Simon Josefsson  <simon@josefsson.org>
18760
18761         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
18762         with code.
18763
18764 2008-10-13  Bruno Haible  <bruno@clisp.org>
18765
18766         * lib/glthread/cond.c (glthread_cond_wait_func,
18767         glthread_cond_timedwait_func): Add a comment.
18768
18769 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
18770
18771         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
18772         * tests/test-select.c: Likewise,
18773
18774 2008-10-13  Bruno Haible  <bruno@clisp.org>
18775
18776         * lib/glthread/cond.c (glthread_cond_wait_func,
18777         glthread_cond_timedwait_func): Fix variable name.
18778         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
18779
18780 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
18781
18782         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
18783         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
18784         struct sockaddr.sa_len.
18785         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
18786
18787 2008-10-13  Simon Josefsson  <simon@josefsson.org>
18788
18789         * build-aux/pmccabe2html: Add css and css_url parameters.
18790
18791 2008-10-12  Bruno Haible  <bruno@clisp.org>
18792
18793         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
18794         calling aclx_get.
18795         Reported by Rainer Tammer <tammer@tammer.net>.
18796
18797 2008-10-12  Bruno Haible  <bruno@clisp.org>
18798
18799         Use msvcrt aware primitives for creation/termination of Win32 threads.
18800         * lib/glthread/thread.c: Include <process.h>.
18801         (glthread_create_func): Use _beginthreadex instead of CreateThread.
18802         (wrapper_func): Update signature.
18803         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
18804
18805 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
18806             Bruno Haible  <bruno@clisp.org>
18807
18808         Provide a Win32 implementation of the 'cond' module.
18809         * lib/glthread/cond.h [USE_WIN32]: New implementation.
18810         * lib/glthread/cond.c (glthread_cond_init_func,
18811         glthread_cond_wait_func, glthread_cond_timedwait_func,
18812         glthread_cond_signal_func, glthread_cond_broadcast_func,
18813         glthread_cond_destroy_func) [USE_WIN32]: New functions.
18814         * modules/cond (Dependencies): Add gettimeofday.
18815
18816 2008-10-11  Bruno Haible  <bruno@clisp.org>
18817
18818         Make sleep work on older versions of mingw.
18819         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
18820         only whether it exists.
18821         * doc/posix-functions/sleep.texi: Mention the problem with older
18822         versions of mingw.
18823
18824 2008-10-11  Bruno Haible  <bruno@clisp.org>
18825
18826         New module 'shutdown'.
18827         * modules/shutdown: New file.
18828         * lib/sys_socket.in.h (shutdown): New declaration.
18829         * lib/winsock.c (shutdown): New function.
18830         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18831         GNULIB_SHUTDOWN.
18832         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
18833         * doc/posix-functions/shutdown.texi: Document the new module.
18834
18835 2008-10-11  Jim Meyering  <meyering@redhat.com>
18836
18837         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
18838
18839 2008-10-11  Bruno Haible  <bruno@clisp.org>
18840
18841         New module 'fclose'.
18842         * modules/fclose: New file.
18843         * lib/stdio.in.h (fclose): New declaration.
18844         * lib/fclose.c: New file.
18845         * m4/fclose.m4: New file.
18846         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
18847         REPLACE_FCLOSE.
18848         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
18849         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
18850         REPLACE_FCLOSE.
18851         * modules/close (Depends-on): fclose.
18852         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
18853
18854 2008-10-11  Bruno Haible  <bruno@clisp.org>
18855
18856         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
18857         set errno and don't call _close.
18858
18859 2008-10-10  Bruno Haible  <bruno@clisp.org>
18860
18861         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
18862         ACL, not afterwards. Fixes test failure on Cygwin.
18863
18864 2008-10-09  Ben Pfaff  <blp@gnu.org>
18865
18866         * build-aux/announce-gen: Fix gnulib version related part of usage
18867         message.  Die with a useful error message if no tarballs are
18868         found.
18869
18870 2008-10-10  Jim Meyering  <meyering@redhat.com>
18871
18872         bootstrap: use git's --depth=N option only if it's supported
18873         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
18874         recognize the --depth option.  Reported by Pádraig Brady.
18875
18876 2008-10-09  Bruno Haible  <bruno@clisp.org>
18877
18878         New module 'ioctl'.
18879         * modules/ioctl: New file.
18880         * lib/sys_socket.in.h (ioctl): Remove declaration.
18881         * lib/winsock.c: Include <sys/ioctl.h>.
18882         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
18883         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
18884         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
18885         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
18886         * doc/posix-functions/ioctl.texi: Mention the new module.
18887
18888 2008-10-09  Bruno Haible  <bruno@clisp.org>
18889
18890         New module 'sys_ioctl'.
18891         * lib/sys_ioctl.in.h: New file.
18892         * m4/sys_ioctl_h.m4: New file.
18893         * modules/sys_ioctl: New file.
18894         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
18895
18896 2008-10-09  Bruno Haible  <bruno@clisp.org>
18897
18898         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
18899         * lib/winsock.c: Include <stdarg.h>.
18900         (rpl_ioctl): Change to second argument 'int' and then varargs.
18901
18902 2008-10-09  Bruno Haible  <bruno@clisp.org>
18903
18904         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
18905         when the sys_socket module is present and the system has <winsock2.h>.
18906
18907 2008-10-09  Bruno Haible  <bruno@clisp.org>
18908
18909         * doc/posix-functions/close.texi: Mention module 'close' instead of
18910         module 'sys_socket'.
18911
18912 2008-10-09  Bruno Haible  <bruno@clisp.org>
18913
18914         * doc/glibc-headers/sys_ioctl.texi: New file.
18915         * doc/gnulib.texi: Include it.
18916
18917 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
18918             Bruno Haible  <bruno@clisp.org>
18919
18920         Combine the two replacements of 'close'.
18921         * lib/sys_socket.in.h (close): Define to a reminder to include
18922         <unistd.h>.
18923         (_gl_close_fd_maybe_socket): New declaration.
18924         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
18925         * lib/winsock.c (close): Remove undefinition.
18926         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
18927         needed for the gnulib module 'close'.
18928         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
18929         define to an error symbol or to a warning, if suitable.
18930         * lib/close.c: Include <sys/socket.h>.
18931         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
18932         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
18933         UNISTD_H_HAVE_WINSOCK2_H.
18934         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
18935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18936         UNISTD_H_HAVE_WINSOCK2_H.
18937         * modules/sys_socket (Files): Add m4/unistd_h.m4.
18938         (configure.ac): Set a module indicator.
18939         (Makefile.am): Substitute GNULIB_CLOSE.
18940         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
18941         * modules/poll-tests (Depends-on): Add close.
18942         * modules/select-tests (Depends-on): Likewise.
18943
18944 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
18945             Bruno Haible  <bruno@clisp.org>
18946
18947         New module 'close'.
18948         * modules/close: New file.
18949         * lib/unistd.in.h (close): Move declaration out of the
18950         FCHDIR_REPLACEMENT scope.
18951         (_gl_unregister_fd): New declaration.
18952         * lib/close.c: New file.
18953         * lib/fchdir.c (rpl_close): Remove function.
18954         * m4/close.m4: New file.
18955         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
18956         close.
18957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
18958         REPLACE_CLOSE.
18959         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
18960         REPLACE_CLOSE.
18961         * modules/fchdir (Depends-on): Add close.
18962
18963 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
18964             Bruno Haible  <bruno@clisp.org>
18965
18966         * lib/fcntl.in.h (open): Simplify conditionals.
18967         (_gl_register_fd): New declaration.
18968         * lib/fchdir.c (rpl_open): Remove function.
18969         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
18970         also.
18971         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
18972         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
18973         open.
18974
18975 2008-10-09  Jim Meyering  <meyering@redhat.com>
18976
18977         GNUmakefile: use the more name-space-friendly "_version"
18978         * top/GNUmakefile (_dummy): Update.
18979         (_version): Rename from "version".
18980
18981 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
18982             Bruno Haible  <bruno@clisp.org>
18983
18984         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
18985         rpl_close.
18986         (_gl_register_fd): New function, extracted from rpl_open.
18987         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
18988         (rpl_open, rpl_opendir): Use _gl_register_fd.
18989
18990 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
18991
18992         Fix organization of 'open' replacement.
18993         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
18994         (gl_FUNC_OPEN): Use it.
18995         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
18996
18997 2008-10-08  Bruno Haible  <bruno@clisp.org>
18998
18999         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
19000
19001 2008-10-08  Simon Josefsson  <simon@josefsson.org>
19002
19003         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
19004         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
19005         listen).
19006
19007 2008-10-08  Eric Blake  <ebb9@byu.net>
19008
19009         GNUmakefile: add 'make version' target
19010         * top/GNUmakefile (_curr-ver): Split version update rules...
19011         (version): ...into a target.
19012
19013 2008-10-07  Bruno Haible  <bruno@clisp.org>
19014
19015         Use a more portable replacement expression for -0.0L.
19016         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
19017         instead of -0.0L. Fix m4 quotation.
19018
19019         * tests/test-signbit.c: Include <float.h>.
19020         (minus_zero): New variable.
19021         (test_signbitl): Use minus_zero instead of -zero.
19022         * modules/signbit-tests (Depends-on): Add float.
19023
19024         * tests/test-ceill.c: Include <float.h>.
19025         (zero): Remove variable.
19026         (minus_zero): New variable.
19027         (main): Use minus_zero instead of -zero.
19028         * modules/ceill-tests (Depends-on): Add float.
19029
19030         * tests/test-floorl.c: Include <float.h>.
19031         (zero): Remove variable.
19032         (minus_zero): New variable.
19033         (main): Use minus_zero instead of -zero.
19034         * modules/floorl-tests (Depends-on): Add float.
19035
19036         * tests/test-roundl.c: Include <float.h>.
19037         (zero): Remove variable.
19038         (minus_zero): New variable.
19039         (main): Use minus_zero instead of -zero.
19040         * modules/roundl-tests (Depends-on): Add float.
19041
19042         * tests/test-truncl.c: Include <float.h>.
19043         (zero): Remove variable.
19044         (minus_zero): New variable.
19045         (main): Use minus_zero instead of -zero.
19046         * modules/truncl-tests (Depends-on): Add float.
19047
19048         * tests/test-frexpl.c (zero): Remove variable.
19049         (minus_zero): New variable.
19050         (main): Use minus_zero instead of -zero.
19051         * modules/frexpl-tests (Depends-on): Add float.
19052
19053         * tests/test-isnan.c (zerol): Remove variable.
19054         (minus_zerol): New variable.
19055         (test_long_double): Use minus_zerol instead of -zerol.
19056         * modules/isnan-tests (Depends-on): Add float.
19057
19058         * tests/test-isnanl.h (zero): Remove variable.
19059         (minus_zero): New variable.
19060         (main): Use minus_zero instead of -zero.
19061         * modules/isnanl-nolibm-tests (Depends-on): Add float.
19062         * modules/isnanl-tests (Depends-on): Add float.
19063
19064         * tests/test-ldexpl.c (zero): Remove variable.
19065         (minus_zero): New variable.
19066         (main): Use minus_zero instead of -zero.
19067         * modules/ldexpl-tests (Depends-on): Add float.
19068
19069         * tests/test-snprintf-posix.h (zerol): Remove variable.
19070         (minus_zerol): New variable.
19071         (test_function): Use minus_zerol instead of -zerol.
19072         * modules/snprintf-posix-tests (Depends-on): Add float.
19073         * modules/vsnprintf-posix-tests (Depends-on): Add float.
19074
19075         * tests/test-sprintf-posix.h (zerol): Remove variable.
19076         (minus_zerol): New variable.
19077         (test_function): Use minus_zerol instead of -zerol.
19078         * modules/sprintf-posix-tests (Depends-on): Add float.
19079         * modules/vsprintf-posix-tests (Depends-on): Add float.
19080
19081         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
19082         (minus_zerol): New variable.
19083         (test_function): Use minus_zerol instead of -zerol.
19084         * modules/vasnprintf-posix-tests (Depends-on): Add float.
19085
19086         * tests/test-vasprintf-posix.c (zerol): Remove variable.
19087         (minus_zerol): New variable.
19088         (test_function): Use minus_zerol instead of -zerol.
19089         * modules/vasprintf-posix-tests (Depends-on): Add float.
19090
19091 2008-10-07  Simon Josefsson  <simon@josefsson.org>
19092
19093         * MODULES.html.sh (Support for building documentation): Mention
19094         pmccabe2html.  Sort entries.
19095
19096         Add pmccabe2html module, from gnupdf.
19097         * build-aux/pmccabe.css: New file.
19098         * build-aux/pmccabe2html: New file.
19099         * m4/pmccabe2html.m4: New file.
19100         * modules/pmccabe2html: New file.
19101
19102 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
19103
19104         flock: new module
19105         * MODULES.html.sh: Add to list of modules.
19106         * lib/flock.c: flock implementation for Windows and Unix systems
19107         which have fcntl.
19108         * doc/glibc-functions/flock.texi: Update documentation.
19109         * lib/sys_file.in.h: <sys/file.h> header file.
19110         * m4/flock.m4: M4 macros.
19111         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
19112         * modules/flock: flock module.
19113         * modules/flock-tests: flock tests module.
19114         * modules/sys_file: sys/file.h module.
19115         * tests/test-flock.c: test suite for flock.
19116
19117 2008-10-06  Jim Meyering  <meyering@redhat.com>
19118
19119         bootstrap: check for LT_INIT more portably still ;-)
19120         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
19121         Spotted by Bruno Haible.
19122
19123 2008-10-06  Eric Blake  <ebb9@byu.net>
19124
19125         test-signbit: avoid tripping Irix cc bug on -0.0L
19126         * tests/test-signbit.c (minus_zerol): Delete, and replace with
19127         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
19128         entire testsuite consistent and avoids an Irix 6.2 bug.
19129
19130 2008-10-05  Bruno Haible  <bruno@clisp.org>
19131             Jim Meyering  <jim@meyering.net>
19132
19133         Add an option for ignoring EPIPE during close_stdout.
19134         * lib/closeout.h: Include <stdbool.h>.
19135         (close_stdout_set_ignore_EPIPE): New declaration.
19136         * lib/closeout.c: Include <stdbool.h>.
19137         (ignore_EPIPE): New variable.
19138         (close_stdout_set_ignore_EPIPE): New function.
19139         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
19140         * lib/close-stream.c (close_stream): Mention the possible EPIPE
19141         failure.
19142         * modules/closeout (Depends-on): Add stdbool.
19143
19144 2008-10-05  Bruno Haible  <bruno@clisp.org>
19145
19146         * modules/accept: New file.
19147         * modules/bind: New file.
19148         * modules/connect: New file.
19149         * modules/getpeername: New file.
19150         * modules/getsockname: New file.
19151         * modules/getsockopt: New file.
19152         * modules/listen: New file.
19153         * modules/recv: New file.
19154         * modules/recvfrom: New file.
19155         * modules/send: New file.
19156         * modules/sendto: New file.
19157         * modules/setsockopt: New file.
19158         * modules/socket: New file.
19159         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
19160         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
19161         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
19162         the particular module is requested. Add a link warning when the
19163         particular module is not requested.
19164         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
19165         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
19166         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
19167         the particular module is requested.
19168         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
19169         gl_SYS_SOCKET_H_DEFAULTS): New macros.
19170         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
19171         * modules/sys_socket (Depends-on): Add link-warning.
19172         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
19173         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
19174         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
19175         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
19176         GL_LINK_WARNING.
19177         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
19178         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
19179         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
19180         * doc/posix-functions/getpeername.texi: Mention the new module
19181         'getpeername'.
19182         * doc/posix-functions/getsockname.texi: Mention the new module
19183         'getsockname'.
19184         * doc/posix-functions/getsockopt.texi: Mention the new module
19185         'getsockopt'.
19186         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
19187         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
19188         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
19189         * doc/posix-functions/send.texi: Mention the new module 'send'.
19190         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
19191         * doc/posix-functions/setsockopt.texi: Mention the new module
19192         'setsockopt'.
19193         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
19194         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
19195         listen, connect, accept.
19196         * modules/select-tests (Depends-on): Likewise.
19197
19198 2008-10-05  Bruno Haible  <bruno@clisp.org>
19199
19200         * lib/winsock.c (strerror): Remove unused #undef.
19201         (rpl_close): Remove unused local variable.
19202
19203         * modules/sys_socket (Depends-on); Add errno.
19204
19205 2008-10-05  Bruno Haible  <bruno@clisp.org>
19206
19207         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
19208         (select): Add a link warning when the 'select' module is not used.
19209         * modules/sys_select (Depends-on): Add link-warning.
19210         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
19211         Suggested by Paolo Bonzini.
19212
19213 2008-10-05  Jim Meyering  <meyering@redhat.com>
19214
19215         bootstrap: check for LT_INIT more portably
19216         * build-aux/bootstrap: Avoid using grep -E, since it's not
19217         portable enough.  Suggestion from Bruno Haible.
19218
19219 2008-10-05  Bruno Haible  <bruno@clisp.org>
19220
19221         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
19222         as being fixed by gnulib.
19223
19224 2008-10-05  Bruno Haible  <bruno@clisp.org>
19225
19226         * modules/select-tests: New file, mostly copied from
19227         modules/sys_select-tests.
19228         * tests/test-select.c: New file, mostly copied from
19229         tests/test-sys_select.c.
19230         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
19231         * modules/sys_select-tests (Depends-on): Remove all dependencies.
19232         (Makefile.am): Remove test_sys_select_LDADD.
19233
19234         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
19235         to an undefined symbol, for an error message.
19236         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
19237         (gl_SYS_SELECT_H_DEFAULTS): New macro.
19238         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
19239         winsock-select.c here.
19240         * modules/sys_select (Files): Remove lib/winsock-select.c.
19241         (Depends-on): Remove alloca.
19242         (Makefile.am): Substitute GNULIB_SELECT.
19243         * modules/select: New file.
19244         * doc/posix-functions/select.texi: Update.
19245
19246 2008-10-05  Bruno Haible  <bruno@clisp.org>
19247
19248         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
19249         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
19250         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
19251         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
19252         getdtablesize.
19253         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
19254         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
19255
19256 2008-10-05  Bruno Haible  <bruno@clisp.org>
19257
19258         * modules/getdtablesize-tests: New file.
19259         * tests/test-getdtablesize.c: New file.
19260
19261         New module 'getdtablesize'.
19262         * lib/unistd.in.h (getdtablesize): New declaration.
19263         * lib/getdtablesize.c: New file.
19264         * m4/getdtablesize.m4: New file.
19265         * modules/getdtablesize: New file.
19266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19267         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
19268         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
19269         HAVE_GETDTABLESIZE.
19270         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
19271
19272 2008-10-05  Bruno Haible  <bruno@clisp.org>
19273
19274         * modules/sched (Makefile.am): Fix typo.
19275         Reported by Simon Josefsson.
19276
19277 2008-10-05  Jim Meyering  <meyering@redhat.com>
19278
19279         bootstrap: check for LT_INIT, too
19280         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
19281         are deprecated.  Suggestion from Ralf Wildenhues.
19282
19283 2008-10-05  Bruno Haible  <bruno@clisp.org>
19284
19285         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
19286         overriding them by ours.
19287         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
19288
19289 2008-10-05  Jim Meyering  <meyering@redhat.com>
19290
19291         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
19292         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
19293         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
19294
19295 2008-10-04  Bruno Haible  <bruno@clisp.org>
19296
19297         * modules/dup2 (License): Change to LGPLv2+.
19298         * modules/sleep (License): Likewise.
19299         * modules/perror (License): Likewise.
19300         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
19301         Blake.
19302         * modules/signal (License): Likewise.
19303         * modules/sigprocmask (License): Likewise.
19304         * modules/raise (License): Change to LGPLv2+, with approval by Jim
19305         Meyering.
19306
19307 2008-10-04  Bruno Haible  <bruno@clisp.org>
19308
19309         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
19310         Reported by Rainer Tammer <tammer@tammer.net>.
19311
19312 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
19313             Bruno Haible  <bruno@clisp.org>
19314
19315         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
19316         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
19317         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
19318
19319 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
19320
19321         filevercmp: new module
19322         * lib/filevercmp.h: New function filevercmp comparing version strings.
19323         * lib/filevercmp.c: Implementation of filevercmp function.
19324         * modules/filevercmp: Module metadata.
19325         * tests/test-filevercmp.c: Unit test for new module.
19326         * modules/filevercmp-tests: Unit test metadata.
19327         * MODULES.html.sh: Add filevercmp module.
19328
19329 2008-10-03  Bruno Haible  <bruno@clisp.org>
19330
19331         * lib/c-ctype.h: Add comment.
19332         Reported by Jim Meyering.
19333
19334 2008-10-02  Bruno Haible  <bruno@clisp.org>
19335
19336         * modules/posix_spawn-internal (Depends-on): Add 'open'.
19337
19338 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
19339
19340         * build-aux/bootstrap: Allow renaming bootstrap, and change the
19341         name of bootstrap.conf accordingly.
19342
19343 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
19344
19345         * build-aux/bootstrap: Install git-merge-changelog configuration
19346         items into .gitconfig if needed.
19347
19348 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
19349
19350         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
19351         git repository, and initialize/update it accordingly.
19352
19353 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
19354
19355         * modules/fsync-tests: New file.
19356         * tests/test-fsync.c: New file.
19357
19358         New module 'fsync'.
19359         * lib/fsync.c: New file.
19360         * m4/fsync.m4: New file.
19361         * modules/fsync: New file.
19362         * lib/unistd.in.h (fsync): New declaration.
19363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
19364         GNULIB_FSYNC and HAVE_FSYNC.
19365         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
19366         * MODULES.html.sh (posix_functions): Add fsync.
19367         * doc/posix-functions/fsync.texi: Mention the new module.
19368
19369 2008-10-02  Jim Meyering  <meyering@redhat.com>
19370
19371         fts.c: sync with similar code from coreutils' remove.c
19372         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
19373         Guard also with "#if defined __linux__", since for now at least,
19374         this code is Linux-kernel-specific.
19375
19376 2008-10-02  Jim Meyering  <meyering@redhat.com>
19377
19378         fts: bug fixes
19379         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
19380         Include <sys/vfs.h>, not <sys/statfs.h>.
19381
19382         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
19383         Include <sys/vfs.h>, not <sys/statfs.h>.
19384
19385 2008-10-01  Bruno Haible  <bruno@clisp.org>
19386
19387         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
19388         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
19389         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
19390         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
19391         * doc/posix-functions/posix_spawnp.texi: Likewise.
19392         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
19393         whether posix_spawn actually works.
19394         * m4/pipe.m4 (gl_PIPE): Likewise.
19395         * modules/execute (Files): Add m4/posix_spawn.m4.
19396         * modules/pipe (Files): Add m4/posix_spawn.m4.
19397         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
19398
19399 2008-10-01  Jim Meyering  <meyering@redhat.com>
19400
19401         remove trailing spaces
19402         * NEWS: Likewise.
19403         * lib/poll.c (poll): Likewise.
19404         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
19405         * lib/winsock.c (rpl_close): Likewise.
19406         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
19407         * modules/yield: Likewise.
19408         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
19409         * tests/test-sys_select.c (connect_to_socket): Likewise.
19410
19411         fts.c: adjust a new interface to be more generally useful
19412         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
19413         (fts_build): Adjust caller.
19414
19415 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19416
19417         * modules/cond-tests: New file.
19418         * tests/test-cond.c: New file.
19419
19420 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19421             Bruno Haible  <bruno@clisp.org>
19422
19423         * modules/cond (Dependencies): Add errno, time.
19424         * lib/glthread/cond.h: Include <time.h>.
19425         (gl_cond_define, gl_cond_define_initialized): Use the same definition
19426         across platforms.
19427
19428 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19429             Bruno Haible  <bruno@clisp.org>
19430
19431         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
19432
19433 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19434             Bruno Haible  <bruno@clisp.org>
19435
19436         * modules/tls-tests (Depends-on): Add thread, yield.
19437         (configure.ac): Remove all checks.
19438         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
19439         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
19440         gl_thread_self): Remove definitions. Include glthread/thread.h and
19441         glthread/yield.h instead.
19442         (test_tls): Pass an additional NULL argument to gl_thread_join.
19443
19444 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19445             Bruno Haible  <bruno@clisp.org>
19446
19447         * modules/lock-tests (Depends-on): Add thread, yield.
19448         (configure.ac): Remove all checks.
19449         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
19450         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
19451         gl_thread_self): Remove definitions. Include glthread/thread.h and
19452         glthread/yield.h instead.
19453         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
19454         additional NULL argument to gl_thread_join.
19455
19456 2008-09-30  Bruno Haible  <bruno@clisp.org>
19457
19458         Fix the Win32 implementation of the 'thread' module.
19459         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
19460         pointer type.
19461         (gl_thread_self): Invoke gl_thread_self_func.
19462         (gl_thread_self_func): New declaration.
19463         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
19464         (do_init_self_key, init_self_key): New functions.
19465         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
19466         Remove some fields.
19467         (running_threads, running_lock): Remove variables.
19468         (get_current_thread_handle): New function.
19469         (gl_thread_self_func, wrapper_func, glthread_create_func,
19470         glthread_join_func, gl_thread_exit_func): Largely rewritten and
19471         simplified.
19472
19473 2008-09-30  Bruno Haible  <bruno@clisp.org>
19474
19475         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
19476         files.
19477
19478 2008-09-30  Jim Meyering  <meyering@redhat.com>
19479
19480         fts.m4: correct the test for statfs.f_type
19481         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
19482         when checking for statfs.f_type.
19483
19484 2008-09-15  Simon Josefsson  <simon@josefsson.org>
19485
19486         tests: avoid some compiler warnings
19487         * tests/test-memchr.c (main): Pass NULL indirectly.
19488         * tests/test-getdate.c (main): Remove unused variable 'ret'.
19489
19490 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
19491
19492         getdate.y: disallow countable dayshifts like "4 yesterday ago"
19493         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
19494         exactly specified dayshifts.
19495         (dayshift): New rule.
19496         (rel): Add dayshift.
19497         (relative_time_table) [tomorrow, yesterday, today, now]:
19498         Use tDAY_SHIFT in place of tDAY_UNIT.
19499         * tests/test-getdate.c: Add tests for now-disallowed countable
19500         dayshifts, e.g., "4 yesterday ago".
19501
19502 2008-09-29  Bruno Haible  <bruno@clisp.org>
19503
19504         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
19505         * tests/test-posix_spawn1.in.sh: Renamed from
19506         tests/test-posix_spawn.in.sh.
19507         * tests/test-posix_spawn2.c: New file.
19508         * tests/test-posix_spawn2.in.sh: New file.
19509         * modules/posix_spawnp-tests (Files): Update.
19510         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
19511
19512 2008-09-29  Bruno Haible  <bruno@clisp.org>
19513
19514         Propagate effects of putenv/setenv/unsetenv to child processes.
19515         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
19516         * lib/pipe.c (create_pipe): Likewise.
19517
19518 2008-09-29  Bruno Haible  <bruno@clisp.org>
19519
19520         Enable use of shell scripts as executables in mingw.
19521         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
19522         run the program as a shell script.
19523         * lib/pipe.c (create_pipe): Likewise.
19524         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
19525         resulting array.
19526
19527 2008-09-29  Eric Blake  <ebb9@byu.net>
19528
19529         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
19530
19531 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
19532
19533         * doc/posix-functions/accept.texi: Update mingw problems.
19534         * doc/posix-functions/bind.texi: Update mingw problems.
19535         * doc/posix-functions/close.texi: Update mingw problems.
19536         * doc/posix-functions/connect.texi: Update mingw problems.
19537         * doc/posix-functions/getpeername.texi: Update mingw problems.
19538         * doc/posix-functions/getsockname.texi: Update mingw problems.
19539         * doc/posix-functions/getsockopt.texi: Update mingw problems.
19540         * doc/posix-functions/ioctl.texi: Update mingw problems.
19541         * doc/posix-functions/listen.texi: Update mingw problems.
19542         * doc/posix-functions/recv.texi: Update mingw problems.
19543         * doc/posix-functions/recvfrom.texi: Update mingw problems.
19544         * doc/posix-functions/select.texi: Update mingw problems.
19545         * doc/posix-functions/send.texi: Update mingw problems.
19546         * doc/posix-functions/sendto.texi: Update mingw problems.
19547         * doc/posix-functions/setsockopt.texi: Update mingw problems.
19548         * doc/posix-functions/socket.texi: Update mingw problems.
19549
19550 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
19551             Bruno Haible  <bruno@clisp.org>
19552
19553         * lib/sys_select.in.h: Include sys/time.h.
19554         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
19555         * modules/sys_select: Depend on sys_time.
19556         * tests/test-sys_select.c: Test that sys/select.h defines struct
19557         timeval fully.
19558
19559 2008-09-29  Bruno Haible  <bruno@clisp.org>
19560
19561         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
19562         * lib/sys_select.in.h: Likewise.
19563
19564 2008-09-29  Bruno Haible  <bruno@clisp.org>
19565
19566         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
19567
19568 2008-09-29  Bruno Haible  <bruno@clisp.org>
19569
19570         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
19571         Set LIBSOCKET instead of augmenting LIBS.
19572         * modules/sockets (Link): New section.
19573         * modules/sockets-tests (test_sockets_LDADD): New variable.
19574         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
19575         * modules/poll-tests (test_poll_LDADD): New variable.
19576         * NEWS: Document the change.
19577
19578 2008-09-29  Bruno Haible  <bruno@clisp.org>
19579
19580         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
19581         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
19582         ARPA_INET_H directly.
19583         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
19584
19585 2008-09-28  Bruno Haible  <bruno@clisp.org>
19586
19587         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
19588         from gl_HEADER_SYS_SOCKET.
19589         (gl_HEADER_SYS_SOCKET): Invoke it.
19590         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19591
19592 2008-09-28  Bruno Haible  <bruno@clisp.org>
19593
19594         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
19595         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
19596         Needed on OSF/1 4.0.
19597
19598 2008-09-28  Bruno Haible  <bruno@clisp.org>
19599
19600         Override open more carefully.
19601         * lib/open.c (orig_open): New function.
19602         (rpl_open): Use orig_open instead of open.
19603         * lib/fcntl.in.h: Add special invocation convention.
19604         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
19605         (gl_FUNC_OPEN): Invoke it.
19606
19607         Override freopen more carefully.
19608         * lib/freopen.c (orig_freopen): New function.
19609         (rpl_freopen): Use orig_freopen instead of freopen.
19610         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
19611         (gl_FUNC_FREOPEN): Invoke it.
19612
19613         Override fopen more carefully.
19614         * lib/fopen.c (orig_fopen): New function.
19615         (rpl_fopen): Use orig_fopen instead of fopen.
19616         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
19617         (gl_FUNC_FOPEN): Invoke it.
19618         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
19619
19620 2008-09-28  Bruno Haible  <bruno@clisp.org>
19621
19622         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
19623         SIGPIPE.
19624
19625 2008-09-28  Bruno Haible  <bruno@clisp.org>
19626
19627         * tests/test-sigaction.c (handler, main): Disable the check whether
19628         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
19629         glibc systems with LinuxThreads.
19630
19631 2008-09-28  Bruno Haible  <bruno@clisp.org>
19632
19633         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
19634
19635         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
19636         with AIX xlc.
19637         * lib/fcntl.in.h (open): Likewise.
19638         Reported by Rainer Tammer <tammer@tammer.net>.
19639
19640 2008-09-28  Bruno Haible  <bruno@clisp.org>
19641
19642         * modules/posix_spawnp-tests: New file.
19643         * tests/test-posix_spawn.c: New file.
19644         * tests/test-posix_spawn.in.sh: New file.
19645
19646         New module 'posix_spawnp'.
19647         * modules/posix_spawnp: New file.
19648         * lib/spawnp.c: New file, from GNU libc with modifications.
19649         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
19650
19651         New module 'posix_spawn'.
19652         * modules/posix_spawn: New file.
19653         * lib/spawn.c: New file, from GNU libc with modifications.
19654         * doc/posix-functions/posix_spawn.texi: Mention the new module.
19655
19656         New module 'posix_spawnattr_destroy'.
19657         * modules/posix_spawnattr_destroy: New file.
19658         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
19659         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
19660         module.
19661
19662         New module 'posix_spawnattr_setsigmask'.
19663         * modules/posix_spawnattr_setsigmask: New file.
19664         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
19665         modifications.
19666         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
19667         new module.
19668
19669         New module 'posix_spawnattr_getsigmask'.
19670         * modules/posix_spawnattr_getsigmask: New file.
19671         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
19672         modifications.
19673         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
19674         new module.
19675
19676         New module 'posix_spawnattr_setsigdefault'.
19677         * modules/posix_spawnattr_setsigdefault: New file.
19678         * lib/spawnattr_setdefault.c: New file, from GNU libc with
19679         modifications.
19680         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
19681         new module.
19682
19683         New module 'posix_spawnattr_getsigdefault'.
19684         * modules/posix_spawnattr_getsigdefault: New file.
19685         * lib/spawnattr_getdefault.c: New file, from GNU libc with
19686         modifications.
19687         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
19688         new module.
19689
19690         New module 'posix_spawnattr_setschedpolicy'.
19691         * modules/posix_spawnattr_setschedpolicy: New file.
19692         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
19693         modifications.
19694         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
19695         new module.
19696
19697         New module 'posix_spawnattr_getschedpolicy'.
19698         * modules/posix_spawnattr_getschedpolicy: New file.
19699         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
19700         modifications.
19701         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
19702         new module.
19703
19704         New module 'posix_spawnattr_setschedparam'.
19705         * modules/posix_spawnattr_setschedparam: New file.
19706         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
19707         modifications.
19708         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
19709         new module.
19710
19711         New module 'posix_spawnattr_getschedparam'.
19712         * modules/posix_spawnattr_getschedparam: New file.
19713         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
19714         modifications.
19715         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
19716         new module.
19717
19718         New module 'posix_spawnattr_setpgroup'.
19719         * modules/posix_spawnattr_setpgroup: New file.
19720         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
19721         modifications.
19722         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
19723         module.
19724
19725         New module 'posix_spawnattr_getpgroup'.
19726         * modules/posix_spawnattr_getpgroup: New file.
19727         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
19728         modifications.
19729         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
19730         module.
19731
19732         New module 'posix_spawnattr_setflags'.
19733         * modules/posix_spawnattr_setflags: New file.
19734         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
19735         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
19736         module.
19737
19738         New module 'posix_spawnattr_getflags'.
19739         * modules/posix_spawnattr_getflags: New file.
19740         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
19741         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
19742         module.
19743
19744         New module 'posix_spawnattr_init'.
19745         * modules/posix_spawnattr_init: New file.
19746         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
19747         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
19748         module.
19749
19750         New module 'posix_spawn_file_actions_destroy'.
19751         * modules/posix_spawn_file_actions_destroy: New file.
19752         * lib/spawn_faction_destroy.c: New file, from GNU libc with
19753         modifications.
19754         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
19755         the new module.
19756
19757         New module 'posix_spawn_file_actions_addopen'.
19758         * modules/posix_spawn_file_actions_addopen: New file.
19759         * lib/spawn_faction_addopen.c: New file, from GNU libc with
19760         modifications.
19761         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
19762         the new module.
19763
19764         New module 'posix_spawn_file_actions_adddup2'.
19765         * modules/posix_spawn_file_actions_adddup2: New file.
19766         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
19767         modifications.
19768         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
19769         the new module.
19770
19771         New module 'posix_spawn_file_actions_addclose'.
19772         * modules/posix_spawn_file_actions_addclose: New file.
19773         * lib/spawn_faction_addclose.c: New file, from GNU libc with
19774         modifications.
19775         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
19776         the new module.
19777
19778         New module 'posix_spawn_file_actions_init'.
19779         * modules/posix_spawn_file_actions_init: New file.
19780         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
19781         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
19782         new module.
19783
19784         New module 'posix_spawn-internal'.
19785         * modules/posix_spawn-internal: New file.
19786         * lib/spawn_int.h: New file, from GNU libc with modifications.
19787         * lib/spawni.c: New file, from GNU libc with modifications.
19788         * m4/posix_spawn.m4: New file.
19789
19790         New module 'spawn'.
19791         * modules/spawn: New file.
19792         * lib/spawn.in.h: New file, from GNU libc with modifications.
19793         * m4/spawn_h.m4: New file.
19794         * doc/posix-headers/spawn.texi: Mention the new module.
19795
19796 2008-09-28  Bruno Haible  <bruno@clisp.org>
19797
19798         * modules/sched-tests: New file.
19799         * tests/test-sched.c: New file.
19800
19801         New module 'sched'.
19802         * modules/sched: New file.
19803         * lib/sched.in.h: New file.
19804         * m4/sched_h.m4: New file.
19805         * doc/posix-headers/sched.texi: Mention the new module.
19806
19807 2008-09-27  Eric Blake  <ebb9@byu.net>
19808
19809         Fix previous patch, and tweak references to $0.
19810         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
19811         (func_version, func_gnulib_dir): Don't call this program
19812         gnulib-tool.
19813         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
19814         with using $0 in function.
19815         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
19816         (func_fatal_error): Reuse the name the user invoked us with.
19817
19818 2008-09-27  Bruno Haible  <bruno@clisp.org>
19819
19820         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
19821         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
19822         (gl_ICONV_H): Not here.
19823         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
19824         instead of assigning ICONV_H directly.
19825
19826         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
19827         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
19828         WCHAR_H directly.
19829
19830 2008-09-27  Bruno Haible  <bruno@clisp.org>
19831
19832         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
19833         * modules/arpa_inet (Depends-on): Add link-warning.
19834         (Makefile.am): Insert the definition of GL_LINK-WARNING.
19835         * modules/unistd (Makefile.am): Likewise.
19836
19837 2008-09-26  Bruno Haible  <bruno@clisp.org>
19838
19839         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
19840         variables.
19841         (func_version): Essentially copied from gnulib-tool.
19842         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
19843         func_readlink): Copied from gnulib-tool.
19844
19845 2008-09-26  Bruno Haible  <bruno@clisp.org>
19846
19847         * gnulib-tool (func_version): Change directory to $gnulib_dir before
19848         invoking git-version-gen.
19849
19850 2008-09-26  Bruno Haible  <bruno@clisp.org>
19851
19852         * posix-modules: Update to directory names changed on 2008-01-19.
19853         Remove commas in output before splitting into words. No more need to
19854         avoid 'ftruncate' since 2007-02-19.
19855
19856 2008-09-26  Bruno Haible  <bruno@clisp.org>
19857
19858         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
19859
19860 2008-09-26  Bruno Haible  <bruno@clisp.org>
19861
19862         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
19863         * modules/fwriteerror (Depends-on): Add errno.
19864
19865 2008-09-26  Bruno Haible  <bruno@clisp.org>
19866
19867         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
19868         * tests/test-vc-list-files-cvs.sh: Likewise.
19869
19870 2008-09-26  Bruno Haible  <bruno@clisp.org>
19871
19872         * doc/posix-headers/sys_resource.texi: Reorder items.
19873
19874 2008-09-26  Jim Meyering  <meyering@redhat.com>
19875
19876         fts: tweak inode comparison function
19877         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
19878         inode numbers, as documented.
19879
19880         fts: sort dirent entries on inode number before traversing
19881         This avoids a quadratic, seek-related performance penalty when
19882         operating on a directory containing many entries (measurable at 10k;
19883         3.5 hours at 2 million entries with a cold cache) on certain types
19884         of file systems, including ext3 and ext4, but not tmpfs.
19885         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
19886         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
19887         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
19888         (fs_handles_readdir_ordered_dirents_efficiently): New function.
19889         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
19890         (fts_build): Set the stat.st_ino member from D_INO.
19891         If it is likely to be useful, sort dirent entries on inode number.
19892
19893         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
19894         and the struct statfs.f_type member.
19895         * modules/fts (Depends-on): Add d-ino.
19896
19897 2008-09-26  Bruno Haible  <bruno@clisp.org>
19898
19899         * modules/sigpipe-die (Depends-on): Add sigpipe.
19900
19901         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
19902         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
19903         and GNULIB_STDIO_H_SIGPIPE are set.
19904         * lib/stdio-write.c: New file.
19905         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
19906         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
19907         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
19908         REPLACE_STDIO_WRITE_FUNCS.
19909         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
19910         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
19911         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
19912         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
19913         * modules/stdio (Files): Add lib/stdio-write.c.
19914         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
19915         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
19916         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
19917         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
19918         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
19919         REPLACE_FPRINTF_POSIX.
19920         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
19921         REPLACE_PRINTF_POSIX.
19922         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
19923         REPLACE_VFPRINTF_POSIX.
19924         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
19925         REPLACE_VPRINTF_POSIX.
19926         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
19927         SIGPIPE issue.
19928         * doc/posix-functions/fputc.texi: Likewise.
19929         * doc/posix-functions/fputs.texi: Likewise.
19930         * doc/posix-functions/fwrite.texi: Likewise.
19931         * doc/posix-functions/printf.texi: Likewise.
19932         * doc/posix-functions/putc.texi: Likewise.
19933         * doc/posix-functions/putchar.texi: Likewise.
19934         * doc/posix-functions/puts.texi: Likewise.
19935         * doc/posix-functions/vfprintf.texi: Likewise.
19936         * doc/posix-functions/vprintf.texi: Likewise.
19937
19938         * modules/safe-write (Depends-on): Add write.
19939
19940         * modules/sigpipe-tests: New file.
19941         * tests/test-sigpipe.c: New file.
19942         * tests/test-sigpipe.sh: New file.
19943
19944         * modules/write: New file.
19945         * lib/unistd.in.h: Include <sys/types.h>.
19946         (write): New declaration.
19947         * lib/write.c: New file.
19948         * m4/write.m4: New file.
19949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19950         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
19951         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
19952         GNULIB_WRITE, REPLACE_WRITE.
19953         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
19954         and the SIGPIPE issue.
19955
19956         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
19957         (raise): New declaration.
19958         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
19959         (ext_signal): New function.
19960         (rpl_raise): New function.
19961         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
19962         GNULIB_SIGNAL_H_SIGPIPE.
19963         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
19964         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
19965
19966         * modules/sigpipe: New file.
19967         * m4/sigpipe.m4: New file.
19968
19969 2008-09-25  Derek Price  <derek@ximbiot.com>
19970             Bruno Haible  <bruno@clisp.org>
19971
19972         * gnulib-tool (func_import): Report all license incompatibilities, not
19973         just the first one.
19974
19975 2008-09-25  Bruno Haible  <bruno@clisp.org>
19976
19977         * gnulib-tool (func_import): When computing the edits, consider not
19978         only the Makefile.ams that exist but also those that will be generated.
19979
19980 2008-09-25  Simon Josefsson  <simon@josefsson.org>
19981
19982         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
19983         fixes gnulib-tool --test warning about duplicate dependency.
19984
19985 2008-09-25  Bruno Haible  <bruno@clisp.org>
19986
19987         * gnulib-tool: Don't ask the user to perform edits in the generated
19988         Makefile.ams.
19989         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
19990         apply to the Makefile.am being generated.
19991         (func_emit_tests_Makefile_am): Execute edits that apply to the
19992         Makefile.am being generated.
19993         (func_import): Setup list of Makefile.am edits before emitting the
19994         Makefile.ams, not at the end.
19995         (func_create_testdir): Update.
19996         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19997
19998 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19999
20000         * gnulib-tool (func_import): Store the --tests-base option in the
20001         comment in gnulib-cache.m4.
20002
20003 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
20004
20005         * NEWS: Document increased portability that sys_select now provides.
20006
20007         * lib/sys_select.in.h: Install select wrapper.
20008         * lib/sys_socket.in.h: Use more descriptive name when there is no
20009         select wrapper.
20010         * lib/winsock-select.c: New.
20011         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
20012         Require gl_HEADER_SYS_SOCKET.
20013         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
20014         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
20015         * tests/test-sys_select.c: Add functional tests.
20016
20017 2008-09-24  Eric Blake  <ebb9@byu.net>
20018
20019         open, fopen: close fd leak in last patch
20020         * lib/open.c (rpl_open): Close fd before returning error.
20021         * lib/fopen.c (rpl_fopen): Close fd before returning error.
20022         * doc/posix-functions/open.texi (open): Document that Irix also
20023         has the bug.
20024         * doc/posix-functions/fopen.texi (fopen): Likewise.
20025         Reported by Paolo Bonzini.
20026
20027 2008-09-24  Bruno Haible  <bruno@clisp.org>
20028
20029         Ensure that a filename ending in a slash cannot be used to access a
20030         non-directory.
20031         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
20032         to check whether it's really a directory.
20033         * lib/fopen.c: Include fcntl.h, unistd.h.
20034         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
20035         and fdopen().
20036         * modules/fopen (Depends-on): Add unistd.
20037         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
20038         * tests/test-fopen.c (main): Likewise.
20039         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
20040         * doc/posix-functions/fopen.texi: Likewise.
20041         Reported by Eric Blake.
20042
20043 2008-09-23  Eric Blake  <ebb9@byu.net>
20044
20045         c-stack: avoid compiler optimizations when provoking overflow
20046         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
20047         recursion harder to optimize, to ensure a stack overflow occurs.
20048         * tests/test-c-stack.c (recurse): Likewise.
20049         Borrowed from libsigsegv.
20050
20051         c-stack: work around Irix sigaltstack bug
20052         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
20053         whether sigaltstack uses wrong end of stack_t (copied in part from
20054         libsigsegv).
20055         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
20056         Irix bug, without requiring an over-allocation.
20057         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
20058         bug.
20059
20060         fopen: document mingw bug on directories
20061         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
20062         not allowing a stream visiting a directory, even though reading
20063         from such a stream is not portable.
20064
20065 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
20066
20067         * lib/poll.c: Rewrite.
20068         * modules/poll: Depend on alloca.
20069
20070 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
20071
20072         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
20073         instead define prototypes for a full set of wrappers.  Ensure
20074         that Cygwin does not use the compatibility code, which is only
20075         for MinGW.
20076         * lib/winsock.c: New.
20077         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
20078         * modules/sys_socket: Add lib/winsock.c.
20079
20080         * modules/poll-tests: Add errno and perror.
20081         * tests/test-poll.c: Use ioctl, not ioctlsocket.
20082
20083 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
20084
20085         * tests/test-poll.c: Downgrade minimum needed Winsock version.
20086
20087 2008-09-23  Bruno Haible  <bruno@clisp.org>
20088
20089         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
20090         * doc/glibc-functions/*: Likewise.
20091
20092 2008-09-23  Simon Josefsson  <simon@josefsson.org>
20093
20094         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
20095         success.
20096
20097 2008-09-22  Eric Blake  <ebb9@byu.net>
20098             Bruno Haible  <bruno@clisp.org>
20099
20100         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
20101         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
20102         supply %A but mishandle pseudo-NaN.
20103         Reported by Simon Josefsson.
20104
20105 2008-09-21  Bruno Haible  <bruno@clisp.org>
20106
20107         * tests/test-lock.c (main): Tweak skip message.
20108         * tests/test-tls.c (main): Likewise.
20109
20110 2008-09-21  Bruno Haible  <bruno@clisp.org>
20111
20112         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
20113         whether 'struct sigaction' has sa_sigaction here...
20114         (gl_PREREQ_SIG_HANDLER_H): ... not here.
20115         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
20116
20117 2008-09-21  Bruno Haible  <bruno@clisp.org>
20118
20119         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
20120         section.
20121         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
20122         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
20123         the new section.
20124         (Support for obsolete systems lacking POSIX:2001): New section.
20125         (String handling <string.h>): Move strdup to the new section.
20126         Suggested by Simon Josefsson and Paolo Bonzini.
20127
20128 2008-09-21  Bruno Haible  <bruno@clisp.org>
20129
20130         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
20131         exponents in %e and %g results on 'long double'. Needed for mingw's
20132         improved *printf functions.
20133         * tests/test-vasprintf-posix.c (test_function): Likewise.
20134         * tests/test-snprintf-posix.h (test_function): Likewise.
20135         * tests/test-sprintf-posix.h (test_function): Likewise.
20136         Reported by Eric Blake.
20137
20138 2008-09-21  Bruno Haible  <bruno@clisp.org>
20139
20140         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
20141         * tests/test-sprintf-posix.h (test_function): Likewise.
20142
20143 2008-09-21  Bruno Haible  <bruno@clisp.org>
20144
20145         * modules/getpass (Depends-on): Add strdup-posix.
20146
20147         New module 'strdup-posix'.
20148         * modules/strdup-posix: New file.
20149         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
20150         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
20151         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20152         REPLACE_STRDUP.
20153         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
20154         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
20155         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20156         strdup-posix.
20157
20158         * modules/strdup (Depends-on): Remove malloc-posix.
20159
20160 2008-09-20  Bruno Haible  <bruno@clisp.org>
20161
20162         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
20163         Wildenhues.
20164
20165 2008-09-20  Bruno Haible  <bruno@clisp.org>
20166
20167         Ensure that wint_t gets defined on IRIX 5.3.
20168         * lib/wchar.in.h (wint_t): Define if not defined by the system.
20169         * lib/wctype.in.h (wint_t): Likewise.
20170         (__wctype_wint_t): Remove type.
20171         (isw*): Use wint_t instead of __wctype_wint_t.
20172         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
20173         * modules/wchar (Files): Add m4/wint_t.m4.
20174         (Makefile.am): Substitute HAVE_WINT_T.
20175         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
20176         * tests/test-wctype.c: Check that wint_t is defined.
20177         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
20178         * doc/posix-headers/wctype.texi: Likewise.
20179         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20180
20181 2008-09-18  Bruno Haible  <bruno@clisp.org>
20182
20183         * gnulib-tool (func_exit): Update comment.
20184
20185 2008-09-18  Simon Josefsson  <simon@josefsson.org>
20186
20187         * modules/getaddrinfo (Depends-on): Remove strdup, this module
20188         assumes strdup exists and does not depend on strdup to return
20189         ENOMEM on out of memory conditions.
20190
20191 2008-09-18  Bruno Haible  <bruno@clisp.org>
20192
20193         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
20194         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
20195         digits for the exponent.
20196
20197 2008-09-18  Jim Meyering  <meyering@redhat.com>
20198             Bruno Haible  <bruno@clisp.org>
20199
20200         * lib/vasnprintf.c (decimal_point_char): Define also if
20201         NEED_PRINTF_INFINITE_LONG_DOUBLE.
20202
20203 2008-09-16  Bruno Haible  <bruno@clisp.org>
20204         and Eric Blake  <ebb9@byu.net>
20205
20206         vasnprintf: support Irix 5.3
20207         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
20208         that mishandle long double infinity.
20209         Reported by Tom G. Christensen.
20210
20211 2008-09-16  Bruno Haible  <bruno@clisp.org>
20212
20213         * doc/glibc-functions/scandir.texi: Mention the function is missing on
20214         Solaris 9.
20215         * doc/glibc-functions/alphasort.texi: Likewise.
20216         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
20217
20218 2008-09-16  Jim Meyering  <meyering@redhat.com>
20219
20220         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
20221         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
20222         a umask modification leak out of a subshell.  Otherwise, the
20223         opensolaris /bin/sh would be accepted and thus cause unwarranted
20224         failures in the coreutils test suite.
20225
20226 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
20227
20228         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
20229         to succeed.
20230
20231 2008-09-16  Jim Meyering  <meyering@redhat.com>
20232
20233         avoid spurious test failure when library is built without ACL support
20234         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
20235         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
20236         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
20237         * tests/test-copy-acl.sh: Likewise.
20238
20239 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20240
20241         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
20242         based on character occurrence counts.
20243
20244 2008-09-15  Eric Blake  <ebb9@byu.net>
20245
20246         tests: avoid some compiler warnings
20247         * tests/test-memchr.c (main): Pass NULL indirectly.
20248         * tests/test-closein.c (main): Avoid unused variable.
20249
20250 2008-09-15  Bruno Haible  <bruno@clisp.org>
20251
20252         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
20253         are missing on OpenBSD 4.0 individually.
20254         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20255
20256 2008-09-15  Bruno Haible  <bruno@clisp.org>
20257
20258         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
20259         * doc/posix-functions/strerror.texi: Mention also Cygwin.
20260         * doc/posix-functions/perror.texi: Likewise.
20261         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
20262         is missing.
20263         Reported by Eric Blake.
20264
20265         * lib/errno.in.h: Use replacement values >= 2000.
20266         Reported by Eric Blake.
20267
20268 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20269
20270         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
20271         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
20272         limit.
20273         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
20274         compareseq was aborted.
20275
20276 2008-09-14  Bruno Haible  <bruno@clisp.org>
20277
20278         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
20279         yvec_edit_count.
20280         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
20281         (fstrcmp_bounded): Simplify result computation accordingly.
20282
20283 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20284
20285         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
20286         (fstrcmp): Define in terms of fstrcmp_bounded.
20287         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
20288         lower_bound argument.
20289         Return quickly if the result is certainly < lower_bound.
20290         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
20291
20292 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20293
20294         * lib/diffseq.h (EARLY_ABORT): New macro.
20295         (compareseq): Change return type to bool. Return true when EARLY_ABORT
20296         evaluates to true.
20297
20298 2008-09-14  Bruno Haible  <bruno@clisp.org>
20299
20300         * modules/perror-tests: New file.
20301         * tests/test-perror.sh: New file.
20302         * tests/test-perror.c: New file.
20303
20304         New module 'perror'.
20305         * lib/stdio.in.h (perror): New declaration.
20306         * lib/perror.c: New file.
20307         * m4/perror.m4: New file.
20308         * modules/perror: New file.
20309         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
20310         * doc/posix-functions/perror.texi: Mention the perror module.
20311         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
20312         REPLACE_PERROR.
20313         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
20314         REPLACE_PERROR.
20315
20316 2008-09-14  Bruno Haible  <bruno@clisp.org>
20317
20318         * modules/stdio (Makefile.am): Reorder to match the order in
20319         lib/stdio.in.h.
20320         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20321
20322 2008-09-13  Bruno Haible  <bruno@clisp.org>
20323
20324         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
20325
20326 2008-09-13  Bruno Haible  <bruno@clisp.org>
20327
20328         Extend strerror to cover the added errno values.
20329         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
20330         (rpl_strerror): Provide error messages for the added errno values and
20331         for the WSA* values.
20332         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
20333         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
20334         strerror.
20335         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
20336         * modules/strerror (Depends-on): Add errno.
20337         * doc/posix-functions/strerror.texi: Document the change.
20338         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
20339         and EOVERFLOW.
20340
20341 2008-09-13  Bruno Haible  <bruno@clisp.org>
20342
20343         * modules/EOVERFLOW: Remove file.
20344         * m4/eoverflow.m4: Remove file.
20345         * modules/EOVERFLOW-tests: Remove file.
20346         * tests/test-EOVERFLOW.c: Remove file.
20347         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
20348         * modules/ftell (Depends-on): Likewise.
20349         * modules/getdelim (Depends-on): Likewise.
20350         * modules/getugroups (Depends-on): Likewise.
20351         * modules/poll (Depends-on): Likewise.
20352         * modules/snprintf (Depends-on): Likewise.
20353         * modules/sprintf-posix (Depends-on): Likewise.
20354         * modules/vasnprintf (Depends-on): Likewise.
20355         * modules/vasprintf (Depends-on): Likewise.
20356         * modules/vfprintf-posix (Depends-on): Likewise.
20357         * modules/vsnprintf (Depends-on): Likewise.
20358         * modules/vsprintf-posix (Depends-on): Likewise.
20359         * modules/xvasprintf (Depends-on): Likewise.
20360         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20361         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
20362         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
20363         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
20364         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20365         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
20366         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
20367         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
20368         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20369         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
20370         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
20371         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
20372         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20373         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
20374         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
20375         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
20376         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20377         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
20378         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
20379         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
20380         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20381         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
20382         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
20383         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
20384         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
20385         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20386         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
20387         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
20388         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
20389         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
20390         * MODULES.html.sh: Remove EOVERFLOW.
20391         * NEWS: Mention the change.
20392
20393 2008-09-13  Bruno Haible  <bruno@clisp.org>
20394
20395         * modules/errno-tests: New file.
20396         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
20397
20398         * lib/errno.in.h: New file.
20399         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
20400         * modules/errno: New file.
20401         * doc/posix-headers/errno.texi: Update documentation.
20402         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
20403
20404 2008-09-13  Bruno Haible  <bruno@clisp.org>
20405
20406         * tests/test-poll.c: Use #if for native Windows, rather than testing
20407         __MSVCRT__.
20408
20409 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20410             Bruno Haible  <bruno@clisp.org>
20411
20412         * lib/glob.c: Don't include <pwd.h> on native Windows.
20413         (WINDOWS32): New macro.
20414         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
20415
20416 2008-09-13  Bruno Haible  <bruno@clisp.org>
20417
20418         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
20419         (ETIMEDOUT): Remove macro.
20420         (glthread_cond_timedwait_multithreaded): New declaration.
20421         (glthread_cond_timedwait): Use it.
20422         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
20423         (glthread_cond_timedwait_multithreaded): New function.
20424
20425 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
20426
20427         * modules/poll-tests: Do not check for io.h.
20428         * tests/test-poll.c: Check for __MSVCRT__ instead.
20429
20430 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
20431
20432         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
20433         * modules/poll-tests: Add inet_pton, stdbool, sockets.
20434         * tests/test-poll.c: Use them.  Use _pipe on Windows.
20435
20436 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
20437
20438         * modules/poll-tests: New.
20439         * tests/test-poll.c: New.
20440
20441 2008-09-12  Eric Blake  <ebb9@byu.net>
20442
20443         frexp: test for NetBSD failure on -0.0
20444         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
20445         not all, bugs from NetBSD 3.0 have been fixed.
20446         * doc/posix-functions/frexp.texi (frexp): Document bug.
20447         Reported by Thomas Klausner.
20448
20449         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
20450         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
20451         literal -0.0.
20452         Reported by Jonathan C. Patschke <jp@centtech.com>.
20453
20454 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20455
20456         * lib/glthread/cond.h: Use dummy implementation also if
20457         USE_WIN32_THREADS.
20458
20459 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20460
20461         * modules/fnmatch-posix (License): Change to LGPLv2+.
20462         * modules/fnmatch-gnu (License): Likewise.
20463
20464 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20465
20466         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
20467
20468 2008-09-11  Jim Meyering  <meyering@redhat.com>
20469
20470         * users.txt: Add gtk-vnc.
20471
20472 2008-09-08  Simon Josefsson  <simon@josefsson.org>
20473
20474         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
20475         rotate amounts.
20476
20477         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
20478         required for 16-bit and 8-bit rotates.
20479         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
20480         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
20481         UINT8_MAX instead of hard-coded constants.
20482         Suggested by Paul Eggert.
20483
20484 2008-09-07  Bruno Haible  <bruno@clisp.org>
20485
20486         * tests/test-striconveh.c (main): Check behaviour when converting from
20487         UTF-7.
20488
20489         Make striconveh work better with stateful encodings.
20490         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
20491         that iconv does not increment the inptr when returning -1/EINVAL.
20492
20493 2008-09-07  Bruno Haible  <bruno@clisp.org>
20494
20495         * build-aux/config.rpath: Update according to libtool-2.2.6.
20496         * build-aux/config.libpath: Likewise.
20497
20498 2008-09-06  Bruno Haible  <bruno@clisp.org>
20499
20500         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
20501         * lib/freadptr.c (freadptr): Likewise.
20502         * lib/freadseek.c (freadptrinc): Likewise.
20503         Reported by Simon Josefsson.
20504
20505 2008-09-06  Bruno Haible  <bruno@clisp.org>
20506
20507         * modules/freadptr (License): Change to LGPLv2+.
20508         * modules/freadseek (License): Likewise.
20509         Suggested by Eric Blake.
20510
20511         * modules/memchr2 (License): Change to LGPLv2+.
20512         Approved by Eric Blake.
20513
20514 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20515             Bruno Haible  <bruno@clisp.org>
20516
20517         Make gnulib-tool work with native 'sed' on AIX.
20518         * gnulib-tool (sed_noop): New variable.
20519         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
20520         func_add_or_update, func_create_testdir): Use it to initialize sed
20521         script variables.
20522         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20523
20524 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
20525             Bruno Haible  <bruno@clisp.org>
20526
20527         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
20528         also works after #include directives.
20529
20530 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
20531
20532         getdate.y: reject an out-of-range timezone value
20533         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
20534         the range [-24...+24].  When specified with only one or two digits,
20535         * tests/test-getdate.c: Tests for the fix.
20536         * doc/getdate.texi: Document this change.
20537
20538 2008-09-03  Bruno Haible  <bruno@clisp.org>
20539
20540         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
20541
20542 2008-09-02  Simon Josefsson  <simon@josefsson.org>
20543
20544         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
20545         <bruce.korb@gmail.com> with ideas from Ben Pfaff
20546         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
20547         Blake <ebb9@byu.net>.
20548
20549         * tests/test-bitrotate.c: Add more test vectors.
20550
20551 2008-09-02  Eric Blake  <ebb9@byu.net>
20552
20553         vasnprintf-posix: handle large precision via %.*d
20554         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
20555         when handling it ourselves.
20556         * tests/test-vasnprintf-posix.c (test_function): Add test.
20557         * tests/test-snprintf-posix.h (test_function): Likewise.
20558         * tests/test-sprintf-posix.h (test_function): Likewise.
20559         * tests/test-vasprintf-posix.c (test_function): Likewise.
20560         Reported by Alain Guibert.
20561
20562 2008-09-01  Eric Blake  <ebb9@byu.net>
20563
20564         c-stack: make configure-time check more robust
20565         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
20566         successful sigaction call.
20567         Reported by Tom G. Christensen.
20568
20569 2008-09-01  Bruno Haible  <bruno@clisp.org>
20570
20571         New module 'findprog-lgpl'.
20572         * modules/findprog-lgpl: New file.
20573         * lib/findprog-lgpl.c: New file.
20574         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
20575         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
20576         to decide whether to use strdup or xstrdup, concatenated_filename or
20577         xconcatenated_filename.
20578
20579 2008-09-01  Bruno Haible  <bruno@clisp.org>
20580
20581         Split module 'concat-filename' into 'concat-filename' (LGPL) and
20582         'xconcat-filename' (GPL).
20583         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
20584         (License): Change to LGPLv2+.
20585         * modules/xconcat-filename: New file.
20586         * lib/concat-filename.h (concatenated_filename): Change specification.
20587         (xconcatenated_filename): New declaration.
20588         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
20589         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
20590         memory situations.
20591         * lib/xconcat-filename.c: New file.
20592         * NEWS: Mention the change.
20593         * lib/findprog.c: Include concat-filename.h, not filename.h.
20594         (find_in_path): Use xconcatenated_filename instead of
20595         concatenated_filename.
20596         * lib/javacomp.c: Include concat-filename.h, not filename.h.
20597         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
20598         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
20599         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
20600         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
20601         instead of concatenated_filename.
20602         * lib/javaexec.c: Include concat-filename.h, not filename.h.
20603         (execute_java_class): Use xconcatenated_filename instead of
20604         concatenated_filename.
20605         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
20606         * modules/javacomp (Depends-on): Likewise.
20607         * modules/javaexec (Depends-on): Likewise.
20608
20609 2008-09-01  Bruno Haible  <bruno@clisp.org>
20610
20611         Split module 'filename' into 'filename' and 'concat-filename'.
20612         * modules/filename: Keep only lib/filename.h.
20613         (License): Change to LGPLv2+.
20614         * modules/concat-filename: New file, extracted from modules/filename.
20615         * lib/filename.h (concatenated_filename): Remove declaration.
20616         * lib/concat-filename.h: New file, extracted from lib/filename.h.
20617         * lib/concat-filename.c: Include concat-filename.h.
20618         * NEWS: Mention the change.
20619
20620 2008-09-01  Simon Josefsson  <simon@josefsson.org>
20621
20622         * lib/bitrotate.h (rotl8, rotr8): Add.
20623
20624         * modules/bitrotate (configure.ac): Need
20625         AC_REQUIRE([AC_C_INLINE]).
20626         (Description): Mention stdint.h.  Reported by Bruno Haible
20627         <bruno@clisp.org>.
20628
20629         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
20630         Paolo Bonzini <bonzini@gnu.org>.
20631
20632 2008-08-31  Bruno Haible  <bruno@clisp.org>
20633
20634         Assume Solaris specific bi-arch conventions on Solaris systems.
20635         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
20636         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
20637         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
20638         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
20639         like acl_libdirstem.
20640         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
20641         acl_libdirstem.
20642         * NEWS: Mention the change.
20643         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
20644
20645 2008-08-31  Jim Meyering  <meyering@redhat.com>
20646
20647         * lib/strftime.h: Add comments describing the two added arguments.
20648
20649         remove duplicate #include directives
20650         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
20651         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
20652
20653 2008-08-31  Bruno Haible  <bruno@clisp.org>
20654
20655         New module 'sigpipe-die'.
20656         * modules/sigpipe-die: New file.
20657         * lib/sigpipe-die.h: New file.
20658         * lib/sigpipe-die.c: New file.
20659         * MODULES.html.sh (Signal handling): Add sigpipe-die.
20660
20661 2008-08-31  Bruno Haible  <bruno@clisp.org>
20662
20663         Don't override previously installed signal handlers.
20664         * lib/fatal-signal.c (saved_sigactions): New variable.
20665         (uninstall_handlers): Reset the signal to the saved handler, not
20666         to SIG_DFL (except when ignored).
20667         (install_handlers): Save the previous handlers.
20668
20669 2008-08-30  Bruno Haible  <bruno@clisp.org>
20670
20671         * gnulib-tool (func_reset_sigpipe): New function.
20672         (func_get_automake_snippet, func_modules_transitive_closure,
20673         func_import): Invoke it before a join command that reads from stdin,
20674         to avoid "echo: write error: Broken pipe" error messages on stderr.
20675         Reported by Sam Steingold <sds@gnu.org>.
20676
20677 2008-08-30  Bruno Haible  <bruno@clisp.org>
20678
20679         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
20680         Code copied from m4/open.m4.
20681         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
20682         access and the filename ends in a slash. Code copied from lib/open.c.
20683         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
20684         * tests/test-fopen.c (main): Check against bug with trailing slash.
20685
20686 2008-08-29  Bruno Haible  <bruno@clisp.org>
20687
20688         Avoid some "gcc -pedantic" warnings.
20689         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
20690         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
20691         * lib/dirent.in.h: Likewise.
20692         * lib/fcntl.in.h: Likewise.
20693         * lib/float.in.h: Likewise.
20694         * lib/iconv.in.h: Likewise.
20695         * lib/inttypes.in.h: Likewise.
20696         * lib/locale.in.h: Likewise.
20697         * lib/math.in.h: Likewise.
20698         * lib/netinet_in.in.h: Likewise.
20699         * lib/search.in.h: Likewise.
20700         * lib/signal.in.h: Likewise.
20701         * lib/stdarg.in.h: Likewise.
20702         * lib/stdint.in.h: Likewise.
20703         * lib/stdio.in.h: Likewise.
20704         * lib/stdlib.in.h: Likewise.
20705         * lib/string.in.h: Likewise.
20706         * lib/strings.in.h: Likewise.
20707         * lib/sys_select.in.h: Likewise.
20708         * lib/sys_socket.in.h: Likewise.
20709         * lib/sys_stat.in.h: Likewise.
20710         * lib/sys_time.in.h: Likewise.
20711         * lib/sysexits.in.h: Likewise.
20712         * lib/time.in.h: Likewise.
20713         * lib/unistd.in.h: Likewise.
20714         * lib/wchar.in.h: Likewise.
20715         * lib/wctype.in.h: Likewise.
20716         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
20717         * modules/fchdir (Makefile.am): Likewise.
20718         * modules/fcntl (Makefile.am): Likewise.
20719         * modules/float (Makefile.am): Likewise.
20720         * modules/iconv_open (Makefile.am): Likewise.
20721         * modules/inttypes (Makefile.am): Likewise.
20722         * modules/locale (Makefile.am): Likewise.
20723         * modules/math (Makefile.am): Likewise.
20724         * modules/netinet_in (Makefile.am): Likewise.
20725         * modules/search (Makefile.am): Likewise.
20726         * modules/signal (Makefile.am): Likewise.
20727         * modules/stdarg (Makefile.am): Likewise.
20728         * modules/stdint (Makefile.am): Likewise.
20729         * modules/stdio (Makefile.am): Likewise.
20730         * modules/stdlib (Makefile.am): Likewise.
20731         * modules/string (Makefile.am): Likewise.
20732         * modules/strings (Makefile.am): Likewise.
20733         * modules/sys_select (Makefile.am): Likewise.
20734         * modules/sys_socket (Makefile.am): Likewise.
20735         * modules/sys_stat (Makefile.am): Likewise.
20736         * modules/sys_time (Makefile.am): Likewise.
20737         * modules/sysexits (Makefile.am): Likewise.
20738         * modules/time (Makefile.am): Likewise.
20739         * modules/unistd (Makefile.am): Likewise.
20740         * modules/wchar (Makefile.am): Likewise.
20741         * modules/wctype (Makefile.am): Likewise.
20742         Reported by Reuben Thomas <rrt@sc3d.org>.
20743
20744 2008-08-29  Bruno Haible  <bruno@clisp.org>
20745
20746         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
20747         any more.
20748
20749 2008-08-29  Simon Josefsson  <simon@josefsson.org>
20750
20751         * MODULES.html.sh (Misc): Add bitrotate.
20752
20753         * modules/bitrotate: New file.
20754
20755         * lib/bitrotate.h: New file.
20756
20757         * modules/bitrotate-tests: New file.
20758
20759         * tests/test-bitrotate.c: New file.
20760
20761         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
20762         on the bitrotate module.
20763
20764         * lib/arctwo.c: Use new bitrotate module.
20765
20766 2008-08-29  Jim Meyering  <meyering@redhat.com>
20767
20768         bootstrap: merge changes from coreutils
20769         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
20770         of copied files.  Remove a kludge, now that this is fixed.
20771         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
20772         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
20773         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
20774
20775 2008-08-29  Bruno Haible  <bruno@clisp.org>
20776
20777         * MODULES.html.sh: Remove --cvs-urls option.
20778
20779 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
20780
20781         maint.mk: adjust to file name change
20782         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
20783
20784 2008-08-28  Jim Meyering  <meyering@redhat.com>
20785
20786         * modules/getndelim2 (License): Relicense to LGPLv2+.
20787         Approved by Richard Stallman for the version of 1995, and by
20788         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
20789
20790 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
20791
20792         * lib/getdelim.c (flockfile, funlockfile): Make all of them
20793         dummy if one is not available.  Do not touch them if
20794         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
20795         (getc_maybe_unlocked): New.
20796         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
20797
20798 2008-08-26  Eric Blake  <ebb9@byu.net>
20799
20800         doc/INSTALL: resync from autoconf
20801         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
20802         (INSTALL_PRELUDE): Delete; this is done more efficiently by
20803         moving...
20804         * install.texi [!autoconf]: ...here.  Resync from autoconf.
20805         * INSTALL: Regenerate.
20806         * INSTALL.ISO: New file.
20807         * INSTALL.UTF-8: Likewise.
20808
20809 2008-08-26  Jim Meyering  <meyering@redhat.com>
20810
20811         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
20812         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
20813         these definitions conditional, so that they may be overridden, too.
20814
20815 2008-08-26  Bruno Haible  <bruno@clisp.org>
20816
20817         Generate INSTALL file variants with prettier quotes.
20818         * doc/Makefile (INSTALL_PRELUDE): New macro.
20819         (INSTALL): Use it.
20820         (INSTALL.ISO, INSTALL.UTF-8): New rules.
20821
20822 2008-08-26  Bruno Haible  <bruno@clisp.org>
20823
20824         Run makeinfo in an English locale.
20825         * doc/Makefile (MAKEINFO): New variable.
20826
20827 2008-08-26  Bruno Haible  <bruno@clisp.org>
20828
20829         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
20830         Suggested by Eric Blake.
20831
20832 2008-08-25  Bruno Haible  <bruno@clisp.org>
20833
20834         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
20835
20836 2008-08-25  Eric Blake  <ebb9@byu.net>
20837
20838         c-stack: test that stack overflow can be caught
20839         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
20840         that platform allows handling stack overflow; at least OS/2 EMX
20841         has sigaltstack, but crashes before transferring control to
20842         handler on stack overflow.
20843         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
20844         check for HAVE_STACK_OVERFLOW_HANDLING.
20845         Reported by Elbert Pol.
20846
20847 2008-08-25  Bruno Haible  <bruno@clisp.org>
20848
20849         * doc/posix-functions/strftime.texi: Fix description of strftime
20850         module.
20851
20852 2008-08-24  Bruno Haible  <bruno@clisp.org>
20853
20854         * tests/uniwidth/test-uc_width2.c: New file.
20855         * tests/uniwidth/test-uc_width2.sh: New file.
20856         * modules/uniwidth/width-tests (Files): Add the new files.
20857         (TESTS): Add uniwidth/test-uc_width2.sh.
20858         (TESTS_ENVIRONMENT): New variable.
20859         (check_PROGRAMS): Add test-uc_width2.
20860         (test_uc_width2_SOURCES): New variable.
20861
20862         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
20863         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
20864         not 0x00AB.
20865         Reported by Alexander V. Lukyanov <lav@netis.ru>.
20866
20867 2008-08-22  Eric Blake  <ebb9@byu.net>
20868
20869         test-lock, test-tls: mention why a test is skipped
20870         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
20871         skipped.
20872         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
20873
20874         count-one-bits: relax license
20875         * modules/count-one-bits (License): Relicense to LGPLv2+.
20876         Suggested by Ludovic Courtès, approved by Ben Pfaff.
20877
20878 2008-08-22  Andreas Schwab  <schwab@suse.de>
20879
20880         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
20881         Remove spurious space in assignment.
20882
20883 2008-08-21  Simon Josefsson  <simon@josefsson.org>
20884
20885         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
20886         Paul Eggert <eggert@CS.UCLA.EDU>.
20887
20888 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
20889
20890         * modules/gettext: Add m4/threadlib.m4.
20891
20892 2008-08-19  Eric Blake  <ebb9@byu.net>
20893
20894         test-c-stack: fix compilation failure on FreeBSD 5.0
20895         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
20896         headers before <sys/resource.h>.
20897         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
20898         the bug.
20899         Reported by Nelson H. F. Beebe.
20900
20901         strverscmp: migrate from "strverscmp.h" to <string.h>
20902         * modules/string (Makefile.am): Add new hooks.
20903         * modules/strverscmp (Files): Remove strverscmp.h.
20904         (Depends-on): Add string.
20905         (configure.ac): Add indicator.
20906         (Include): Mention new header.
20907         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
20908         defaults.
20909         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
20910         results.
20911         * lib/strverscmp.h: Delete.
20912         * lib/string.in.h (strverscmp): Provide declaration, when needed.
20913         * tests/test-strverscmp.c (includes): Adjust client.
20914         * lib/check-version.c (includes): Likewise.
20915         * NEWS: Document the change.
20916
20917         strverscmp: add unit test
20918         * modules/strverscmp-tests: New file.
20919         * tests/test-strverscmp.c: Likewise.
20920
20921 2008-08-19  Simon Josefsson  <simon@josefsson.org>
20922
20923         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
20924         regarding Windows crypto stuff, from Mono.
20925
20926 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
20927
20928         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
20929         if present, for intel RND.  Return error on failures.
20930
20931 2008-08-18  Ben Pfaff  <blp@gnu.org>
20932
20933         gitlog-to-changelog: give better diagnostic for failed pipe-open
20934         * build-aux/gitlog-to-changelog: Improve error message: suggest
20935         that the version of Git may be too old.
20936
20937 2008-08-18  Simon Josefsson  <simon@josefsson.org>
20938
20939         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
20940         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
20941
20942 2008-08-18  Bruno Haible  <bruno@clisp.org>
20943
20944         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
20945         pthread_in_use().
20946
20947 2008-08-18  Bruno Haible  <bruno@clisp.org>
20948
20949         * lib/glthread/threadlib.c: Include <pthread.h>.
20950
20951 2008-08-18  Bruno Haible  <bruno@clisp.org>
20952
20953         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
20954         glthread_recursive_lock_* macros.
20955         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
20956         Fix syntax error.
20957
20958 2008-08-18  Bruno Haible  <bruno@clisp.org>
20959
20960         * lib/glthread/thread.c: Avoid forcing a context switch right after
20961         thread creation.
20962
20963 2008-08-17  Bruno Haible  <bruno@clisp.org>
20964
20965         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
20966         * lib/glthread/thread.h: Provide Win32 specific implementation.
20967         * modules/thread (Files): Add lib/glthread/thread.c.
20968         (Depends-on): Add lock.
20969         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
20970
20971 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20972
20973         New module 'yield'.
20974         * modules/yield: New file.
20975         * lib/glthread/yield.h: New file.
20976         * m4/yield.m4: New file.
20977         * MODULES.html.sh (Multithreading): Add yield.
20978
20979 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20980
20981         New module 'thread'.
20982         * modules/thread: New file.
20983         * lib/glthread/thread.h: New file.
20984         * m4/thread.m4: New file.
20985         * MODULES.html.sh (Multithreading): Add thread.
20986
20987 2008-08-17  Bruno Haible  <bruno@clisp.org>
20988
20989         * lib/glthread/lock.h: Include <stdlib.h> always.
20990         * lib/glthread/tls.h: Likewise.
20991         * lib/glthread/cond.h: Likewise.
20992
20993 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20994
20995         New module 'cond'.
20996         * modules/cond: New file.
20997         * lib/glthread/cond.h: New file.
20998         * lib/glthread/cond.c: New file.
20999         * m4/cond.m4: New file.
21000         * MODULES.html.sh (Multithreading): Add cond.
21001
21002 2008-08-16  Eric Blake  <ebb9@byu.net>
21003
21004         c-stack: fix regression on Irix 5.3 from 2008-06-21
21005         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
21006         sa_sigaction...
21007         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
21008         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
21009         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
21010         * modules/signal (Makefile.am): Use the value.
21011         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
21012         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
21013         * doc/posix-headers/signal.texi (signal.h): Document this
21014         portability issue.
21015         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
21016         Reported by Tom G. Christensen.
21017
21018 2008-08-17  Bruno Haible  <bruno@clisp.org>
21019
21020         New module 'threadlib'.
21021         * modules/threadlib: New file.
21022         * lib/glthread/threadlib.c: New file, extracted from
21023         lib/glthread/lock.c.
21024         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
21025         functions.
21026         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
21027         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
21028         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
21029         macros.
21030         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
21031         (gl_DISABLE_THREADS): Remove macro.
21032         * modules/lock (Files): Remove build-aux/config.rpath.
21033         (Depends-on): Remove havelib. Add threadlib.
21034         (configure.ac-early): Remove section.
21035         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
21036         * modules/tls (Depends-on): Remove lock. Add threadlib.
21037         (Link): New section, copied from threadlib.
21038         * MODULES.html.sh (Multithreading): Add threadlib.
21039
21040 2008-08-14  Bruno Haible  <bruno@clisp.org>
21041
21042         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
21043         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
21044         glthread_rwlock_unlock, glthread_rwlock_destroy,
21045         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
21046         glthread_recursive_lock_destroy): Define as macros always.
21047         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
21048         glthread_lock_lock.
21049         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
21050         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
21051         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
21052         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
21053         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
21054         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
21055         (glthread_recursive_lock_lock_func): Renamed from
21056         glthread_recursive_lock_lock.
21057         (glthread_recursive_lock_unlock_func): Renamed from
21058         glthread_recursive_lock_unlock.
21059         (glthread_recursive_lock_destroy_func): Renamed from
21060         glthread_recursive_lock_destroy.
21061
21062 2008-08-14  Bruno Haible  <bruno@clisp.org>
21063
21064         * lib/glthread/lock.h: Renamed from lib/lock.h.
21065         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
21066         * lib/glthread/tls.h: Renamed from lib/tls.h.
21067         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
21068         * lib/fstrcmp.c: Update includes.
21069         * lib/strsignal.c: Update includes.
21070         * modules/lock (Files, Makefile.am): Update.
21071         (Include): Change to "glthread/lock.h".
21072         * modules/tls (Files, Makefile.am): Update.
21073         (Include): Change to "glthread/tls.h".
21074         * tests/test-lock.c: Update includes.
21075         * tests/test-tls.c: Update includes.
21076         * NEWS: Mention the renamed header files.
21077
21078 2008-08-11  Jim Meyering  <meyering@redhat.com>
21079
21080         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
21081
21082 2008-08-11  Eric Blake  <ebb9@byu.net>
21083
21084         test-c-stack: avoid C99-ism
21085         * tests/test-c-stack.c (main): Fix whitespace, move declaration
21086         before statement.
21087         Reported by Alain Guibert.
21088
21089 2008-08-10  Jim Meyering  <meyering@redhat.com>
21090
21091         ensure that return value of uinttostr et al are not ignored
21092         * lib/inttostr.h (__GNUC_PREREQ): Define.
21093         (__attribute_warn_unused_result__): Define.
21094         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
21095
21096 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
21097
21098         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
21099         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
21100
21101 2008-08-07  Jim Meyering  <meyering@redhat.com>
21102
21103         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
21104
21105         * modules/mkstemp (License): Relicense under LGPLv2+.
21106         * modules/tempname (License): Likewise.
21107
21108 2008-08-06  Bruno Haible  <bruno@clisp.org>
21109
21110         * lib/poll.c (poll): Further micro-optimization.
21111
21112 2008-08-06  Jim Meyering  <meyering@redhat.com>
21113
21114         inet_pton.c: use locale-independent tolower
21115         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
21116         (inet_pton6): Use c_tolower rather than tolower.
21117         * modules/inet_pton (Depends-on): Add c-ctype.
21118
21119 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
21120
21121         * lib/poll.c (poll): Avoid division when timeout is 0, cache
21122         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
21123
21124 2008-08-06  Jim Meyering  <meyering@redhat.com>
21125
21126         * modules/inet_pton (License): Relicense under LGPLv2+.
21127
21128 2008-08-03  Bruno Haible  <bruno@clisp.org>
21129
21130         Additional non-aborting API for lock and tls.
21131         * lib/lock.h: Include <errno.h>.
21132         (glthread_lock_init): New macro/function.
21133         (gl_lock_init): Define as wrapper around glthread_lock_init.
21134         (glthread_lock_lock): New macro/function.
21135         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
21136         (glthread_lock_unlock): New macro/function.
21137         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
21138         (glthread_lock_destroy): New macro/function.
21139         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
21140         (glthread_rwlock_init): New macro/function.
21141         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
21142         (glthread_rwlock_rdlock): New macro/function.
21143         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
21144         (glthread_rwlock_wrlock): New macro/function.
21145         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
21146         (glthread_rwlock_unlock): New macro/function.
21147         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
21148         (glthread_rwlock_destroy): New macro/function.
21149         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
21150         (glthread_recursive_lock_init): New macro/function.
21151         (gl_recursive_lock_init): Define as wrapper around
21152         glthread_recursive_lock_init.
21153         (glthread_recursive_lock_lock): New macro/function.
21154         (gl_recursive_lock_lock): Define as wrapper around
21155         glthread_recursive_lock_lock.
21156         (glthread_recursive_lock_unlock): New macro/function.
21157         (gl_recursive_lock_unlock): Define as wrapper around
21158         glthread_recursive_lock_unlock.
21159         (glthread_recursive_lock_destroy): New macro/function.
21160         (gl_recursive_lock_destroy): Define as wrapper around
21161         glthread_recursive_lock_destroy.
21162         (glthread_once): New macro/function.
21163         (gl_once): Define as wrapper around glthread_once.
21164         Update function declarations.
21165         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
21166         glthread_rwlock_init. Return error code.
21167         (glthread_rwlock_rdlock_multithreaded): Renamed from
21168         glthread_rwlock_rdlock. Return error code.
21169         (glthread_rwlock_wrlock_multithreaded): Renamed from
21170         glthread_rwlock_wrlock. Return error code.
21171         (glthread_rwlock_unlock_multithreaded): Renamed from
21172         glthread_rwlock_unlock. Return error code.
21173         (glthread_rwlock_destroy_multithreaded): Renamed from
21174         glthread_rwlock_destroy. Return error code.
21175         (glthread_recursive_lock_init_multithreaded): Renamed from
21176         glthread_recursive_lock_init. Return error code.
21177         (glthread_recursive_lock_lock_multithreaded): Renamed from
21178         glthread_recursive_lock_lock. Return error code.
21179         (glthread_recursive_lock_unlock_multithreaded): Renamed from
21180         glthread_recursive_lock_unlock. Return error code.
21181         (glthread_recursive_lock_destroy_multithreaded): Renamed from
21182         glthread_recursive_lock_destroy. Return error code.
21183         (glthread_once_call): Make static.
21184         (glthread_once_multithreaded): Renamed from glthread_once.
21185         * lib/tls.h: Include <errno.h>.
21186         (glthread_tls_key_init): New macro/function.
21187         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
21188         (glthread_tls_set): New macro/function.
21189         (gl_tls_set): Define as wrapper around glthread_tls_set.
21190         (glthread_tls_key_destroy): New macro/function.
21191         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
21192         Update function declarations.
21193         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
21194         glthread_tls_get.
21195         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21196
21197 2008-08-04  Eric Blake  <ebb9@byu.net>
21198
21199         gnumakefile: use space, not TAB, outside of targets
21200         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
21201
21202 2008-08-02  Jim Meyering  <meyering@redhat.com>
21203
21204         getdate.y: avoid locale-dependent date parsing failure
21205         In Turkish locales, getdate would fail to recognize keywords
21206         containing a lowercase "i".  The solution is not to rely on
21207         locale-sensitive case-conversion.
21208         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
21209         (lookup_word): Use c_toupper in place of toupper.
21210         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
21211         Reported by Vefa Bicakci <bicave@superonline.com> in
21212         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
21213         * modules/getdate (Depends-on): Add c-ctype.
21214
21215 2008-08-02  Bruno Haible  <bruno@clisp.org>
21216
21217         * gnulib-tool (func_import): When updating or creating a .gitignore
21218         file, prepend each added line with a slash, and ignore leading slashes
21219         from the existing lines.
21220         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
21221
21222 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21223
21224         Portability fix for GNU make 3.79.1.
21225         * top/GNUmakefile: Avoid 'else COND', which older GNU make
21226         versions do not understand.
21227
21228 2008-08-01  Bruno Haible  <bruno@clisp.org>
21229
21230         Work around bug of HP-UX 10.20 cc with -0.0 literal.
21231         * tests/test-isnanf.h (zero): New variable.
21232         (main): Avoid literal -0.0f.
21233         * tests/test-isnand.h (zero): New variable.
21234         (main): Avoid literal -0.0.
21235         * tests/test-isnanl.h (zero): New variable.
21236         (main): Avoid literal -0.0L.
21237         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
21238         (test_float, test_double, test_long_double): Avoid literals -0.0f,
21239         -0.0, -0.0L.
21240         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
21241         (test_signbitd): Avoid literal -0.0.
21242         (test_signbitl): Avoid literal -0.0L.
21243         * tests/test-ceilf1.c (zero): New variable.
21244         (main): Avoid literal -0.0f.
21245         * tests/test-ceill.c (zero): New variable.
21246         (main): Avoid literal -0.0L.
21247         * tests/test-floorf1.c (zero): New variable.
21248         (main): Avoid literal -0.0f.
21249         * tests/test-floorl.c (zero): New variable.
21250         (main): Avoid literal -0.0L.
21251         * tests/test-roundf1.c (zero): New variable.
21252         (main): Avoid literal -0.0f.
21253         * tests/test-round1.c (zero): New variable.
21254         (main): Avoid literal -0.0.
21255         * tests/test-roundl.c (zero): New variable.
21256         (main): Avoid literal -0.0L.
21257         * tests/test-truncf1.c (zero): New variable.
21258         (main): Avoid literal -0.0f.
21259         * tests/test-trunc1.c (zero): New variable.
21260         (main): Avoid literal -0.0.
21261         * tests/test-truncl.c (zero): New variable.
21262         (main): Avoid literal -0.0L.
21263         * tests/test-frexp.c (zero): New variable.
21264         (main): Avoid literal -0.0.
21265         * tests/test-frexpl.c (zero): New variable.
21266         (main): Avoid literal -0.0L.
21267         * tests/test-ldexpl.c (zero): New variable.
21268         (main): Avoid literal -0.0L.
21269         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
21270         (zerod, zerol): New variables.
21271         (test_function): Avoid literals -0.0, -0.0L.
21272         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
21273         (zerod, zerol): New variables.
21274         (test_function): Avoid literals -0.0, -0.0L.
21275         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
21276         (zerod, zerol): New variables.
21277         (test_function): Avoid literals -0.0, -0.0L.
21278         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
21279         (zerod, zerol): New variables.
21280         (test_function): Avoid literals -0.0, -0.0L.
21281         * tests/test-strtod.c (zero): New variable.
21282         (main): Avoid literal -0.0.
21283         Reported by Jonathan C. Patschke <jp@centtech.com>.
21284
21285 2008-07-31  Jim Meyering  <meyering@redhat.com>
21286
21287         sha256.h: correct definition of SHA224_DIGEST_SIZE
21288         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
21289         Reported by Paulie Pena IV <paulie4@gmail.com>.
21290         Define as 224 / 8, rather than as a literal.
21291         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
21292         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
21293         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
21294
21295 2008-07-31  Bruno Haible  <bruno@clisp.org>
21296
21297         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
21298         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
21299         Reported by Jonathan Patschke <jp@centtech.com>.
21300
21301 2008-07-31  Bruno Haible  <bruno@clisp.org>
21302
21303         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
21304         Reported by Paolo Bonzini <bonzini@gnu.org>.
21305
21306 2008-07-30  Eric Blake  <ebb9@byu.net>
21307
21308         test-strtod: allow compilation without -lm
21309         * tests/test-strtod.c (main): Avoid link dependence on fabs.
21310         Reported by Dennis Clarke <blastwave@gmail.com>.
21311
21312 2008-07-28  Jim Meyering  <meyering@redhat.com>
21313
21314         bootstrap: work also when there are no .po files in po/
21315         * build-aux/bootstrap (update_po_files): Complete the change
21316         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
21317
21318 2008-07-27  Jim Meyering  <meyering@redhat.com>
21319
21320         * users.txt: Add zile.
21321
21322 2008-07-26  Ben Pfaff  <blp@gnu.org>
21323
21324         Add missing dependencies on new m4/exponent[fdl].m4 files.
21325         * modules/isnanf-nolibm: Add m4/exponentf.m4.
21326         * modules/isnand-nolibm: Add m4/exponentd.m4.
21327         * modules/isnanl-nolibm: Add m4/exponentl.m4.
21328         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
21329         m4/isnan[fdl].m4, because the macros actually used moved.
21330         Reported by Jim Meyering.
21331
21332 2008-07-14  Ben Pfaff  <blp@gnu.org>
21333
21334         Add isinf module.
21335         * lib/isinf.c: New file.
21336         * lib/math.in.h: Define isinf macro if we have decided to replace
21337         it.
21338         * m4/isinf.m4: New file.
21339         * m4/math_h.m4: Initialize and substitute variables for isinf
21340         module.
21341         * modules/isinf: New file.
21342         * modules/isinf-tests: New file.
21343         * modules/math: Add substitutions for new module.
21344         * tests/test-isinf.c: New file.
21345         * doc/posix-functions/isinf.texi: Mention new module.
21346         * MODULES.html.sh: Mention new module.
21347
21348 2008-07-14  Ben Pfaff  <blp@gnu.org>
21349
21350         Factor out some macros for use by additional modules.
21351         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
21352         exponentf.m4.
21353         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
21354         exponentd.m4.
21355         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
21356         file exponentl.m4.
21357         * m4/exponentf.m4: New file.
21358         * m4/exponentd.m4: New file.
21359         * m4/exponentl.m4: New file.
21360         * modules/isnanf: Use new file m4/exponentf.m4.
21361         * modules/isnand: Use new file m4/exponentd.m4.
21362         * modules/isnanl: Use new file m4/exponentl.m4.
21363
21364 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
21365
21366         mktime.c: normalize tp->tm_isdst value to -1/0/1.
21367         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
21368         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
21369         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
21370
21371         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
21372         readlink on platforms without PATH_MAX.
21373
21374 2008-07-21  Eric Blake  <ebb9@byu.net>
21375
21376         Warn, not fail, on stale version.
21377         * top/GNUmakefile (_curr-ver): Tone down previous patch.
21378
21379         Don't allow installation with stale devel version number.
21380         * top/GNUmakefile (_is-install-target): New macro.
21381         (_curr-ver): Forbid installation with stale version number.
21382
21383 2008-07-20  Bruno Haible  <bruno@clisp.org>
21384
21385         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
21386         TESTS_ENVIRONMENT.
21387         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
21388
21389 2008-07-20  Bruno Haible  <bruno@clisp.org>
21390
21391         * lib/c-stack.h (c_stack_action): Add documentation.
21392         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
21393
21394 2008-07-20  Bruno Haible  <bruno@clisp.org>
21395
21396         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
21397         * modules/readlink (License): Likewise.
21398
21399 2008-07-17  Eric Blake  <ebb9@byu.net>
21400
21401         * modules/c-stack (Link): Fix typo.
21402
21403         Make c-stack use libsigsegv, when available.
21404         * modules/c-stack (Depends-on): Add libsigsegv.
21405         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
21406         needed.
21407         * lib/c-stack.c (SIGSTKSZ): Define fallback.
21408         (segv_handler, overflow_handler, c_stack_action)
21409         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
21410         implementation when libsigsegv is available, but only when using
21411         the library is necessary.
21412         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
21413         comment, explaining why XSI check fails on Linux.
21414         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
21415         * tests/test-c-stack2.sh: Tweak skip message.
21416         * NEWS: Document new link-time requirements.
21417
21418 2008-07-16  Eric Blake  <ebb9@byu.net>
21419
21420         c-stack: Expose false positives when not using libsigsegv.
21421         * modules/c-stack-tests (Files): Expand test.
21422         * tests/test-c-stack.c (main): Add means to conditionally trigger
21423         non-overflow SIGSEGV.
21424         * tests/test-c-stack2.sh: New file.
21425
21426 2008-07-14  Bruno Haible  <bruno@clisp.org>
21427
21428         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
21429         Reported by Eric Blake.
21430
21431 2008-07-14  Sam Steingold  <sds@gnu.org>
21432             Bruno Haible  <bruno@clisp.org>
21433
21434         New module libsigsegv.
21435         * modules/libsigsegv: New file.
21436         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
21437         modifications.
21438         * MODULES.html.sh (Signal handling): New section.
21439
21440 2008-07-14  Bruno Haible  <bruno@clisp.org>
21441
21442         * modules/unictype/ctype-* (Description): Add the word "function".
21443         Improves the resulting doc in MODULES.html.
21444
21445 2008-07-12  Ben Pfaff  <blp@gnu.org>
21446
21447         Add longlong module.
21448         * modules/longlong: New file.
21449
21450 2008-07-12  Bruno Haible  <bruno@clisp.org>
21451
21452         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
21453         to empty.
21454
21455 2008-07-10  Ben Pfaff  <blp@gnu.org>
21456
21457         Add isnan module.
21458         * doc/posix-functions/isnan.texi: Mention new module.
21459         * lib/math.in.h: Define isnan macro if we have decided to replace
21460         it.
21461         * m4/isnan.m4: New file.
21462         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
21463         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
21464         also.
21465         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
21466         redundancy.
21467         * m4/math_h.m4: Initialize and substitute variables for isnan
21468         module.
21469         * modules/isnan: New file.
21470         * modules/isnan-tests: New file.
21471         * modules/math: Add substitutions for new module.
21472         * tests/test-isnan.c: New file.
21473         * MODULES.html.sh: Mention new module.
21474
21475 2008-07-10  Ben Pfaff  <blp@gnu.org>
21476
21477         Add isnanf module.
21478         * lib/isnanf.m4: New file.
21479         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
21480         (gl_HAVE_ISNANF_IN_LIBM): New macro.
21481         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
21482         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
21483         * modules/isnanf: New file.
21484         * modules/isnanf-tests: New file.
21485         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
21486         files.
21487         * tests/test-isnanf-nolibm.c: factored most of its contents into
21488         new file tests/test-isnanf.h.
21489         * tests/test-isnanf.h: New file.
21490         * tests/test-isnanf.c: New file.
21491         * MODULES.html.sh: Mention new module.
21492         * doc/glibc-functions/isnanf.texi: Mention new module.
21493
21494 2008-07-10  Ben Pfaff  <blp@gnu.org>
21495
21496         Add isnand module.
21497         * lib/isnand.h: New file.
21498         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
21499         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
21500         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
21501         functionality also.
21502         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
21503         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
21504         (gl_HAVE_ISNAND_IN_LIBM): New macro.
21505         * modules/isnand: New file.
21506         * modules/isnand-tests: New file.
21507         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
21508         files.
21509         * tests/test-isnand-nolibm.c: factored most of its contents into
21510         new file tests/test-isnand.h.
21511         * tests/test-isnand.h: New file.
21512         * tests/test-isnand.c: New file.
21513         * MODULES.html.sh: Mention new module.
21514
21515 2008-07-10  Ben Pfaff  <blp@gnu.org>
21516
21517         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
21518         * lib/isnand.h: Rename lib/isnand-nolibm.h.
21519         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
21520         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
21521         * modules/isnanf-nolibm: Update references to renamed files.
21522         * modules/isnand-nolibm: Likewise.
21523         * modules/isnanf-nolibm-tests: Likewise.
21524         * modules/isnand-nolibm-tests: Likewise.
21525         * lib/frexp.c: Likewise.
21526         * lib/isfinite.c: Likewise.
21527         * lib/signbitd.c: Likewise.
21528         * lib/signbitf.c: Likewise.
21529         * lib/vasnprintf.c: Likewise.
21530         * tests/test-ceilf1.c: Likewise.
21531         * tests/test-ceilf2.c: Likewise.
21532         * tests/test-floorf1.c: Likewise.
21533         * tests/test-floorf2.c: Likewise.
21534         * tests/test-frexp.c: Likewise.
21535         * tests/test-round1.c: Likewise.
21536         * tests/test-round2.c: Likewise.
21537         * tests/test-roundf1.c: Likewise.
21538         * tests/test-strtod.c: Likewise.
21539         * tests/test-trunc1.c: Likewise.
21540         * tests/test-trunc2.c: Likewise.
21541         * tests/test-truncf1.c: Likewise.
21542         * tests/test-truncf2.c: Likewise.
21543         * NEWS: Mention the renamed header files.
21544
21545 2008-07-11  Jim Meyering  <meyering@redhat.com>
21546
21547         vc-list-files: make the last-resort awk code more portable
21548         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
21549         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
21550         does not support it.
21551
21552 2008-07-10  Eric Blake  <ebb9@byu.net>
21553
21554         Work with tar's bootstrap.
21555         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
21556         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
21557         an m4 comment.
21558
21559 2008-07-09  Jim Meyering  <meyering@redhat.com>
21560
21561         posix-shell.m4: fix typo that made this test malfunction
21562         * m4/posix-shell.m4: Remove capitalization in variable name.
21563
21564 2008-07-08  Bruno Haible  <bruno@clisp.org>
21565
21566         * m4/onceonly.m4: Update comments.
21567         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21568
21569 2008-07-04  Jim Meyering  <meyering@redhat.com>
21570
21571         * users.txt: Add vc-dwim.
21572         (bison, coreutils): Use the gitweb URL.
21573
21574 2008-07-03  Jim Meyering  <meyering@redhat.com>
21575
21576         * users.txt: Add libffcall.  From Sam Steingold.
21577
21578 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
21579
21580         getdate.y: do not ignore TZ with relative day, month or year offset
21581         * lib/getdate.y (get_date): Move the tz-handling block to follow the
21582         relative-date-handling, since otherwise, the latter would clobber the
21583         sole output (an updated Start value) of the tz-handling block.
21584         * tests/test-getdate.c: Tests for the fix
21585
21586 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21587
21588         Recognize 'foo_LIBRARIES += libgnu.a'.
21589         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
21590         makefile snippet has already specified an installation location,
21591         also using '+='.
21592
21593 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
21594
21595         getdate.y: factor out common actions
21596         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
21597         Use them in place of open-coded actions.
21598
21599 2008-07-01  Simon Josefsson  <simon@josefsson.org>
21600
21601         Add self-test for getdate module.
21602         * modules/getdate-tests: New file.
21603         * tests/test-getdate.c: New file.
21604
21605 2008-06-29  Bruno Haible  <bruno@clisp.org>
21606
21607         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
21608         .gitignore.
21609         Reported by Sylvain Beucler <beuc@beuc.net>.
21610
21611 2008-06-29  Bruno Haible  <bruno@clisp.org>
21612
21613         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
21614         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
21615
21616 2008-06-29  Bruno Haible  <bruno@clisp.org>
21617
21618         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
21619         EXTRA_DIST.
21620         Reported by Sylvain Beucler <beuc@beuc.net>.
21621
21622 2008-06-26  Jim Meyering  <meyering@redhat.com>
21623
21624         make several modules depend on the "open" module
21625         This provides slightly increased consistency when opening-for-write
21626         the name of a non-directory spelled with a trailing slash.
21627         * modules/chdir-safer: Likewise.
21628         * modules/chown: Likewise.
21629         * modules/clean-temp: Likewise.
21630         * modules/copy-file: Likewise.
21631         * modules/fchdir: Likewise.
21632         * modules/fcntl-safer: Likewise.
21633         * modules/pipe: Likewise.
21634         * modules/utime: Likewise.
21635         Prompted by Eric Blake and Bruno Haible.
21636
21637 2008-06-24  Andreas Schwab  <schwab@suse.de>
21638
21639         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
21640         literals can be used as initializers for global variables.
21641
21642 2008-06-23  Eric Blake  <ebb9@byu.net>
21643
21644         Make gnulib-cache.m4 easier to diff.
21645         * gnulib-tool (func_import): Allow newlines when reading cached
21646         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
21647
21648 2008-06-23  Bruno Haible  <bruno@clisp.org>
21649
21650         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
21651         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
21652         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
21653         m4/signalblocking.m4.
21654         (gl_PREREQ_SIGACTION): Don't invoke it.
21655         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
21656         gl_PREREQ_SIG_HANDLER_H.
21657         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
21658         Don't check for sigaction here.
21659
21660 2008-06-23  Bruno Haible  <bruno@clisp.org>
21661
21662         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
21663         (install_handlers): Don't set the SA_RESETHAND flag.
21664
21665 2008-06-23  Bruno Haible  <bruno@clisp.org>
21666
21667         * m4/sigaction.m4: Comment fixes.
21668         * lib/signal.in.h: Likewise.
21669
21670 2008-06-23  Eric Blake  <ebb9@byu.net>
21671
21672         Fix typo.
21673         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
21674
21675         Avoid SA_ namespace.
21676         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
21677         Reported by Ralf Wildenhues.
21678
21679         Avoid test failure due to SA_RESTORER.
21680         * tests/test-sigaction.c (SA_MASK): New macro.
21681         (main): Avoid failing due to extension flags being set.
21682         Reported by Jim Meyering.
21683
21684         Revert use of sig-handler.h in sigprocmask.c.
21685         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
21686         it requires the existence of struct sigaction.
21687         * lib/sigprocmask.c (handler_t): Restore typedef.
21688         (rpl_signal, old_handlers): Use local type.
21689
21690 2008-06-22  Bruno Haible  <bruno@clisp.org>
21691
21692         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
21693         conditionally.
21694         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21695
21696 2008-06-22  Bruno Haible  <bruno@clisp.org>
21697
21698         * doc/posix-functions/siginterrupt.texi: Move note.
21699
21700         * lib/signal.in.h (SA_RESTART): New macro.
21701         * lib/sigaction.c: Update comment.
21702
21703         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
21704
21705         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
21706         (gl_PREREQ_SIGPROCMASK): Invoke it.
21707         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
21708
21709         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
21710
21711         * lib/sigprocmask.c: Update a comment.
21712
21713 2008-06-21  Eric Blake  <ebb9@byu.net>
21714
21715         Use sigaction module rather than signal().
21716         * modules/c-stack (Depends-on): Add sigaction.
21717         * modules/fatal-signal (Depends-on): Likewise.
21718         * modules/nanosleep (Depends-on): Likewise.
21719         * modules/sigprocmask (Files): Add sig-handler.h.
21720         * modules/sigaction (Files): Likewise.
21721         * lib/sig-handler.h (get_handler): New file, suggested by Paul
21722         Eggert.
21723         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
21724         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
21725         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
21726         (init_fatal_signals): Likewise.
21727         * lib/nanosleep.c (rpl_nanosleep): Likewise.
21728         (siginterrupt): Delete fallback.
21729         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
21730         instead.
21731         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
21732         siginterrupt.
21733
21734         New module sigaction, for mingw.
21735         * modules/sigaction: New module...
21736         * modules/sigaction-tests: ...and its test.
21737         * m4/sigaction.m4: New file.
21738         * lib/sigaction.c: Likewise.
21739         * tests/test-sigaction.c: Likewise.
21740         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
21741         * modules/signal (Makefile.am): Likewise.
21742         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
21743         needed.
21744         * doc/posix-headers/signal.texi (signal.h): Mention provided
21745         types.
21746         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
21747         that sigaction is preferable.
21748         * doc/posix-functions/sigaction.texi (sigaction): Mention new
21749         module.
21750         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21751         sigaction.
21752
21753         Improve robustness of sigprocmask by overriding signal.
21754         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
21755         is in use.
21756         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
21757         (SIGKILL, SIGSTOP): Provide fallbacks.
21758         (rpl_signal): Implement.
21759         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
21760         signal can be called inside handlers.
21761
21762         Fix nanosleep module on mingw.
21763         * modules/nanosleep (Depends-on): Add sys_select.
21764         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
21765
21766         Fix licensing of sigprocmask.
21767         * modules/raise (License): Relicense as LGPL.
21768
21769 2008-06-21  Bruno Haible  <bruno@clisp.org>
21770
21771         * lib/propername.c (proper_name_utf8): Don't use the transliterated
21772         result if it contains question marks.
21773         Reported by Michael Geng <linux@michaelgeng.de>.
21774
21775 2008-06-19  Bruno Haible  <bruno@clisp.org>
21776
21777         Fix CVS-ism.
21778         * doc/gnulib.texi: Include updated-stamp.texi.
21779         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
21780         (updated-stamp.texi): New rule.
21781         (gnulib.info): Depend on it.
21782         * doc/.gitignore: Add updated-stamp.texi.
21783         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
21784
21785 2008-06-19  Bruno Haible  <bruno@clisp.org>
21786
21787         * doc/Makefile (gnulib.info): Update and simplify dependencies.
21788         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21789
21790 2008-06-19  Eric Blake  <ebb9@byu.net>
21791
21792         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
21793         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
21794         Reported by Stepan Kasal.
21795
21796 2008-06-18  Bruno Haible  <bruno@clisp.org>
21797
21798         * lib/fatal-signal.c (init_fatal_signals): Add comment.
21799         Reported by Eric Blake.
21800
21801 2008-06-18  Eric Blake  <ebb9@byu.net>
21802
21803         Work around cygwin 1.5.25 strsignal bug.
21804         * tests/test-strsignal.c: Allow for const char *.
21805         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
21806
21807 2008-06-18  Simon Josefsson  <simon@josefsson.org>
21808
21809         * users.txt: Update URL to article and add author/date
21810         information.
21811
21812 2008-06-17  Bruno Haible  <bruno@clisp.org>
21813
21814         New macro gl_DISABLE_THREADS.
21815         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
21816         if the user did not pass --enable-threads or --disable-threads option.
21817         (gl_DISABLE_THREADS): New macro.
21818         Reported by Eric Blake <ebb9@byu.net>.
21819
21820 2008-06-17  Bruno Haible  <bruno@clisp.org>
21821
21822         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
21823         when the macro ignores it.
21824         Based on a patch by Eric Blake <ebb9@byu.net>.
21825
21826 2008-06-17  Bruno Haible  <bruno@clisp.org>
21827
21828         * modules/tls (License): Change to LGPLv2+.
21829         Reported by Eric Blake.
21830
21831 2008-06-17  Eric Blake  <ebb9@byu.net>
21832
21833         Simplify c-stack prerequisites.
21834         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
21835         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
21836         no longer requires <ucontext.h> to exist.  Optimize setrlimit
21837         check.
21838         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
21839         <sys/resource.h>.
21840
21841         Move c-stack test into testsuite.
21842         * modules/c-stack-tests: New file.
21843         * lib/c-stack.c [DEBUG]: Move test program...
21844         * tests/test-c-stack.c: ...into this new file.  Skip rather than
21845         fail test if sigaltstack is lacking.
21846         * tests/test-c-stack.sh: New driver file.
21847
21848 2008-06-16  Eric Blake  <ebb9@byu.net>
21849
21850         Use raise module consistently.
21851         * modules/fatal-signal (Depends-on): Add raise.
21852         * modules/sigprocmask (Depends-on): Likewise.
21853         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
21854         * lib/sigprocmask.c (sigprocmask): Likewise.
21855         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
21856         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
21857
21858         Fix compliance bug in sigpending.
21859         * lib/sigprocmask.c (sigpending): Return pending array via
21860         parameter, not return value.
21861
21862 2008-06-14  Eric Blake  <ebb9@byu.net>
21863
21864         Improve obstack-printf test code.
21865         * tests/test-obstack-printf.c (test_function): Fix comment, and
21866         simplify usage of obstack_* in macros.  Add a test for coverage.
21867         Reported by Bruno Haible.
21868
21869 2008-06-14  Bruno Haible  <bruno@clisp.org>
21870
21871         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
21872         array size as a constant, not as a const variable.
21873         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
21874         AC_USE_SYSTEM_EXTENSIONS.
21875         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
21876         Test whether the obstack_printf function actually exists.
21877         * modules/obstack-printf (Depends-on): Add extensions.
21878         (Include): Remove obstack.h.
21879         * modules/obstack-printf-posix (Depends-on): Add extensions.
21880         (Include): Remove obstack.h.
21881
21882 2008-06-13  Eric Blake  <ebb9@byu.net>
21883
21884         Add obstack-printf and obstack-printf-posix modules.
21885         * modules/obstack-printf: New file.
21886         * modules/obstack-printf-posix: Likewise.
21887         * MODULES.html.sh (Misc): Mention them.
21888         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
21889         Likewise.
21890         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
21891         Likewise.
21892         * modules/stdio (Makefile.am): Accomodate new modules.
21893         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21894         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
21895         Declare.
21896         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
21897         functions.
21898         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
21899         (gl_REPLACE_OBSTACK_PRINTF): New macros
21900         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
21901         * tests/test-obstack-printf.c: New file.
21902         * modules/obstack-printf-tests: Likewise.
21903         * modules/obstack-printf-posix-tests: Likewise.
21904
21905 2008-06-11  Bruno Haible  <bruno@clisp.org>
21906
21907         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
21908         * lib/open.c: Include errno.h.
21909         (open): Fail when attempting to write to a file that has a trailing
21910         slash.
21911         * tests/test-open.c (main): Test against trailing slash bug.
21912         * doc/posix-functions/open.texi: Mention the trailing slash bug.
21913
21914 2008-06-10  Bruno Haible  <bruno@clisp.org>
21915
21916         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
21917         for $? to work inside the trap command, with various /bin/sh-s.
21918         * tests/test-vc-list-files-cvs.sh: Likewise.
21919
21920 2008-06-10  Bruno Haible  <bruno@clisp.org>
21921
21922         * lib/acl-internal.h: Don't include gettext.h here.
21923         * lib/set-mode-acl.c: Include gettext.h here.
21924         * lib/copy-acl.c: Likewise.
21925
21926 2008-06-10  Bruno Haible  <bruno@clisp.org>
21927
21928         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
21929         * lib/wait-process.c (wait_subprocess): Likewise.
21930         * lib/execute.h (execute): Add termsigp argument.
21931         * lib/execute.c (execute): Likewise.
21932         * lib/csharpcomp.c (compile_csharp_using_pnet,
21933         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
21934         * lib/csharpexec.c (execute_csharp_using_pnet,
21935         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
21936         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
21937         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
21938         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
21939         is_jikes_present): Update.
21940         * lib/javaexec.c (execute_java_class): Update.
21941         * lib/javaversion.c (execute_and_read_line): Update.
21942         * NEWS: Document the changes.
21943         Reported by Eric Blake.
21944
21945 2008-06-10  Eric Blake  <ebb9@byu.net>
21946
21947         Add missing include.
21948         * tests/test-strstr.c (includes): Add <signal.h>.
21949         * tests/test-strcasestr.c (includes): Likewise.
21950         * tests/test-memmem.c (includes): Likewise.
21951
21952 2008-06-10  Bruno Haible  <bruno@clisp.org>
21953
21954         * lib/wait-process.c (wait_subprocess): Add an assertion.
21955
21956 2008-06-10  Bruno Haible  <bruno@clisp.org>
21957
21958         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
21959
21960 2008-06-10  Bruno Haible  <bruno@clisp.org>
21961
21962         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
21963         using alarm().
21964         * tests/test-strcasestr.c (main): Likewise.
21965         * tests/test-strstr.c (main): Likewise.
21966
21967 2008-06-09  Bruno Haible  <bruno@clisp.org>
21968
21969         Work around the Solaris 10 ACE ACLs ABI change.
21970         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
21971         declare if ACL_NO_TRIVIAL is present.
21972         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
21973         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
21974         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
21975         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
21976         define if ACL_NO_TRIVIAL is present.
21977         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
21978         and use the current ABI.
21979         (file_has_acl): Use same #if condition as elsewhere.
21980         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
21981         in use, and use the current ABI.
21982         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
21983         Reported by Jim Meyering.
21984
21985 2008-06-09  Eric Blake  <ebb9@byu.net>
21986
21987         Work around environments that (stupidly) ignore SIGALRM.
21988         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
21989         before using alarm().
21990         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21991         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21992         Reported by Ian Beckwith <ianb@erislabs.net>.
21993
21994         Produce autobuild blurb earlier in log.
21995         * modules/autobuild (configure.ac-early): Move AB_INIT here.
21996
21997 2008-06-09  Jim Meyering  <meyering@redhat.com>
21998         and OndÅ™ej Vašík  <ovasik@redhat.com>
21999
22000         utimens.c: correct kernel bug work-around
22001         OndÅ™ej Vašík found that the invalid return value of 280 indicates
22002         failure, not success, and the kernel bug we're trying to work
22003         around affects not just the utimensat call, but also the fallback
22004         futimens call.
22005         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
22006         not success.
22007         [HAVE_FUTIMENS]: Use the same work-around, here.
22008
22009 2008-06-09  Jim Meyering  <meyering@redhat.com>
22010
22011         add more guards around definition of ACE_-related code
22012         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
22013         ALLOW and ACE_OWNER are also defined.
22014
22015 2008-06-08  Bruno Haible  <bruno@clisp.org>
22016
22017         * lib/acl-internal.h: Add me as co-author.
22018         * lib/file-has-acl.c: Likewise.
22019         * lib/set-mode-acl.c: Likewise.
22020         * lib/copy-acl.c: Likewise.
22021
22022 2008-06-08  Bruno Haible  <bruno@clisp.org>
22023
22024         Add support for AIX ACLs.
22025         * lib/acl-internal.h (acl_nontrivial): New declaration.
22026         * lib/file-has-acl.c (acl_nontrivial): New function.
22027         (file_has_acl): Add implementation using AIX 4 ACL API.
22028         * lib/set-mode-acl.c (qset_acl): Likewise.
22029         * lib/copy-acl.c (qcopy_acl): Likewise.
22030
22031 2008-06-08  Bruno Haible  <bruno@clisp.org>
22032
22033         Add support for HP-UX ACLs.
22034         * lib/acl-internal.h (acl_nontrivial): New declaration.
22035         * lib/file-has-acl.c (acl_nontrivial): New function.
22036         (file_has_acl): Add implementation using HP-UX 11 ACL API.
22037         * lib/set-mode-acl.c (qset_acl): Likewise.
22038         * lib/copy-acl.c (qcopy_acl): Likewise.
22039
22040 2008-06-08  Bruno Haible  <bruno@clisp.org>
22041
22042         Add support for Cygwin ACLs.
22043         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
22044         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
22045         the chmod_or_fchmod call.
22046         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
22047
22048 2008-06-08  Bruno Haible  <bruno@clisp.org>
22049
22050         Fix bug with setuid modes in Solaris 10+ code.
22051         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
22052         succeeded, when the mode contains some special bits.
22053
22054 2008-06-08  Bruno Haible  <bruno@clisp.org>
22055
22056         Add support for Solaris 7..10 ACLs.
22057         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
22058         declarations.
22059         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
22060         functions.
22061         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
22062         * lib/set-mode-acl.c (qset_acl): Likewise.
22063         * lib/copy-acl.c (qcopy_acl): Likewise.
22064
22065 2008-06-08  Bruno Haible  <bruno@clisp.org>
22066
22067         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
22068         declaration.
22069         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
22070         (acl_access_nontrivial): Remove MacOS X case.
22071         (file_has_acl): Use acl_extended_nontrivial.
22072         * lib/copy-acl.c (qcopy_acl): Likewise.
22073
22074 2008-06-08  Bruno Haible  <bruno@clisp.org>
22075
22076         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
22077
22078 2008-06-08  Jim Meyering  <meyering@redhat.com>
22079
22080         * modules/acl (Maintainer): Add Bruno Haible.
22081
22082 2008-06-07  Bruno Haible  <bruno@clisp.org>
22083
22084         Improve support for Tru64 ACLs.
22085         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
22086         ACL on OSF/1.
22087
22088 2008-06-07  Bruno Haible  <bruno@clisp.org>
22089
22090         Add support for MacOS X ACLs.
22091         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
22092         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
22093         * lib/set-mode-acl.c (qset_acl): Likewise.
22094         * lib/copy-acl.c (qcopy_acl): Likewise.
22095
22096 2008-06-07  Bruno Haible  <bruno@clisp.org>
22097
22098         Fix memory leak introduced on 2008-05-22.
22099         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
22100         use.
22101
22102 2008-06-07  Bruno Haible  <bruno@clisp.org>
22103
22104         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
22105         to construct an empty ACL.
22106
22107 2008-06-07  Bruno Haible  <bruno@clisp.org>
22108
22109         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
22110         precisely.
22111         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
22112
22113 2008-06-07  Bruno Haible  <bruno@clisp.org>
22114
22115         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
22116         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
22117
22118 2008-06-07  Bruno Haible  <bruno@clisp.org>
22119
22120         * doc/posix-functions/_setjmp.texi: Explain the use of this function
22121         regardless of POSIX.
22122         * doc/posix-functions/_longjmp.texi: Likewise.
22123         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
22124         SystemV platform in this case.
22125
22126 2008-06-06  Eric Blake  <ebb9@byu.net>
22127
22128         Document abort() bugs.
22129         * doc/posix-functions/abort.texi (abort): Mention anomalies.
22130
22131         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
22132         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
22133         sigsetjmp.
22134         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
22135         siglongjmp, but only as a macro.
22136         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
22137         is obsolete.
22138         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
22139
22140         Tweak documentation to cover cygwin argz bugs.
22141         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
22142         argz bug fix; no code change needed since no cygwin releases
22143         occurred between the last fix and the bug being tested.
22144         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
22145         module and recently fixed cygwin bugs.
22146         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
22147         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
22148         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
22149         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
22150         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
22151         Likewise.
22152         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
22153         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
22154         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
22155         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
22156         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
22157         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
22158         Likewise.
22159
22160         Avoid gcc warning on cygwin.
22161         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
22162         !ACL_NO_TRIVIAL]: Avoid unused variable.
22163
22164 2008-06-05  Eric Blake  <ebb9@byu.net>
22165
22166         Be tolerant of UNKNOWN version in gnulib-tool test dir.
22167         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
22168         git-version-gen fails to come up with a version.
22169         Reported by Simon Josefsson.
22170
22171 2008-06-05  Jim Meyering  <meyering@redhat.com>
22172             Paul Eggert  <eggert@cs.ucla.edu>
22173
22174         utimens.c: work around a probable Linux kernel bug
22175         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
22176         appears to be a kernel bug that causes utimensat to return 280
22177         instead of 0, indicating success.
22178
22179 2008-06-04  Bruno Haible  <bruno@clisp.org>
22180
22181         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
22182         2008-06-01 commit.
22183
22184 2008-06-04  Bruno Haible  <bruno@clisp.org>
22185
22186         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
22187         * lib/file-has-acl.c (acl_access_nontrivial): New function.
22188         (file_has_acl): Use it. Save errno afterwards.
22189         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
22190
22191 2008-06-03  Bruno Haible  <bruno@clisp.org>
22192
22193         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
22194         draft code. Simplify #ifs.
22195         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
22196         Put Solaris code after POSIX-draft code. Fix comments regarding
22197         Solaris 10, HP-UX. Mention Cygwin.
22198         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
22199
22200 2008-06-03  Eric Blake  <ebb9@byu.net>
22201
22202         Provide fallback for older kernels.
22203         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
22204         Provide runtime fallback if kernel lacks support.
22205         Reported by Mike Frysinger.
22206
22207 2008-06-02  Bruno Haible  <bruno@clisp.org>
22208
22209         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
22210         it exists.
22211
22212 2008-06-02  Bruno Haible  <bruno@clisp.org>
22213
22214         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
22215         * lib/copy-acl.c (qcopy_acl): Update comment.
22216
22217 2008-06-02  Bruno Haible  <bruno@clisp.org>
22218
22219         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
22220         like ACL APIs.
22221
22222 2008-06-02  Bruno Haible  <bruno@clisp.org>
22223
22224         * tests/test-file-has-acl.sh: Use different code for Cygwin.
22225         * tests/test-set-mode-acl.sh: Likewise.
22226         * tests/test-copy-acl.sh: Likewise.
22227         * tests/test-copy-file.sh: Likewise.
22228
22229 2008-06-02  Bruno Haible  <bruno@clisp.org>
22230
22231         * tests/test-file-has-acl.sh: Remove unused code.
22232
22233 2008-06-01  Bruno Haible  <bruno@clisp.org>
22234
22235         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
22236         (copy_acl): Just a wrapper around qcopy_acl that emits the error
22237         messages.
22238         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
22239
22240 2008-06-01  Bruno Haible  <bruno@clisp.org>
22241
22242         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
22243         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
22244         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
22245         APIs.
22246         * modules/acl-tests (configure.ac): Remove tests now contained in
22247         m4/acl.m4.
22248
22249 2008-06-02  Jim Meyering  <meyering@redhat.com>
22250
22251         announce-gen: use a better key-server host name
22252         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
22253         it may be more consistently reliable.  Suggested by Werner Koch
22254         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
22255
22256 2008-06-01  Bruno Haible  <bruno@clisp.org>
22257
22258         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
22259         Reported by Voroskoi Andras <voroskoi@gmail.com>.
22260
22261 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
22262
22263         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
22264
22265 2008-06-01  Bruno Haible  <bruno@clisp.org>
22266
22267         New ACL tests.
22268         * tests/test-file-has-acl.sh: New file.
22269         * tests/test-file-has-acl.c: New file.
22270         * tests/test-set-mode-acl.sh: New file.
22271         * tests/test-set-mode-acl.c: New file.
22272         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
22273         * tests/test-copy-acl.c: New file.
22274         * modules/acl-tests: New file, based on modules/copy-file-tests.
22275         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
22276         (Depends-on): Add acl-tests.
22277         (configure.ac): Remove checks.
22278         (Makefile.am): Don't create test-sameacls program here any more.
22279
22280 2008-06-01  Bruno Haible  <bruno@clisp.org>
22281
22282         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
22283         * tests/test-sameacls.c: Include progname.h.
22284         (main): Invoke set_program_name. Portability fixes for MacOS X,
22285         Solaris, HP-UX.
22286
22287 2008-06-01  Bruno Haible  <bruno@clisp.org>
22288
22289         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
22290         function.
22291         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
22292
22293 2008-06-01  Bruno Haible  <bruno@clisp.org>
22294
22295         * modules/rpmatch (Depends-on): Add strdup.
22296
22297 2008-06-01  Bruno Haible  <bruno@clisp.org>
22298
22299         * lib/pipe.c: Include unistd-safer.h.
22300         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
22301         * modules/pipe (Depends-on): Add unistd-safer.
22302
22303 2008-05-30  Simon Josefsson  <simon@josefsson.org>
22304
22305         * modules/autobuild (configure.ac): Call AB_INIT.
22306
22307 2008-05-30  Simon Josefsson  <simon@josefsson.org>
22308
22309         * tests/test-getaddrinfo.c: Don't print debug messages by default.
22310         Suggested by Bruno Haible <bruno@clisp.org>.
22311
22312 2008-05-30  Simon Josefsson  <simon@josefsson.org>
22313
22314         * tests/test-base64.c: Cast size_t to unsigned long when invoking
22315         printf.  Use %lu instead of %d.  Reported by Bruno Haible
22316         <bruno@clisp.org>.
22317
22318 2008-05-29  Eric Blake  <ebb9@byu.net>
22319
22320         Prefer new POSIX 200x interfaces over futimesat.
22321         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
22322         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
22323         when available.
22324         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
22325
22326 2008-05-28  Bruno Haible  <bruno@clisp.org>
22327
22328         * modules/stpcpy (License): Change to LGPLv2+.
22329         Requested by David Lutterkort <dlutter@redhat.com>.
22330
22331 2008-05-27  Bruno Haible  <bruno@clisp.org>
22332
22333         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
22334         current mingw.
22335         Reported by Jose E. Marchesi <jemarch@gnu.org>.
22336
22337 2008-05-27  Bruno Haible  <bruno@clisp.org>
22338
22339         * modules/iconv_open (Link): New section, from module 'iconv'.
22340         * modules/striconv (Link): Likewise.
22341         * modules/striconveh (Link): Likewise.
22342         * modules/xstriconv (Link): Likewise.
22343         * modules/unicodeio (Link): Likewise.
22344         * modules/propername (Link): Likewise.
22345         Reported by Jim Meyering.
22346
22347 2008-05-26  Jim Meyering  <meyering@redhat.com>
22348
22349         sha256: do not artificially restrict buffer length to be < 2^32
22350         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
22351         uint32_t to size_t.
22352         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
22353         to match.
22354
22355         avoid unaligned access errors, e.g., on sparc
22356         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
22357         direct access through a possibly-unaligned uint64* pointer.
22358         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
22359         direct access through a possibly-unaligned uint32* pointer.
22360         Prompted by this patch from Tom "spot" Callaway:
22361         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
22362
22363         sha512.c: fix typo in comment
22364         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
22365
22366 2008-05-25  Bruno Haible  <bruno@clisp.org>
22367
22368         * lib/set-mode-acl.c: Renamed from lib/acl.c.
22369         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
22370         (Makefile.am): Update lib_SOURCES.
22371
22372 2008-05-25  Bruno Haible  <bruno@clisp.org>
22373
22374         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
22375
22376 2008-05-25  Jim Meyering  <meyering@redhat.com>
22377
22378         useless-if-before-free: freed expr may have white-space differences
22379         * build-aux/useless-if-before-free: Recognize cases in which the
22380         freed expression differs from the tested one in embedded white
22381         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
22382         $1 was used, so we can't make any regexp shy.  Improved tests now
22383         detect this.
22384
22385         useless-if-before-free: accept white space in the expression.
22386         * build-aux/useless-if-before-free: For now, any white space
22387         in the expression must be identical in the free argument.
22388
22389         useless-if-before-free: efficiency tweak
22390         * build-aux/useless-if-before-free: Make the expression-matching
22391         regexp "shy".
22392         Make the *outer* regexp shy, not the expr-matching one.
22393
22394         update code-in-comment to accept cast of free arg
22395         * build-aux/useless-if-before-free: Update regexp.
22396
22397 2008-05-25  Bruno Haible  <bruno@clisp.org>
22398
22399         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
22400         * modules/copy-file-tests (Files, Makefile.am): Update.
22401         * tests/test-copy-file.c (func_test_copy): Update.
22402
22403 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
22404
22405         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
22406
22407 2008-05-23  Bruno Haible  <bruno@clisp.org>
22408
22409         Improve support for ACLs on OSF/1.
22410         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
22411         Remove fallback for unknown flavors of ACLs.
22412
22413 2008-05-22  Bruno Haible  <bruno@clisp.org>
22414
22415         Add support for ACLs on OSF/1.
22416         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
22417         replacements.
22418         (acl_free_text): New macro fallback.
22419         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
22420         acl_free.
22421         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
22422         acl_free_text function. Require AC_C_INLINE.
22423
22424 2008-05-22  Bruno Haible  <bruno@clisp.org>
22425
22426         Make copy_acl work on MacOS X 10.5.
22427         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
22428         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
22429         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
22430         If MODE_INSIDE_ACL, don't assume that every system has the same text
22431         representation for ACLs as FreeBSD.
22432         * lib/copy-acl.c (copy_acl): Add support for platforms with
22433         !MODE_INSIDE_ACL.
22434         * lib/file-has-acl.c (file_has_acl): Likewise.
22435         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
22436         FreeBSD, MacOS X, or IRIX, respectively.
22437
22438 2008-05-22  Bruno Haible  <bruno@clisp.org>
22439
22440         * lib/acl.h: Don't include <sys/acl.h>.
22441         (GETACLCNT): Move fallback to lib/acl-internal.h.
22442         * lib/acl-internal.h: Include <sys/acl.h> here.
22443         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
22444
22445 2008-05-22  Bruno Haible  <bruno@clisp.org>
22446
22447         Split off copy_acl function to separate file.
22448         * lib/copy-acl.c: New file, extracted from lib/acl.c.
22449         * lib/acl.c (copy_acl): Moved function to separate file.
22450         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
22451         * modules/acl (Files): Add lib/copy-acl.c.
22452         (Makefiles.am): Augment lib_SOURCES.
22453
22454 2008-05-22  Bruno Haible  <bruno@clisp.org>
22455
22456         * modules/copy-file-tests: New file.
22457         * tests/test-copy-file.sh: New file.
22458         * tests/test-copy-file.c: New file.
22459         * tests/test-copy-file-sameacls.c: New file.
22460
22461 2008-05-22  Eric Blake  <ebb9@byu.net>
22462
22463         Avoid gcc warning.
22464         * tests/test-memcmp.c (main): Pass NULL indirectly.
22465
22466 2008-05-21  Bruno Haible  <bruno@clisp.org>
22467
22468         Add reference doc about ACLs.
22469         * doc/acl-resources.txt: New file.
22470         * doc/acl-cygwin.txt: New file.
22471
22472 2008-05-21  Bruno Haible  <bruno@clisp.org>
22473
22474         Avoid one more warning from gcc.
22475         * lib/vasnprintf.c (IF_LINT): Update comments.
22476         (VASNPRINTF): Use it also for the 'prefix' array initializer.
22477
22478 2008-05-21  Jim Meyering  <meyering@redhat.com>
22479
22480         avoid a warning from gcc
22481         * lib/vasnprintf.c (IF_LINT): Define.
22482         (scale10_round_decimal_long_double):
22483         Use it to avoid a "may be used uninitialized" warning.
22484         (scale10_round_decimal_double): Likewise.
22485
22486 2008-05-21  Simon Josefsson  <simon@josefsson.org>
22487
22488         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
22489         declared.
22490
22491 2008-05-20  Bruno Haible  <bruno@clisp.org>
22492
22493         * tests/test-memcmp.c (main): Test also the sign of the result. Test
22494         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
22495
22496 2008-05-20  Simon Josefsson  <simon@josefsson.org>
22497
22498         * modules/memcmp-tests: New file.
22499         * tests/test-memcmp.c: New file.
22500
22501 2008-05-19  Bruno Haible  <bruno@clisp.org>
22502
22503         * modules/propername (Notice, configure.ac): Put quoted "..." into
22504         --keyword option.
22505         * lib/propername.h: Update comments accordingly.
22506         Reported by Eric Blake.
22507
22508 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
22509
22510         * modules/getpass-gnu (Depends-on): Add fseeko.
22511
22512 2008-05-19  Simon Josefsson  <simon@josefsson.org>
22513
22514         * modules/base64-tests: New file.
22515
22516 2008-05-19  Bo Borgerson <gigabo@gmail.com>
22517
22518         * lib/base64.c (base64_decode_ctx): If a decode context structure
22519         was passed in use it to ignore newlines.  If a context structure
22520         was _not_ passed in, continue to treat newlines as garbage (this
22521         is the historical behavior).  Formerly base64_decode.
22522         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
22523         takes a decode context structure.
22524         * lib/base64.h (base64_decode): Macro for four-argument calls.
22525         (base64_decode_alloc): Likewise.
22526         * lib/base64.c (base64_decode_ctx): If a decode context structure
22527         was passed in use it to ignore newlines.  If a context structure
22528         was _not_ passed in, continue to treat newlines as garbage (this
22529         is the historical behavior).  Formerly base64_decode.
22530         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
22531         takes a decode context structure.
22532         * lib/base64.h (base64_decode): Macro for four-argument calls.
22533         (base64_decode_alloc): Likewise.
22534
22535 2008-05-19  Jim Meyering  <meyering@redhat.com>
22536
22537         avoid a warning from gcc
22538         * lib/trim.c (IF_LINT): Define.
22539         (trim2): Use it to avoid a "may be used uninitialized" warning.
22540
22541         Fix doc typo.
22542         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
22543
22544 2008-05-19  Bruno Haible  <bruno@clisp.org>
22545
22546         * doc/glibc-functions/getpass.texi: Document limits of other
22547         implementations.
22548
22549 2008-05-19  Simon Josefsson  <simon@josefsson.org>
22550             Bruno Haible <bruno@clisp.org>
22551
22552         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
22553
22554 2008-05-18  Bruno Haible  <bruno@clisp.org>
22555
22556         * modules/propername: New file, from GNU gettext.
22557         * lib/propername.h: New file, from GNU gettext.
22558         * lib/propername.c: New file, from GNU gettext.
22559         * MODULES.html.sh (Internationalization functions): Add propername.
22560
22561 2008-05-16  Jim Meyering  <meyering@redhat.com>
22562             Bruno Haible  <bruno@clisp.org>
22563
22564         Avoid some warnings from "gcc -Wshadow".
22565         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
22566
22567 2008-05-15  Eric Blake  <ebb9@byu.net>
22568
22569         Extend previous patch to cygwin 1.7.0.
22570         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
22571         fast implementation in cygwin >= 1.7.0.
22572         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22573         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22574
22575 2008-05-15  Bruno Haible  <bruno@clisp.org>
22576
22577         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
22578         implementation in glibc >= 2.9.
22579         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22580         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22581
22582 2008-05-15  Bruno Haible  <bruno@clisp.org>
22583
22584         * MODULES.html.sh (Internationalization functions): Remove linebreak.
22585         (Unicode string functions): Add unilbrk/*.
22586         Reported by Karl Berry.
22587
22588 2008-05-15  Eric Blake  <ebb9@byu.net>
22589
22590         Fix violation of <stdbool.h> replacement in regex.
22591         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
22592         * lib/regexec.c (re_search_internal): Likewise.
22593         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
22594
22595 2008-05-15  Jim Meyering  <meyering@redhat.com>
22596
22597         avoid distracting test output when git or cvs is not found
22598         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
22599         * tests/test-vc-list-files-git.sh: Likewise.
22600
22601 2008-05-15  Eric Blake  <ebb9@byu.net>
22602
22603         Glibc finally accepted the memmem speedup code, bugzilla #5514.
22604         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
22605         glibc version.
22606         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
22607         * doc/posix-functions/strstr.texi (strstr): Likewise.
22608         * lib/str-two-way.h (MAX): Sychronize with glibc.
22609
22610 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
22611
22612         * lib/regcomp.c (optimize_utf8): Add a note on why we test
22613         opr.ctx_type.
22614         (calc_first): Initialize constraint field.
22615         (duplicate_node_closure): Use it instead of special casing ANCHORS.
22616         Fix grammar.
22617         (duplicate_node): Merge constraint field for all node types.
22618         (calc_eclosure_iter): Look at constraint field for all node types.
22619         * lib/regex_internal.c (create_cd_newstate): Don't look at
22620         opr.ctx_type.
22621
22622 2008-05-14  Bruno Haible  <bruno@clisp.org>
22623
22624         Help GCC to do better code generation.
22625         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
22626         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
22627         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
22628         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
22629         Declare with attribute 'malloc' if supported.
22630
22631 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
22632
22633         use "echo STR|wc -c" rather than unportable "expr length STR"
22634         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
22635         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
22636
22637 2008-05-14  Jim Meyering  <meyering@redhat.com>
22638
22639         use dd ibs=$n count=1 ... rather than less-portable head -c$n
22640         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
22641         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
22642         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
22643         via Collin Lasse.
22644
22645 2008-05-14  Eric Blake  <ebb9@byu.net>
22646
22647         Avoid quadratic growth in gl_LIBSOURCES.
22648         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
22649         Suggested by Bruno Haible.
22650
22651         Test xmemdup0.
22652         * modules/xmemdup0-tests: New file.
22653         * tests/test-xmemdup0.c: Likewise.
22654
22655 2008-05-13  Eric Blake  <ebb9@byu.net>
22656
22657         Split xmemdup0 into its own module.
22658         * modules/xmemdup0: New file.
22659         * lib/xmemdup0.h: Likewise.
22660         * lib/xmemdup0.c: Likewise.
22661         * MODULES.html.sh (Memory management functions): Add xmemdup0.
22662         * lib/xalloc.h (xmemdup0): Remove.
22663         * lib/xmalloc.c (xmemdup0): Likewise.
22664
22665 2008-05-13  Eric Blake  <ebb9@byu.net>
22666             Bruno Haible  <bruno@clisp.org>
22667
22668         Reduce number of forks required during autoconf.
22669         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
22670         and gl_LIBSOURCES_DIR.
22671         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
22672         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
22673         m4_syscmd per file.
22674         <m4_foreach_w>: Move...
22675         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
22676
22677 2008-05-13  Eric Blake  <ebb9@byu.net>
22678
22679         * gnulib-tool: Fix various comment typos.
22680
22681 2008-05-12  Bruno Haible  <bruno@clisp.org>
22682
22683         Tailor the linebreaking algorithm.
22684         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
22685
22686 2008-05-12  Bruno Haible  <bruno@clisp.org>
22687
22688         Update to Unicode 5.0.0.
22689         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
22690         LBP_JV, LBP_JT. Redistribute values.
22691         (unilbrk_table): Change size.
22692         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
22693         Unicode TR#14 rev. 22.
22694         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
22695         LBP_JV, LBP_JT. Redistribute values.
22696         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
22697         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
22698         Update.
22699         * lib/unilbrk/lbrkprop1.h: Regenerated.
22700         * lib/unilbrk/lbrkprop2.h: Regenerated.
22701         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
22702         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
22703         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
22704         Likewise.
22705         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
22706         Likewise.
22707         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
22708         result.
22709         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22710         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22711         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22712         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
22713         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
22714         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
22715
22716 2008-05-11  Bruno Haible  <bruno@clisp.org>
22717
22718         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
22719
22720 2008-05-11  Bruno Haible  <bruno@clisp.org>
22721
22722         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
22723         * modules/unilbrk/gen-lbrk: New file.
22724
22725 2008-05-11  Bruno Haible  <bruno@clisp.org>
22726
22727         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
22728         * m4/sha512.m4 (gl_SHA512): Likewise.
22729
22730 2008-05-11  Jim Meyering  <meyering@redhat.com>
22731
22732         New modules: crypto/sha256, crypto/sha512 (from coreutils)
22733         * modules/crypto/sha256: New file.
22734         * modules/crypto/sha512: Likewise.
22735         * lib/sha256.c: Likewise.
22736         * lib/sha256.h: Likewise.
22737         * lib/sha512.c: Likewise.
22738         * lib/sha512.h: Likewise.
22739         * lib/u64.h: Likewise.
22740         * m4/sha256.m4: Likewise.
22741         * m4/sha512.m4: Likewise.
22742         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
22743
22744 2008-05-10  Bruno Haible  <bruno@clisp.org>
22745
22746         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
22747         (Input/Output <stdio.h>): Add xprintf.
22748         (Signal handling <signal.h>): Add strsignal.
22749         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
22750         (Core language properties): Add func.
22751         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
22752         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
22753         strings.
22754         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
22755         (Input/output): New section.
22756         (File system functions): Add openat-die, stat-macros.
22757         (Networking functions): Add sockets.
22758         (Unicode string functions): Add unictype/*.
22759         (Support for building libraries and executables): Add gperf.
22760         (Support for building documentation): Add agpl-3.0.
22761         (Misc): Add nocrash.
22762
22763 2008-05-10  Bruno Haible  <bruno@clisp.org>
22764
22765         * modules/unictype/gen-ctype: New file.
22766
22767 2008-05-10  Jim Meyering  <meyering@redhat.com>
22768
22769         Make chdir-safer.c more efficient on a system with no symlinks.
22770         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
22771         also if ELOOP is zero.  Suggested by Bruno Haible.
22772
22773         Make chdir-safer.c slightly safer.
22774         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
22775         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
22776
22777         Avoid compile failure on systems without ELOOP (like mingw).
22778         * lib/chdir-safer.c (ELOOP): Define if not already defined.
22779         Reported by Bruno Haible.
22780
22781 2008-05-10  Bruno Haible  <bruno@clisp.org>
22782
22783         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
22784         (is_utf8_encoding): Use a case-insensitive comparison.
22785         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
22786         streq.
22787
22788 2008-05-10  Bruno Haible  <bruno@clisp.org>
22789
22790         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
22791         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
22792         * lib/unilbrk/ulc-common.h (iconv_string_length,
22793         iconv_string_keeping_offsets): Remove declarations.
22794         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
22795         Don't include <iconv.h>, streq.h, xsize.h.
22796         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
22797         conversion.
22798         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
22799         <iconv.h>, streq.h, xsize.h.
22800         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
22801         conversion.
22802         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
22803         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
22804         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
22805         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
22806
22807 2008-05-10  Bruno Haible  <bruno@clisp.org>
22808
22809         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
22810         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
22811
22812         * modules/unilbrk/u32-width-linebreaks-tests: New file.
22813         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
22814
22815         * modules/unilbrk/u16-width-linebreaks-tests: New file.
22816         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
22817
22818         * modules/unilbrk/u8-width-linebreaks-tests: New file.
22819         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
22820
22821         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
22822         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
22823
22824         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
22825         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
22826
22827         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
22828         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
22829
22830         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
22831         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
22832
22833 2008-05-10  Bruno Haible  <bruno@clisp.org>
22834
22835         Split up 'linebreak' module.
22836         * lib/unilbrk.h: New file, based on lib/linebreak.h.
22837         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
22838         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
22839         modifications.
22840         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
22841         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
22842         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
22843         lib/linebreak.c.
22844         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
22845         lib/linebreak.c.
22846         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
22847         lib/linebreak.c.
22848         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
22849         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
22850         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
22851         lib/linebreak.c.
22852         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
22853         lib/linebreak.c.
22854         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
22855         lib/linebreak.c.
22856         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
22857         lib/linebreak.c.
22858         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
22859         lib/linebreak.c.
22860         * modules/unilbrk/base: New file.
22861         * modules/unilbrk/tables: New file.
22862         * modules/unilbrk/u8-possible-linebreaks: New file.
22863         * modules/unilbrk/u16-possible-linebreaks: New file.
22864         * modules/unilbrk/u32-possible-linebreaks: New file.
22865         * modules/unilbrk/ulc-common: New file.
22866         * modules/unilbrk/ulc-possible-linebreaks: New file.
22867         * modules/unilbrk/u8-width-linebreaks: New file.
22868         * modules/unilbrk/u16-width-linebreaks: New file.
22869         * modules/unilbrk/u32-width-linebreaks: New file.
22870         * modules/unilbrk/ulc-width-linebreaks: New file.
22871         * lib/linebreak.h: Remove file.
22872         * lib/linebreak.c: Remove file.
22873         * m4/linebreak.m4: Remove file.
22874         * modules/linebreak: Remove file.
22875         * NEWS: Mention the changes.
22876
22877 2008-05-09  Eric Blake  <ebb9@byu.net>
22878
22879         Add xmemdup0.
22880         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
22881         implementation.
22882         * lib/xmalloc.c (xmemdup0): New C implementation.
22883
22884 2008-05-08  Bruno Haible  <bruno@clisp.org>
22885
22886         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
22887
22888 2008-05-07  Eric Blake  <ebb9@byu.net>
22889
22890         Support cross-compilation of <wctype.h>.
22891         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
22892         AC_CACHE_CHECK.
22893
22894 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
22895
22896         * build-aux/vc-list-files: Add support for bzr.
22897
22898 2008-05-03  Jim Meyering  <meyering@redhat.com>
22899
22900         avoid failed assertion with tight malloc
22901         * tests/test-getndelim2.c: Correct an off-by-one assertion.
22902
22903 2008-05-03  Simon Josefsson  <simon@josefsson.org>
22904
22905         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
22906         are needed from arpa/inet.h.
22907         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
22908         Reported by Bruno Haible.
22909
22910 2008-05-02  Jim Meyering  <meyering@redhat.com>
22911
22912         avoid compilation error on FreeBSD 6
22913         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
22914
22915 2008-05-01  Jim Meyering  <meyering@redhat.com>
22916
22917         useless-if-before-free: correct --help's exit status description
22918         * build-aux/useless-if-before-free (usage): Like grep, exit 0
22919         for one or more matches, etc.  Reported by Bruno Haible.
22920
22921         vc-list-files: make the stand-alone gnulib test work
22922         * modules/vc-list-files-tests (configure.ac):
22923         Define and AC_SUBST abs_aux_dir.
22924         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
22925         $(abs_top_srcdir) to each script and having each of them
22926         duplicate the work of setting PATH, set PATH here, using
22927         the new variable, abs_aux_dir instead.
22928         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
22929         * tests/test-vc-list-files-git.sh: Likewise.
22930         Reported by Bruno Haible.
22931
22932 2008-05-01  Bruno Haible  <bruno@clisp.org>
22933
22934         * lib/getndelim2.c (getndelim2): Fix newsize computation during
22935         reallocation. Rename 'done' to 'found_delimiter'.
22936
22937 2008-05-01  Jim Meyering  <meyering@redhat.com>
22938
22939         vc-list-files: accommodate /bin/sh like the one from Solaris 10
22940         * build-aux/vc-list-files: Use `...`, not $(...).
22941
22942 2008-04-30  Jim Meyering  <meyering@redhat.com>
22943
22944         add tests for vc-list-files
22945         * modules/vc-list-files-tests: New module.
22946         * tests/test-vc-list-files-cvs.sh: New file.
22947         * tests/test-vc-list-files-git.sh: New file.
22948
22949         avoid a warning from gcc
22950         * lib/getndelim2.c (IF_LINT): Define.
22951         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
22952
22953         vc-list-files: work properly with build-aux/cvsu, too
22954         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
22955         to all cvs-based clauses.
22956
22957         vc-list-files: work properly in the CVS+awk case, too
22958         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
22959
22960         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
22961         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
22962         take more than one file argument, so .  Add quotes, just in case $dir
22963         ever contains a shell meta-character.  Prompted by Soren Hansen in
22964         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
22965
22966 2008-04-29  Eric Blake  <ebb9@byu.net>
22967
22968         Optimize getndelim2 to use block operations when possible.
22969         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
22970         freadseek, and memchr2.
22971         * lib/getndelim2.c (getndelim2): Use them for block reads.
22972
22973 2008-04-29  Bruno Haible  <bruno@clisp.org>
22974
22975         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
22976         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22977         * modules/inet_ntop (Depends-on): Add extensions.
22978         * modules/inet_pton (Depends-on): Likewise.
22979         Reported by Simon Josefsson.
22980
22981 2008-04-29  Jim Meyering  <meyering@redhat.com>
22982
22983         When the is more than one match in a block, match all of them.
22984         * build-aux/useless-if-before-free: Iterate through each block
22985         until there are no more matches.
22986
22987         Fix broken useless-if-before-free script.
22988         * build-aux/useless-if-before-free: Fix typo: missing "?" after
22989         the expression to match cast of argument to free-like function.
22990
22991 2008-04-29  Eric Blake  <ebb9@byu.net>
22992
22993         Use new header.
22994         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
22995
22996 2008-04-29  Jim Meyering  <meyering@redhat.com>
22997
22998         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
22999         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
23000         by gnulib to exist and to declare e.g., inet_ntop.
23001         Don't include "inet_ntop.h", now removed.
23002
23003         * m4/arpa_inet_h.m4: Remove trailing blanks.
23004
23005 2008-04-29  Eric Blake  <ebb9@byu.net>
23006
23007         Silence valgrind on safe reads beyond potential array bounds.
23008         * lib/rawmemchr.valgrind: New file.
23009         * lib/strchrnul.valgrind: Likewise.
23010         * modules/rawmemchr (Files): Distribute new file.
23011         * modules/strchrnul (Files): Likewise.
23012         Suggested by Bruno Haible.
23013
23014 2008-04-29  Bruno Haible  <bruno@clisp.org>
23015
23016         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
23017         (inet_ntop, inet_pton): Change portability warning's wording.
23018         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
23019         Invoke gl_CHECK_NEXT_HEADERS.
23020         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
23021         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
23022         set ARPA_INET_H.
23023         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23024         * modules/arpa_inet (Description): No longer only for systems that
23025         lack it.
23026         (Depends-on): Add include_next.
23027         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
23028         HAVE_ARPA_INET_H.
23029
23030 2008-04-29  Jim Meyering  <meyering@redhat.com>
23031
23032         * modules/mkdir (License): Re-license as LGPLv2+.
23033
23034 2008-04-29  Bruno Haible  <bruno@clisp.org>
23035
23036         * modules/rawmemchr (Maintainer): Set to Eric.
23037         * modules/strchrnul (Maintainer): Likewise.
23038
23039 2008-04-29  Simon Josefsson  <simon@josefsson.org>
23040
23041         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
23042         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
23043
23044         * modules/arpa_inet (arpa/inet.h): Use them.
23045
23046 2008-04-28  Eric Blake  <ebb9@byu.net>
23047
23048         Test getndelim2.
23049         * modules/getndelim2-tests: New file.
23050         * tests/test-getndelim2.c: Likewise.
23051         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
23052         stream.
23053         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
23054
23055         * MODULES.html.sh: Document new module.
23056
23057 2008-04-20  Bruno Haible  <bruno@clisp.org>
23058
23059         * lib/c-stack.c (die): Use raise.
23060         * modules/c-stack (Depends-on): Add raise.
23061
23062 2008-04-28  Bruno Haible  <bruno@clisp.org>
23063
23064         Expect rpmatch to be declared.
23065         * lib/yesno.c (rpmatch): Remove declaration.
23066
23067         Declare rpmatch.
23068         * lib/stdlib.in.h (rpmatch): New declaration.
23069         * lib/rpmatch.c: Include <stdlib.h> first.
23070         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
23071         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
23072         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
23073         HAVE_RPMATCH.
23074         * modules/rpmatch (Depends-on): Add stdlib, extensions.
23075         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23076         (Include): Set to <stdlib.h>.
23077         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
23078         HAVE_RPMATCH.
23079         * NEWS: Document the change.
23080
23081 2008-04-28  Bruno Haible  <bruno@clisp.org>
23082
23083         Change rpmatch to use nl_langinfo when appropriate.
23084         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
23085         (N_): New macro.
23086         (localized_pattern): New function/macro.
23087         (try): Remove match, nomatch arguments. Copy the pattern into safe
23088         memory before caching it.
23089         (rpmatch): Use localized_pattern. Add translator comments.
23090         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
23091         Suggested by Eric Blake.
23092         * modules/rpmatch (Depends-on): Add stdbool.
23093
23094 2008-04-28  Eric Blake  <ebb9@byu.net>
23095
23096         Add rawmemchr module, matching glibc.
23097         * modules/string (Makefile.am): New indicator.
23098         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
23099         * lib/string.in.h (rawmemchr): Declare when appropriate.
23100         * modules/rawmemchr: New file.
23101         * m4/rawmemchr.m4: Likewise.
23102         * lib/rawmemchr.c: Likewise.
23103         * modules/rawmemchr-tests: Likewise.
23104         * tests/test-rawmemchr.c: Likewise.
23105         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
23106         module.
23107         * modules/strchrnul (Depends-on): Add rawmemchr.
23108         * lib/strchrnul.c (strchrnul): Optimize a corner case.
23109
23110         Whitespace cleanup.
23111         * tests/test-strchrnul.c: Reindent.
23112         * lib/strchrnul.c: Likewise.
23113
23114         Optimize and test strchrnul.
23115         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
23116         * modules/strchrnul-tests: New file.
23117         * tests/test-strchrnul.c: Likewise.
23118
23119         Remove intprops dependency.
23120         * modules/memchr (Depends-on): Remove intprops.
23121         * modules/memrchr (Depends-on): Likewise.
23122         * modules/memchr2 (Depends-on): Likewise.
23123         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
23124         * lib/memrchr.c (__memrchr): Likewise.
23125         * lib/memrchr2.c (memchr2): Likewise.
23126         Reported by Simon Josefsson.
23127
23128 2008-04-28  Simon Josefsson  <simon@josefsson.org>
23129
23130         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
23131         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23132
23133 2008-04-28  Simon Josefsson  <simon@josefsson.org>
23134
23135         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
23136
23137         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
23138
23139         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
23140
23141         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
23142         declarations.
23143         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
23144
23145         * m4/inet_pton.m4: Don't check for header files.
23146
23147         * m4/inet_ntop.m4: Don't check for header files.
23148
23149 2008-04-28  Simon Josefsson  <simon@josefsson.org>
23150
23151         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
23152         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
23153         trigger for cygwin).
23154         Reported by Bruno Haible  <bruno@clisp.org>.
23155
23156 2008-04-28  Bruno Haible  <bruno@clisp.org>
23157
23158         * doc/posix-functions/strdup.texi: Mention mingw problem.
23159
23160 2008-04-27  Bruno Haible  <bruno@clisp.org>
23161
23162         * modules/stat-time-tests (Depends-on): Add sleep.
23163         * tests/test-stat-time.c (force_unlink): New function.
23164         (cleanup): Use it.
23165         (test_mtime): Remove the ctime related tests.
23166         (test_ctime): New function, containing the ctime related tests.
23167         (main): Call test_ctime, except on native Windows platforms.
23168
23169 2008-04-27  Bruno Haible  <bruno@clisp.org>
23170
23171         * lib/rpmatch.c (rpmatch): Add some comments.
23172         Reported by James Youngman <jay@gnu.org>.
23173
23174 2008-04-27  Bruno Haible  <bruno@clisp.org>
23175
23176         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
23177         quiet NaNs.
23178
23179 2008-04-27  Bruno Haible  <bruno@clisp.org>
23180
23181         Make test-yesno.sh work on mingw.
23182         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
23183         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
23184         (main): Set stdin to binary mode.
23185         * modules/yesno-tests (Depends-on): Add binary-io.
23186
23187 2008-04-27  Bruno Haible  <bruno@clisp.org>
23188
23189         Fix 'isfinite' on x86, x86_64, ia64 platforms.
23190         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
23191         argument that lie outside the IEEE 854 domain.
23192         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
23193         (gl_ISFINITE): Use it.
23194         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
23195
23196 2008-04-27  Bruno Haible  <bruno@clisp.org>
23197
23198         Allow local renaming in config.h.
23199         * lib/memrchr.c (memrchr): Don't undefine outside libc.
23200
23201 2008-04-27  Bruno Haible  <bruno@clisp.org>
23202
23203         * lib/memchr.c (__memchr): Change type of 'i'.
23204         * lib/memchr2.c (memchr2): Likewise.
23205
23206 2008-04-26  Eric Blake  <ebb9@byu.net>
23207         and Bruno Haible  <bruno@clisp.org>
23208
23209         Optimize and test memrchr.
23210         * modules/memrchr (Depends-on): Add intprops.
23211         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
23212         * modules/memrchr-tests: New file.
23213         * tests/test-memrchr.c: New file.
23214
23215 2008-04-26  Bruno Haible  <bruno@clisp.org>
23216
23217         Add tentative support for DragonFly BSD.
23218         * lib/stdio-impl.h: Add macros for DragonFly BSD.
23219         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
23220         fp.
23221         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
23222         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
23223         * lib/fpurge.c (fpurge): Likewise.
23224         * lib/freadable.c (freaadable): Likewise.
23225         * lib/freadahead.c (freadahead): Likewise.
23226         * lib/freading.c (freading): Likewise.
23227         * lib/freadptr.c (freadptr): Likewise.
23228         * lib/freadseek.c (freadptrinc): Likewise.
23229         * lib/fseeko.c (fseeko): Likewise.
23230         * lib/fseterr.c (fseterr): Likewise.
23231         * lib/fwritable.c (fwritable): Likewise.
23232         * lib/fwriting.c (fwriting): Likewise.
23233
23234 2008-04-26  Bruno Haible  <bruno@clisp.org>
23235
23236         * lib/stdio-impl.h: New file.
23237         * lib/fbufmode.c: Include stdio-impl.h.
23238         (fbufmode): Use fp_, remove redundant #defines.
23239         * lib/fflush.c: Include stdio-impl.h.
23240         (clear_ungetc_buffer): Remove redundant #defines.
23241         * lib/fpurge.c: Include stdio-impl.h.
23242         (fpurge): Remove redundant #defines.
23243         * lib/freadable.c: Include stdio-impl.h.
23244         (freadable): Remove redundant #defines.
23245         * lib/freadahead.c: Include stdio-impl.h.
23246         (freadahead): Remove redundant #defines.
23247         * lib/freading.c: Include stdio-impl.h.
23248         (freading): Remove redundant #defines.
23249         * lib/freadptr.c: Include stdio-impl.h.
23250         (freadptr): Remove redundant #defines.
23251         * lib/freadseek.c: Include stdio-impl.h.
23252         (freadptrinc): Remove redundant #defines.
23253         * lib/fseeko.c: Include stdio-impl.h.
23254         (rpl_fseeko): Remove redundant #defines.
23255         * lib/fseterr.c: Include stdio-impl.h.
23256         (fseterr): Remove redundant #defines.
23257         * lib/fwritable.c: Include stdio-impl.h.
23258         (fwritable: Remove redundant #defines.
23259         * lib/fwriting.c: Include stdio-impl.h.
23260         (fwriting): Remove redundant #defines.
23261         * modules/fbufmode (Files): Add lib/stdio-impl.h.
23262         * modules/fflush (Files): Likewise.
23263         * modules/fpurge (Files): Likewise.
23264         * modules/freadable (Files): Likewise.
23265         * modules/freadahead (Files): Likewise.
23266         * modules/freading (Files): Likewise.
23267         * modules/freadptr (Files): Likewise.
23268         * modules/freadseek (Files): Likewise.
23269         * modules/fseeko (Files): Likewise.
23270         * modules/fseterr (Files): Likewise.
23271         * modules/fwritable (Files): Likewise.
23272         * modules/fwriting (Files): Likewise.
23273
23274 2008-04-26  Bruno Haible  <bruno@clisp.org>
23275
23276         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
23277         restore_seek_optimization, update_fpos_cache): New functions, extracted
23278         from rpl_fflush.
23279         (rpl_fflush): Use them.
23280         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
23281         (gl_REPLACE_FFLUSH): Use it.
23282
23283 2008-04-26  Bruno Haible  <bruno@clisp.org>
23284
23285         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
23286         on Solaris.
23287         * tests/test-xstrtoimax.sh: Likewise.
23288         * tests/test-xstrtoumax.sh: Likewise.
23289         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23290
23291 2008-04-26  Bruno Haible  <bruno@clisp.org>
23292
23293         * modules/memchr-tests: New file.
23294         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
23295
23296 2008-04-26  Eric Blake  <ebb9@byu.net>
23297             Bruno Haible  <bruno@clisp.org>
23298
23299         * lib/memchr.c: Include intprops.h.
23300         (__memchr): Optimize parallel detection of matching bytes. Rename local
23301         variables. Add explanatory comments.
23302
23303 2008-04-26  Bruno Haible  <bruno@clisp.org>
23304
23305         Fix module 'memchr', broken since 2000-10-28.
23306         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
23307
23308 2008-04-26  Bruno Haible  <bruno@clisp.org>
23309
23310         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
23311         comments.
23312
23313 2008-04-25  Eric Blake  <ebb9@byu.net>
23314
23315         Use native fstatat on cygwin 1.7.0.
23316         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
23317         first.
23318
23319 2008-04-23  Eric Blake  <ebb9@byu.net>
23320
23321         Improve memchr2 performance.
23322         * lib/memchr2.c (memchr2): Further optimize parallel detection of
23323         NUL bytes.
23324         * modules/memchr2 (Depends-on): Use intprops.h.
23325
23326 2008-04-23  Simon Josefsson  <simon@josefsson.org>
23327
23328         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
23329         an inline function instead of a CPP macro.  Patch by Ben Pfaff
23330         <blp@cs.stanford.edu>.
23331
23332 2008-04-23  Simon Josefsson  <simon@josefsson.org>
23333
23334         * lib/arpa_inet.in.h: New file.
23335
23336         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
23337         (Makefile.am): Sed in substitute header file.
23338
23339         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
23340         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
23341
23342         * modules/inet_ntop (configure.ac): Use
23343         gl_ARPA_INET_MODULE_INDICATOR.
23344
23345         * modules/inet_pton (configure.ac): Use
23346         gl_ARPA_INET_MODULE_INDICATOR.
23347
23348 2008-04-22  Jim Meyering  <meyering@redhat.com>
23349
23350         * modules/verify (License): Re-license as LGPLv2+.
23351
23352 2008-04-22  Simon Josefsson  <simon@josefsson.org>
23353
23354         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
23355         parameter to void* as per POSIX standard (MinGW uses char*).
23356
23357 2008-04-21  Bruno Haible  <bruno@clisp.org>
23358
23359         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23360         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
23361         Define to replacements if REPLACE_ISWCNTRL is 1.
23362         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
23363         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
23364         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
23365         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
23366         what it fixes.
23367         * doc/posix-functions/iswalpha.texi: Likewise.
23368         * doc/posix-functions/iswblank.texi: Likewise.
23369         * doc/posix-functions/iswcntrl.texi: Likewise.
23370         * doc/posix-functions/iswdigit.texi: Likewise.
23371         * doc/posix-functions/iswgraph.texi: Likewise.
23372         * doc/posix-functions/iswlower.texi: Likewise.
23373         * doc/posix-functions/iswprint.texi: Likewise.
23374         * doc/posix-functions/iswpunct.texi: Likewise.
23375         * doc/posix-functions/iswspace.texi: Likewise.
23376         * doc/posix-functions/iswupper.texi: Likewise.
23377         * doc/posix-functions/iswxdigit.texi: Likewise.
23378         Reported by Alain Guibert.
23379
23380 2008-04-21  Bruno Haible  <bruno@clisp.org>
23381
23382         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
23383         Patch by Alain Guibert.
23384
23385 2008-04-21  Bruno Haible  <bruno@clisp.org>
23386
23387         Fix test failures on mingw.
23388         * tests/test-xstrtol.c (print_no_progname): New function.
23389         (main): Install it in error_print_progname hook.
23390         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
23391         * tests/test-xstrtoimax.sh: Likewise.
23392         * tests/test-xstrtoumax.sh: Likewise.
23393
23394 2008-04-21  Bruno Haible  <bruno@clisp.org>
23395
23396         Fix test failure on mingw.
23397         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
23398
23399 2008-04-21  Bruno Haible  <bruno@clisp.org>
23400
23401         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
23402         Actually assign a value.
23403
23404 2008-04-20  Bruno Haible  <bruno@clisp.org>
23405
23406         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
23407         take 2.
23408         * lib/canonicalize.c (canonicalize_file_name): Elide if the
23409         'canonicalize-lgpl' module is also used.
23410         * lib/canonicalize-lgpl.c: Undo last change.
23411         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
23412
23413 2008-04-20  Bruno Haible  <bruno@clisp.org>
23414
23415         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
23416         config.h. Provide _mkdir based fallback for mingw.
23417         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
23418         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
23419         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
23420         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
23421         rather than defining mkdir in config.h.
23422         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
23423         (gl_SYS_STAT_H_DEFAULTS): New macro.
23424         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
23425         HAVE_IO_H any more.
23426         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
23427         HAVE_DECL_MKDIR and HAVE_IO_H.
23428
23429 2008-04-20  Bruno Haible  <bruno@clisp.org>
23430
23431         * lib/isapipe.c: Port to native Windows platforms.
23432
23433 2008-04-20  Bruno Haible  <bruno@clisp.org>
23434
23435         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
23436
23437 2008-04-21  Eric Blake  <ebb9@byu.net>
23438
23439         Work around preprocessors that don't handle UINTMAX_MAX.
23440         * lib/memchr2.c (memchr2): Avoid embedded #if.
23441         Reported by Alain Guibert, fix suggested by Bruno Haible.
23442
23443 2008-04-21  Simon Josefsson  <simon@josefsson.org>
23444
23445         * doc/posix-functions/strftime.texi (strftime): Explain better
23446         Windows incompatibility.  Suggested by Micah Cowan
23447         <micah@cowan.name>.
23448
23449 2008-04-20  Bruno Haible  <bruno@clisp.org>
23450
23451         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
23452         unistr/u8-mblen.
23453
23454 2008-04-20  Bruno Haible  <bruno@clisp.org>
23455
23456         Fix test failure on platforms with non-GNU iconv.
23457         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
23458         (U_TO_U8): Use it, rather than u16_to_u8.
23459         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
23460         units at the end of the input string.
23461         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
23462
23463 2008-04-20  Bruno Haible  <bruno@clisp.org>
23464
23465         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
23466         when the resulting length is 0.
23467         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
23468
23469 2008-04-20  Bruno Haible  <bruno@clisp.org>
23470
23471         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
23472         works.
23473         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
23474
23475 2008-04-20  Bruno Haible  <bruno@clisp.org>
23476
23477         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
23478         * modules/tsearch-tests (configure.ac): Test for initstate function.
23479
23480 2008-04-20  Bruno Haible  <bruno@clisp.org>
23481
23482         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
23483         for nlink_t if missing.
23484         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
23485
23486 2008-04-19  Bruno Haible  <bruno@clisp.org>
23487
23488         Work around snprintf bug on Linux libc5.
23489         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
23490         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
23491         gl_SNPRINTF_SIZE1.
23492         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23493         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
23494         that test failed.
23495         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
23496         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
23497         * modules/snprintf (Files): Add m4/printf.m4.
23498         * modules/vsnprintf (Files): Likewise.
23499         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
23500         * doc/posix-functions/vsnprintf.texi: Likewise.
23501
23502 2008-04-19  Bruno Haible  <bruno@clisp.org>
23503
23504         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
23505         from 0.0058 to less than 10^-7.
23506
23507 2008-04-19  Bruno Haible  <bruno@clisp.org>
23508
23509         Fix rounding when a precision is given.
23510         * lib/vasnprintf.c (is_borderline): New function.
23511         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
23512         9...9x.
23513         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
23514         %e, %g.
23515         * tests/test-vasprintf-posix.c (test_function): Likewise.
23516         * tests/test-snprintf-posix.h (test_function): Likewise.
23517         * tests/test-sprintf-posix.h (test_function): Likewise.
23518         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
23519         * tests/test-printf-posix.h (test_function): Likewise.
23520         * tests/test-printf-posix.output: Update.
23521         Reported by John Darrington <john@darrington.wattle.id.au> via
23522         Ben Pfaff <blp@cs.stanford.edu>.
23523
23524 2008-04-18  Simon Josefsson  <simon@josefsson.org>
23525
23526         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
23527         Suggested by Bruno Haible <bruno@clisp.org>.
23528
23529 2008-04-17  Bruno Haible  <bruno@clisp.org>
23530
23531         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
23532         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
23533         implementation.
23534         Patch by Bruce Merry <bmerry@gmail.com>.
23535
23536 2008-04-17  Simon Josefsson  <simon@josefsson.org>
23537
23538         * doc/posix-functions/strftime.texi (strftime): Mention that %e
23539         doesn't work under Windows.
23540
23541 2008-04-16  Bruno Haible  <bruno@clisp.org>
23542
23543         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
23544         New macros.
23545         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
23546         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
23547         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
23548         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
23549         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
23550         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
23551         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
23552         macros.
23553         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
23554         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
23555         Northern Sotho, Uighur.
23556
23557 2008-04-16  Bruno Haible  <bruno@clisp.org>
23558
23559         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
23560         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
23561         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
23562         Reported by Daniel Bergström <daniel@octocode.com>.
23563
23564 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
23565             Bruno Haible  <bruno@clisp.org>
23566
23567         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
23568         function.
23569         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
23570         New functions, mostly extracted from gl_locale_name_default.
23571         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
23572
23573 2008-04-16  Eric Blake  <ebb9@byu.net>
23574
23575         Adjust strtod detection to catch glibc 2.7 bug.
23576         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
23577         Reported by John Gatewood Ham.
23578
23579 2008-04-16  Bruno Haible  <bruno@clisp.org>
23580
23581         Add tentative support for Linux libc5.
23582         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
23583         * lib/fpurge.c (fpurge): Likewise.
23584         * lib/freadable.c (freadable): Likewise.
23585         * lib/freadahead.c (freadahead): Likewise.
23586         * lib/freading.c (freading): Likewise.
23587         * lib/freadptr.c (freadptr): Likewise.
23588         * lib/freadseek.c (freadptrinc): Likewise.
23589         * lib/fseeko.c (rpl_fseeko): Likewise.
23590         * lib/fseterr.c (fseterr): Likewise.
23591         * lib/fwritable.c (fwritable): Likewise.
23592         * lib/fwriting.c (fwriting): Likewise.
23593         Reported by Alain Guibert <alguibert+bts@free.fr>.
23594
23595 2008-04-15  Bruno Haible  <bruno@clisp.org>
23596
23597         * modules/mathl (configure.ac): Define module indicator.
23598
23599 2008-04-15  Bruno Haible  <bruno@clisp.org>
23600
23601         * lib/logl.c (logl): Remove unused variables.
23602
23603 2008-04-15  Bruno Haible  <bruno@clisp.org>
23604
23605         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
23606         fails.
23607
23608 2008-04-15  Bruno Haible  <bruno@clisp.org>
23609
23610         * lib/trim.c (trim2): Fix argument of isspace() macro.
23611
23612 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
23613
23614         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
23615         to 0.
23616         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
23617
23618 2008-04-14  Bruno Haible  <bruno@clisp.org>
23619
23620         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
23621         AC_LANG_PROGRAM argument.
23622         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
23623         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
23624         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23625         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23626         * m4/math_h.m4 (gl_MATH_H): Likewise.
23627         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
23628         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23629         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
23630         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
23631         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23632         * m4/regex.m4 (gl_REGEX): Likewise.
23633         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
23634         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
23635         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23636         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
23637         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
23638         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23639         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23640         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23641
23642 2008-04-14  Jim Meyering  <meyering@redhat.com>
23643
23644         test-strtod: fix typos: s/abs/fabs/
23645         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
23646
23647 2008-04-13  Bruno Haible  <bruno@clisp.org>
23648
23649         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
23650         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
23651         module is also used and while not building the reloc-wrapper.
23652
23653 2008-04-13  Bruno Haible  <bruno@clisp.org>
23654
23655         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
23656
23657 2008-04-13  Bruno Haible  <bruno@clisp.org>
23658
23659         Fix AIX compilation failure introduced on 2008-04-02.
23660         * tests/test-frexp.c (exp): Undefine before redefining.
23661         * tests/test-frexpl.c (exp): Likewise.
23662
23663 2008-04-13  Bruno Haible  <bruno@clisp.org>
23664
23665         Work around a HP-UX stdio bug.
23666         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
23667         * tests/test-ftello.c (main): Likewise.
23668         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
23669         * doc/posix-functions/ftello.texi: Likewise.
23670
23671 2008-04-13  Bruno Haible  <bruno@clisp.org>
23672
23673         Make test-signbit pass on HP-UX/hppa.
23674         * tests/test-signbit.c (minus_zerol): New variable.
23675         (test_signbitl): Use it.
23676
23677 2008-04-13  Bruno Haible  <bruno@clisp.org>
23678
23679         Make truncl work on OSF/1 4.0.
23680         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
23681         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
23682         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
23683         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
23684         HAVE_DECL_TRUNCL.
23685         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
23686         HAVE_DECL_TRUNCL.
23687         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
23688
23689 2008-04-13  Bruno Haible  <bruno@clisp.org>
23690
23691         * lib/unictype.h: Remove trailing comma from enumeration definitions.
23692
23693 2008-04-13  Bruno Haible  <bruno@clisp.org>
23694
23695         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
23696         expression, so as to avoid HP-UX 11 cc compiler bug.
23697
23698 2008-04-13  Bruno Haible  <bruno@clisp.org>
23699
23700         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
23701
23702 2008-04-13  Bruno Haible  <bruno@clisp.org>
23703
23704         * lib/git-merge-changelog.c: Remove empty declaration outside of
23705         functions.
23706
23707 2008-04-13  Bruno Haible  <bruno@clisp.org>
23708
23709         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
23710
23711 2008-04-13  Bruno Haible  <bruno@clisp.org>
23712
23713         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
23714         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
23715         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
23716         also if it exists but lacks definitions of the SHUT_* macros.
23717         * modules/sys_socket (Description): Update.
23718         Reported by Elbert Pol <e.pol@chello.nl>.
23719
23720 2008-04-13  Bruno Haible  <bruno@clisp.org>
23721
23722         * lib/localcharset.c (OS2): Don't redefine if already defined.
23723         Reported by Elbert Pol <e.pol@chello.nl>.
23724
23725 2008-04-13  Bruno Haible  <bruno@clisp.org>
23726
23727         * lib/binary-io.h [__EMX__]: Include <io.h>.
23728         Reported by Elbert Pol <e.pol@chello.nl>.
23729
23730 2008-04-12  Bruno Haible  <bruno@clisp.org>
23731
23732         * lib/fpucw.h: Enable the definitions also for x86_64.
23733         Needed for NetBSD/x86_64.
23734         Reported by Thomas Klausner <tk@giga.or.at>.
23735
23736 2008-04-12  Bruno Haible  <bruno@clisp.org>
23737
23738         * tests/test-strtod.c: Include isnand.h.
23739         (main): Use isnand instead of isnan.
23740         Reported by Jim Meyering.
23741
23742 2008-04-12  Bruno Haible  <bruno@clisp.org>
23743
23744         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
23745         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
23746
23747 2008-04-12  Jim Meyering  <meyering@redhat.com>
23748
23749         * m4/math_h.m4 (gl_MATH_H): Fix typos.
23750
23751 2008-04-12  Bruno Haible  <bruno@clisp.org>
23752
23753         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
23754         Reported by Elbert Pol <e.pol@chello.nl>.
23755
23756 2008-04-12  Eric Blake  <ebb9@byu.net>
23757
23758         Work around Solaris 10 math.h bug.
23759         * m4/math_h.m4 (gl_MATH_H): Check for bug.
23760         (gl_MATH_H_DEFAULTS): Set up default.
23761         * modules/math (Makefile.am): Replace new indicators.
23762         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
23763         * tests/test-math.c (main): Test this.
23764         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
23765         * doc/posix-headers/math.texi (math.h): Mention bug.
23766         Reported by Nelson H. F. Beebe and Jim Meyering.
23767
23768 2008-04-11  Bruno Haible  <bruno@clisp.org>
23769
23770         Adapt to future versions of Apple GCC.
23771         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
23772         Reported by Peter O'Gorman <peter@pogma.com>.
23773
23774 2008-04-11  Bruno Haible  <bruno@clisp.org>
23775
23776         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
23777
23778 2008-04-11  Bruno Haible  <bruno@clisp.org>
23779
23780         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
23781
23782         * modules/getaddrinfo-tests (Makefile.am): Define
23783         test_getaddrinfo_LDADD.
23784
23785 2008-04-11  Bruno Haible  <bruno@clisp.org>
23786
23787         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
23788         (init): Fix syntax error.
23789         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
23790         is declared.
23791
23792 2008-04-11  Bruno Haible  <bruno@clisp.org>
23793
23794         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
23795         * modules/glob (Depends-on): Add stdbool.
23796
23797 2008-04-11  Bruno Haible  <bruno@clisp.org>
23798
23799         * lib/trim.c: Include <string.h>.
23800
23801 2008-04-11  Eric Blake  <ebb9@byu.net>
23802
23803         Avoid compile failure on OS/2.
23804         * lib/regex_internal.h (internal_function): Disable optimization
23805         on OS/2 (__EMX__), where it caused compiler error.
23806         Reported by Elbert Pol.
23807
23808 2008-04-11  Bruno Haible  <bruno@clisp.org>
23809
23810         Flush the standard error stream before aborting. Needed on mingw.
23811         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
23812         * tests/test-array_list.c (ASSERT): Likewise.
23813         * tests/test-array_oset.c (ASSERT): Likewise.
23814         * tests/test-avltree_list.c (ASSERT): Likewise.
23815         * tests/test-avltree_oset.c (ASSERT): Likewise.
23816         * tests/test-avltreehash_list.c (ASSERT): Likewise.
23817         * tests/test-binary-io.c (ASSERT): Likewise.
23818         * tests/test-byteswap.c (ASSERT): Likewise.
23819         * tests/test-c-ctype.c (ASSERT): Likewise.
23820         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
23821         * tests/test-c-strcasestr.c (ASSERT): Likewise.
23822         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
23823         * tests/test-c-strstr.c (ASSERT): Likewise.
23824         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
23825         * tests/test-canonicalize.c (ASSERT): Likewise.
23826         * tests/test-carray_list.c (ASSERT): Likewise.
23827         * tests/test-ceilf1.c (ASSERT): Likewise.
23828         * tests/test-ceilf2.c (ASSERT): Likewise.
23829         * tests/test-ceill.c (ASSERT): Likewise.
23830         * tests/test-count-one-bits.c (ASSERT): Likewise.
23831         * tests/test-fbufmode.c (ASSERT): Likewise.
23832         * tests/test-fflush2.c (ASSERT): Likewise.
23833         * tests/test-floorf1.c (ASSERT): Likewise.
23834         * tests/test-floorf2.c (ASSERT): Likewise.
23835         * tests/test-floorl.c (ASSERT): Likewise.
23836         * tests/test-fopen.c (ASSERT): Likewise.
23837         * tests/test-fpending.c (ASSERT): Likewise.
23838         * tests/test-fprintf-posix.c (ASSERT): Likewise.
23839         * tests/test-fpurge.c (ASSERT): Likewise.
23840         * tests/test-freadable.c (ASSERT): Likewise.
23841         * tests/test-freadahead.c (ASSERT): Likewise.
23842         * tests/test-freading.c (ASSERT): Likewise.
23843         * tests/test-freadptr.c (ASSERT): Likewise.
23844         * tests/test-freadptr2.c (ASSERT): Likewise.
23845         * tests/test-freadseek.c (ASSERT): Likewise.
23846         * tests/test-freopen.c (ASSERT): Likewise.
23847         * tests/test-frexp.c (ASSERT): Likewise.
23848         * tests/test-frexpl.c (ASSERT): Likewise.
23849         * tests/test-fseek.c (ASSERT): Likewise.
23850         * tests/test-fseeko.c (ASSERT): Likewise.
23851         * tests/test-fstrcmp.c (ASSERT): Likewise.
23852         * tests/test-ftell.c (ASSERT): Likewise.
23853         * tests/test-ftello.c (ASSERT): Likewise.
23854         * tests/test-func.c (ASSERT): Likewise.
23855         * tests/test-fwritable.c (ASSERT): Likewise.
23856         * tests/test-fwriting.c (ASSERT): Likewise.
23857         * tests/test-getdelim.c (ASSERT): Likewise.
23858         * tests/test-getline.c (ASSERT): Likewise.
23859         * tests/test-i-ring.c (ASSERT): Likewise.
23860         * tests/test-iconv-utf.c (ASSERT): Likewise.
23861         * tests/test-iconv.c (ASSERT): Likewise.
23862         * tests/test-isfinite.c (ASSERT): Likewise.
23863         * tests/test-isnand.c (ASSERT): Likewise.
23864         * tests/test-isnanf.c (ASSERT): Likewise.
23865         * tests/test-isnanl.h (ASSERT): Likewise.
23866         * tests/test-ldexpl.c (ASSERT): Likewise.
23867         * tests/test-linked_list.c (ASSERT): Likewise.
23868         * tests/test-linkedhash_list.c (ASSERT): Likewise.
23869         * tests/test-localename.c (ASSERT): Likewise.
23870         * tests/test-lseek.c (ASSERT): Likewise.
23871         * tests/test-mbscasecmp.c (ASSERT): Likewise.
23872         * tests/test-mbscasestr1.c (ASSERT): Likewise.
23873         * tests/test-mbscasestr2.c (ASSERT): Likewise.
23874         * tests/test-mbscasestr3.c (ASSERT): Likewise.
23875         * tests/test-mbscasestr4.c (ASSERT): Likewise.
23876         * tests/test-mbschr.c (ASSERT): Likewise.
23877         * tests/test-mbscspn.c (ASSERT): Likewise.
23878         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
23879         * tests/test-mbspbrk.c (ASSERT): Likewise.
23880         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
23881         * tests/test-mbsrchr.c (ASSERT): Likewise.
23882         * tests/test-mbsspn.c (ASSERT): Likewise.
23883         * tests/test-mbsstr1.c (ASSERT): Likewise.
23884         * tests/test-mbsstr2.c (ASSERT): Likewise.
23885         * tests/test-mbsstr3.c (ASSERT): Likewise.
23886         * tests/test-memchr2.c (ASSERT): Likewise.
23887         * tests/test-memmem.c (ASSERT): Likewise.
23888         * tests/test-open.c (ASSERT): Likewise.
23889         * tests/test-printf-frexp.c (ASSERT): Likewise.
23890         * tests/test-printf-frexpl.c (ASSERT): Likewise.
23891         * tests/test-printf-posix.c (ASSERT): Likewise.
23892         * tests/test-quotearg.c (ASSERT): Likewise.
23893         * tests/test-rbtree_list.c (ASSERT): Likewise.
23894         * tests/test-rbtree_oset.c (ASSERT): Likewise.
23895         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
23896         * tests/test-round1.c (ASSERT): Likewise.
23897         * tests/test-roundf1.c (ASSERT): Likewise.
23898         * tests/test-roundl.c (ASSERT): Likewise.
23899         * tests/test-signbit.c (ASSERT): Likewise.
23900         * tests/test-sleep.c (ASSERT): Likewise.
23901         * tests/test-snprintf-posix.c (ASSERT): Likewise.
23902         * tests/test-snprintf.c (ASSERT): Likewise.
23903         * tests/test-sprintf-posix.c (ASSERT): Likewise.
23904         * tests/test-stat-time.c (ASSERT): Likewise.
23905         * tests/test-strcasestr.c (ASSERT): Likewise.
23906         * tests/test-strerror.c (ASSERT): Likewise.
23907         * tests/test-striconv.c (ASSERT): Likewise.
23908         * tests/test-striconveh.c (ASSERT): Likewise.
23909         * tests/test-striconveha.c (ASSERT): Likewise.
23910         * tests/test-strsignal.c (ASSERT): Likewise.
23911         * tests/test-strstr.c (ASSERT): Likewise.
23912         * tests/test-strtod.c (ASSERT): Likewise.
23913         * tests/test-trunc1.c (ASSERT): Likewise.
23914         * tests/test-trunc2.c (ASSERT): Likewise.
23915         * tests/test-truncf1.c (ASSERT): Likewise.
23916         * tests/test-truncf2.c (ASSERT): Likewise.
23917         * tests/test-truncl.c (ASSERT): Likewise.
23918         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
23919         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
23920         * tests/test-vasnprintf.c (ASSERT): Likewise.
23921         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
23922         * tests/test-vasprintf.c (ASSERT): Likewise.
23923         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
23924         * tests/test-vprintf-posix.c (ASSERT): Likewise.
23925         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
23926         * tests/test-vsnprintf.c (ASSERT): Likewise.
23927         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
23928         * tests/test-wcwidth.c (ASSERT): Likewise.
23929         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
23930         * tests/test-xprintf-posix.c (ASSERT): Likewise.
23931         * tests/test-xvasprintf.c (ASSERT): Likewise.
23932         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
23933         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
23934         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
23935         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
23936         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
23937         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
23938         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
23939         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
23940         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
23941         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
23942         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
23943         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
23944         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
23945         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
23946         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
23947         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
23948         * tests/unictype/test-block_list.c (ASSERT): Likewise.
23949         * tests/unictype/test-block_of.c (ASSERT): Likewise.
23950         * tests/unictype/test-block_test.c (ASSERT): Likewise.
23951         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
23952         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
23953         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
23954         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
23955         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
23956         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
23957         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
23958         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
23959         * tests/unictype/test-combining.c (ASSERT): Likewise.
23960         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
23961         * tests/unictype/test-digit.c (ASSERT): Likewise.
23962         * tests/unictype/test-mirror.c (ASSERT): Likewise.
23963         * tests/unictype/test-numeric.c (ASSERT): Likewise.
23964         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
23965         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
23966         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
23967         * tests/unictype/test-scripts.c (ASSERT): Likewise.
23968         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
23969         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
23970         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
23971         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
23972         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
23973         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
23974         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
23975         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
23976         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
23977         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
23978         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
23979         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
23980         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
23981         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
23982         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
23983         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
23984         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
23985         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
23986         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
23987         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
23988         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
23989         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
23990         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
23991         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
23992         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
23993         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
23994         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
23995         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
23996         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
23997         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
23998         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
23999         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
24000         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
24001         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
24002         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
24003         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
24004         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
24005         Reported by Eric Blake.
24006
24007 2008-04-11  Bruno Haible  <bruno@clisp.org>
24008
24009         * lib/wchar.in.h: Tweak comment.
24010
24011 2008-04-11  Bruno Haible  <bruno@clisp.org>
24012
24013         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
24014         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
24015         gl_COMMON.
24016         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
24017
24018 2008-04-11  Bruno Haible  <bruno@clisp.org>
24019
24020         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
24021
24022 2008-04-11  Simon Josefsson  <simon@josefsson.org>
24023
24024         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
24025         of attempting to use non-existing /dev/*random.  Based on patch
24026         from Adam Strzelecki <ono@java.pl> in
24027         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
24028
24029 2008-04-08  Bruno Haible  <bruno@clisp.org>
24030
24031         Add tentative support for emx+gcc.
24032         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
24033         * lib/fpurge.c (fpurge): Likewise.
24034         * lib/freadable.c (freadable): Likewise.
24035         * lib/freadahead.c (freadahead): Likewise.
24036         * lib/freading.c (freading): Likewise.
24037         * lib/freadptr.c (freadptr): Likewise.
24038         * lib/freadseek.c (freadptrinc): Likewise.
24039         * lib/fseeko.c (rpl_fseeko): Likewise.
24040         * lib/fseterr.c (fseterr): Likewise.
24041         * lib/fwritable.c (fwritable): Likewise.
24042         * lib/fwriting.c (fwriting): Likewise.
24043         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
24044
24045 2008-04-09  Eric Blake  <ebb9@byu.net>
24046
24047         Avoid some autoconf warnings.
24048         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
24049         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
24050         * m4/afs.m4 (gl_AFS): Likewise.
24051         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
24052         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
24053         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24054         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
24055         (gl_INTEGER_TYPE_SUFFIX): Likewise.
24056         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
24057         (AC_CHECK_DECLS_ONCE): Likewise.
24058         Rename file...
24059         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
24060         gnulib-tool requires autoconf 2.59 or better.
24061         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
24062
24063 2008-04-08  Eric Blake  <ebb9@byu.net>
24064
24065         Use 'git describe --match' if present (added in git 1.5.5).
24066         * build-aux/git-version-gen: Limit result to tags that match 'v*'
24067         if possible.
24068
24069 2008-04-08  Bruno Haible  <bruno@clisp.org>
24070
24071         Add tentative support for OpenServer.
24072         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
24073         _ptr, _cnt.
24074         * lib/fpurge.c (fpurge): Likewise.
24075         * lib/freadable.c (freadable): Likewise.
24076         * lib/freadahead.c (freadahead): Likewise.
24077         * lib/freading.c (freading): Likewise.
24078         * lib/freadptr.c (freadptr): Likewise.
24079         * lib/freadseek.c (freadptrinc): Likewise.
24080         * lib/fseeko.c (rpl_fseeko): Likewise.
24081         * lib/fseterr.c (fseterr): Likewise.
24082         * lib/fwritable.c (fwritable): Likewise.
24083         * lib/fwriting.c (fwriting): Likewise.
24084         Reported by Roger Cornelius <rac@tenzing.org> and
24085         Brian K. White <brian@aljex.com>.
24086
24087 2008-04-06  Jim Meyering  <meyering@redhat.com>
24088
24089         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
24090
24091 2008-04-06  Bruno Haible  <bruno@clisp.org>
24092
24093         Avoid possible error with non-ASCII bytes in UTF-8 locales.
24094         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
24095         * tests/test-printf-posix.sh: Likewise.
24096         * tests/test-vfprintf-posix.sh: Likewise.
24097         * tests/test-vprintf-posix.sh: Likewise.
24098         * tests/test-xprintf-posix.sh: Likewise.
24099
24100 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24101
24102         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
24103         hide error from 'ls', needed on OS/2.
24104         Report by Elbert Pol <elbert.pol@gmail.com>.
24105
24106 2008-04-04  Eric Blake  <ebb9@byu.net>
24107
24108         Make test-fseeko.c failures meaningful.
24109         * tests/test-fseeko.c: Print line number on failure.
24110         * tests/test-fseek.c: Likewise.
24111         Reported by Nelson H. F. Beebe.
24112
24113         Improve strtod bug detection check.
24114         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
24115         required for Solaris 10.
24116         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
24117
24118 2008-04-04  Bruno Haible  <bruno@clisp.org>
24119
24120         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
24121         by m4/setenv.m4.
24122
24123 2008-04-03  Eric Blake  <ebb9@byu.net>
24124
24125         Ensure sane .version contents.
24126         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
24127         version string.
24128         * build-aux/git-version-gen: Improve documentation.
24129
24130         Make GNU make output nicer.
24131         * top/GNUmakefile [!_have-Makefile]: Add dependency on
24132         MAKECMDGOALS to enforce message for all command line targets.  Set
24133         srcdir for use in maint.mk.
24134
24135         Another maintainer tweak.
24136         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
24137         a target that regenerates version.
24138
24139 2008-04-03  Jim Meyering  <meyering@redhat.com>
24140
24141         vc-list-files: don't cause coreutils "make po-check" failure
24142         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
24143
24144 2008-04-03  Eric Blake  <ebb9@byu.net>
24145
24146         Allow VPATH usage of vc-list-files.
24147         * build-aux/vc-list-files (scriptversion): Add timestamp.
24148         (options): Add --help, --version, -C.
24149         (CVS): Support installed cvsu.
24150
24151 2008-04-02  Bruno Haible  <bruno@clisp.org>
24152
24153         Avoid some "statement with no effect" warnings from gcc.
24154         * tests/test-wctype.c (main): Explicitly ignore unused values.
24155         Reported by Jim Meyering.
24156
24157 2008-04-02  Jim Meyering  <meyering@redhat.com>
24158
24159         Avoid some warnings from "gcc -Wshadow".
24160         * tests/test-frexp.c (exp): Define to a different identifier.
24161         * tests/test-frexpl.c (exp): Likewise.
24162
24163 2008-04-03  Jim Meyering  <meyering@redhat.com>
24164
24165         bootstrap: remove dangling *.[ch] symlinks from lib
24166         * build-aux/bootstrap [dangling symlink removal]: Move find's
24167         -depth option to precede all others, to avoid a warning.
24168         Remove *.[ch] files too, and from "$source_base" (usually lib/).
24169
24170 2008-04-02  Bruno Haible  <bruno@clisp.org>
24171
24172         Avoid some warnings from "gcc -Wshadow".
24173         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
24174         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
24175         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
24176         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
24177         Reported by Jim Meyering.
24178
24179 2008-04-01  Bruno Haible  <bruno@clisp.org>
24180
24181         Fix test to work on IRIX 6.5 with cc.
24182         * tests/test-math.c (numeric_equal): New function.
24183         (main): Use it.
24184
24185 2008-04-01  Bruno Haible  <bruno@clisp.org>
24186
24187         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
24188
24189 2008-04-01  Bruno Haible  <bruno@clisp.org>
24190
24191         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
24192         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24193         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
24194         (Depends-on): Remove math.
24195
24196         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
24197         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24198         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
24199         (Depends-on): Remove math.
24200
24201         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
24202         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24203         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
24204         (Depends-on): Remove math.
24205         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
24206         (Depends-on): Remove math.
24207
24208         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
24209         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24210         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
24211         (Depends-on): Remove math.
24212         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
24213         (Depends-on): Remove math.
24214
24215         * tests/test-round1.c: Include nan.h.
24216         (main): Use NaNd instead of NAN.
24217         * modules/round-tests (Files): Add tests/nan.h.
24218
24219         * tests/test-trunc1.c: Include nan.h.
24220         (main): Use NaNd instead of NAN.
24221         * modules/trunc-tests (Files): Add tests/nan.h.
24222
24223         * tests/test-roundf1.c: Include nan.h.
24224         (main): Use NaNf instead of NAN.
24225         * modules/roundf-tests (Files): Add tests/nan.h.
24226
24227         * tests/test-truncf1.c: Include nan.h.
24228         (main): Use NaNf instead of NAN.
24229         * modules/truncf-tests (Files): Add tests/nan.h.
24230
24231         * tests/test-ceilf1.c: Include nan.h.
24232         (main): Use NaNf instead of NAN.
24233         * modules/ceilf-tests (Files): Add tests/nan.h.
24234
24235         * tests/test-floorf1.c: Include nan.h.
24236         (main): Use NaNf instead of NAN.
24237         * modules/floorf-tests (Files): Add tests/nan.h.
24238
24239         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
24240         (main): Use NaNf instead of NAN.
24241         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
24242
24243         * tests/test-isnand.c: Include nan.h instead of <math.h>.
24244         (main): Use NaNd instead of NAN.
24245         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
24246
24247         * tests/test-frexp.c: Include nan.h.
24248         (main): Use NaNd instead of NAN.
24249         * modules/frexp-tests (Files): Add tests/nan.h.
24250
24251         * lib/isnan.c: Don't include <math.h>.
24252         (FUNC): Don't use NAN macro.
24253         * modules/isnand-nolibm (Depends-on): Remove math.
24254         * modules/isnanf-nolibm (Depends-on): Remove math.
24255         * modules/isnanl (Depends-on): Remove math.
24256         * modules/isnanl-nolibm (Depends-on): Remove math.
24257
24258         * tests/nan.h: New file.
24259
24260 2008-04-01  Eric Blake  <ebb9@byu.net>
24261
24262         Fix typos.
24263         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
24264         values to be the right type.
24265
24266         For now, cater to gnulib strtod inaccuracies.
24267         * tests/test-strtod.c (main): Allow 1-ulp error on expected
24268         fractional results.  While not as nice from a QoI perspective, it
24269         is a quicker patch than correctly implementing decimal to binary
24270         rounding.
24271
24272 2008-03-31  Eric Blake  <ebb9@byu.net>
24273
24274         Guarantee a definition of NAN.
24275         * lib/math.in.h (NAN): Define if missing.
24276         * tests/test-math.c (main): Test it.
24277         * doc/posix-headers/math.texi (math.h): Document this.
24278         * lib/isnan.c (rpl_isnand): Use it.
24279         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
24280         * tests/test-floorf1.c (NaN): Likewise.
24281         * tests/test-frexp.c (NaN): Likewise.
24282         * tests/test-isnand.c (NaN): Likewise.
24283         * tests/test-isnanf.c (NaN): Likewise.
24284         * tests/test-round1.c (NaN): Likewise.
24285         * tests/test-roundf1.c (NaN): Likewise.
24286         * tests/test-snprintf-posix.h (NaN): Likewise.
24287         * tests/test-sprintf-posix.h (NaN): Likewise.
24288         * tests/test-trunc1.c (NaN): Likewise.
24289         * tests/test-truncf1.c (NaN): Likewise.
24290         * tests/test-vasnprintf-posix.c (NaN): Likewise.
24291         * tests/test-vasprintf-posix.c (NaN): Likewise.
24292         * modules/isnand-nolibm (Depends-on): Add math.
24293         * modules/isnanf-nolibm (Depends-on): Likewise.
24294         * modules/isnanl (Depends-on): Likewise.
24295         * modules/isnanl-nolibm (Depends-on): Likewise.
24296         * modules/snprintf-posix-tests (Depends-on): Likewise.
24297         * modules/sprintf-posix-tests (Depends-on): Likewise.
24298         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
24299         * modules/vsprintf-posix-tests (Depends-on): Likewise.
24300         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
24301         * modules/vasprintf-posix-tests (Depends-on): Likewise.
24302
24303 2008-03-31  Bruno Haible  <bruno@clisp.org>
24304
24305         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
24306         * doc/posix-functions/strtod.texi: Likewise.
24307
24308 2008-03-31  Bruno Haible  <bruno@clisp.org>
24309
24310         * tests/test-strtod.c (main): Don't use C99 syntax.
24311
24312 2008-03-31  Bruno Haible  <bruno@clisp.org>
24313
24314         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
24315         Reported by Eric Blake.
24316
24317 2008-03-31  Jim Meyering  <meyering@redhat.com>
24318
24319         Don't compare actual signbit return values.
24320         * tests/test-strtod.c (main): Rather, compare only their
24321         zero/non-zero nature.
24322
24323 2008-03-31  Eric Blake  <ebb9@byu.net>
24324
24325         More strtod documentation.
24326         * doc/posix-functions/strtod.texi (strtod): Interpret more test
24327         failures as distinct bugs.
24328
24329 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
24330
24331         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
24332         Problem reported by Erik Benada in
24333         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
24334
24335 2008-03-30  Bruno Haible  <bruno@clisp.org>
24336
24337         * tests/test-strtod.c: Add comments about which assertion fails on which
24338         platform.
24339         * doc/posix-functions/strtod.texi: Add info about many more platforms.
24340
24341 2008-03-30  Eric Blake  <ebb9@byu.net>
24342
24343         Test signbit behavior on zeros.
24344         * tests/test-signbit.c (test_signbitf): Add tests for zero.
24345         (test_signbitd, test_signbitl): Likewise.
24346
24347         More strtod touchups.
24348         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
24349         sign of negative underflow, for now.  Use .5, not .1.
24350         * doc/posix-functions/strtod.texi (strtod): Mention these
24351         limitations.
24352         Reported by Jim Meyering.
24353
24354 2008-03-30  Bruno Haible  <bruno@clisp.org>
24355
24356         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
24357         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
24358
24359 2008-03-30  Bruno Haible  <bruno@clisp.org>
24360
24361         Avoid failure when attempting to return empty iconv results on some
24362         platforms.
24363         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
24364         allocation, don't report ENOMEM when the resulting string is empty.
24365
24366 2008-03-30  Bruno Haible  <bruno@clisp.org>
24367
24368         Fix buffer overrun.
24369         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
24370         Don't consider the width for tmp_length. Check count against tmp_length
24371         before doing the padding. Ensure enough allocation during padding.
24372
24373 2008-03-30  Eric Blake  <ebb9@byu.net>
24374
24375         strtod touchups.
24376         * lib/strtod.c (strtod): Avoid compiler warnings.
24377         Reported by Jim Meyering.
24378
24379 2008-03-30  Bruno Haible  <bruno@clisp.org>
24380
24381         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
24382         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
24383         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
24384         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
24385         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
24386         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
24387         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
24388         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
24389
24390         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
24391         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
24392         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
24393         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
24394         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
24395         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
24396         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
24397         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
24398
24399         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
24400         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
24401         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
24402         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
24403         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
24404         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
24405         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
24406         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
24407
24408         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
24409         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
24410
24411         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
24412         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
24413
24414         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
24415         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
24416
24417         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
24418         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
24419         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
24420
24421         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
24422         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
24423         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
24424
24425         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
24426         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
24427         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
24428
24429         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
24430         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
24431         * modules/vasprintf (Depends-on): Add EOVERFLOW.
24432
24433         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
24434         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
24435         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
24436         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
24437         (Depends-on): Add EOVERFLOW.
24438         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
24439         (Depends-on): Add EOVERFLOW.
24440         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
24441         (Depends-on): Add EOVERFLOW.
24442         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
24443         (Depends-on): Add EOVERFLOW.
24444         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
24445         (Depends-on): Add EOVERFLOW.
24446         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
24447         (Depends-on): Add EOVERFLOW.
24448         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
24449         (Depends-on): Add EOVERFLOW.
24450         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
24451         (Depends-on): Add EOVERFLOW.
24452
24453         * lib/sprintf.c (EOVERFLOW): Remove fallback.
24454         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
24455         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
24456
24457         * lib/snprintf.c (EOVERFLOW): Remove fallback.
24458         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
24459         * modules/snprintf (Depends-on): Add EOVERFLOW.
24460
24461         * lib/poll.c (EOVERFLOW): Remove fallback.
24462         * modules/poll (Depends-on): Add EOVERFLOW.
24463
24464         * lib/getugroups.c (EOVERFLOW): Remove fallback.
24465         * modules/getugroups (Depends-on): Add EOVERFLOW.
24466
24467         * lib/getdelim.c (EOVERFLOW): Remove fallback.
24468         * modules/getdelim (Depends-on): Add EOVERFLOW.
24469
24470         * lib/ftell.c (EOVERFLOW): Remove fallback.
24471         * modules/ftell (Depends-on): Add EOVERFLOW.
24472
24473         * lib/fprintf.c (EOVERFLOW): Remove fallback.
24474         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
24475         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
24476
24477         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
24478
24479         * modules/EOVERFLOW-tests: New file.
24480         * tests/test-EOVERFLOW.c: New file.
24481
24482         * modules/EOVERFLOW: New file.
24483         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
24484
24485 2008-03-30  Bruno Haible  <bruno@clisp.org>
24486
24487         Fix bug introduced on 2007-06-10.
24488         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
24489         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
24490
24491 2008-03-30  Bruno Haible  <bruno@clisp.org>
24492
24493         Improve freadseek's efficiency after ungetc.
24494         * lib/freadseek.c: Include freadahead.h.
24495         (freadptrinc): New function, extracted from freadseek.
24496         (freadseek): Use it in a loop. Use freadahead to determine the number
24497         of loop iterations.
24498         * modules/freadseek (Depends-on): Add freadahead.
24499         (configure.ac): Require AC_C_INLINE.
24500
24501 2008-03-30  Bruno Haible  <bruno@clisp.org>
24502
24503         * lib/freadseek.c (freadseek): Don't ignore the return value of
24504         freadptr.
24505
24506 2008-03-29  Eric Blake  <ebb9@byu.net>
24507
24508         Add hex float support.
24509         * modules/strtod (Depends-on): Add c-ctype.
24510         (Link): Mention POW_LIB.
24511         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
24512         whitespace between 'e' and exponent.
24513         * tests/test-strtod.c (main): Enable hex float tests.
24514         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
24515         now provides.
24516
24517         Document various strtod bugs, with some fixes.
24518         * doc/posix-functions/strtod.texi (strtod): Document bugs with
24519         "-0x", "inf", "nan", and hex constants.
24520         * doc/posix-functions/atof.texi (atof): Likewise.
24521         * modules/stdlib (Makefile.am): Support strtod.
24522         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
24523         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
24524         detect additional strtod bugs.
24525         * lib/stdlib.in.h (rpl_strtod): Add declarations.
24526         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
24527         bool where appropriate.  Parse 'inf' and 'nan'.
24528         * tests/test-strtod.c: New file.
24529         * modules/strtod (Depends-on): Add stdbool, stdlib.
24530         (configure.ac): Turn on module indicator.
24531         * modules/strtod-tests: New module.
24532
24533 2008-03-29  Eric Blake  <ebb9@byu.net>
24534
24535         Fix ftell on mingw.
24536         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
24537         * modules/ftell-tests (Depends-on): Add binary-io.
24538         * modules/ftello-tests (Depends-on): Likewise.
24539         * tests/test-ftell.c (main): Enhance test to cover behavior after
24540         ungetc.  Enforce binary mode.
24541         * tests/test-ftello.c (main): Likewise.
24542
24543         Pass test-freadseek on cygwin.
24544         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
24545         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
24546         ungetc buffer.
24547
24548         * tests/test-fflush2.c (main): Fix typo.
24549
24550 2008-03-29  Bruno Haible  <bruno@clisp.org>
24551
24552         * tests/test-fflush2.c (main): Temporarily disable the contents of
24553         this test.
24554         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
24555         Reported by Eric Blake.
24556
24557 2008-03-28  Simon Josefsson  <simon@josefsson.org>
24558
24559         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
24560         (GC_SHA224_DIGEST_SIZE): Add.
24561
24562         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
24563         (gc_hash_digest_length): Likewise.
24564         (gc_hash_buffer): Likewise.
24565
24566 2008-03-25  Bruno Haible  <bruno@clisp.org>
24567
24568         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
24569         detail which gettext release to use.
24570         Reported by Simon Josefsson.
24571
24572 2008-03-26  Jim Meyering  <meyering@redhat.com>
24573
24574         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
24575         * modules/gnumakefile (clean-GNUmakefile): Also, use
24576         test ... && ... || : syntax rather than if-then ... fi.
24577
24578         gnumakefile: Don't double-quote-expand $(VPATH) value.
24579         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
24580
24581 2008-03-24  Eric Blake  <ebb9@byu.net>
24582
24583         Alter GNUmakefile to install into top directory.
24584         * modules/maintainer-makefile: Split, and add dependency...
24585         * modules/gnumakefile: to this new module.
24586         * build-aux/GNUmakefile: Move...
24587         * top/GNUmakefile: ...here.
24588         * build-aux/maint.mk: Move...
24589         * top/maint.mk: ...here.
24590         * MODULES.html.sh (Support for maintaining...): Document new
24591         module.
24592
24593 2008-03-23  Bruno Haible  <bruno@clisp.org>
24594
24595         * gnulib-tool: New options --vc-files, --no-vc-files.
24596         (func_usage): Document them.
24597         (vc_files): New variable.
24598         (func_import): Consider vc_files.
24599         (func_create_testdir): Set vc_files to empty.
24600         Suggested by Jim Meyering and Karl Berry.
24601
24602 2008-03-23  Bruno Haible  <bruno@clisp.org>
24603
24604         Fix regex compilation error on HP-UX 11.
24605         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
24606         * modules/regex (Files): Add m4/mbstate_t.m4.
24607         Reported by Ton Voon <ton.voon@altinity.com>.
24608
24609 2008-03-23  Bruno Haible  <bruno@clisp.org>
24610
24611         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
24612
24613 2008-03-23  Eric Blake  <ebb9@byu.net>
24614             Bruno Haible  <bruno@clisp.org>
24615
24616         Install files from top/ in the destination directory.
24617         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
24618         augmentation also for the files from top/.
24619         (func_import, func_create_testdir): Rewrite file names:
24620         top/filename -> filename.
24621
24622 2008-03-23  Bruno Haible  <bruno@clisp.org>
24623
24624         Tweak "gnulib --version" output.
24625         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
24626
24627 2008-03-23  Bruno Haible  <bruno@clisp.org>
24628
24629         Tweak "gnulib --version" output.
24630         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
24631         rather than contents of ChangeLog, when possible.
24632
24633 2008-03-21  Eric Blake  <ebb9@byu.net>
24634
24635         More --version tweaks.
24636         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
24637         date of last ChangeLog entry.
24638
24639 2008-03-21  Jim Meyering  <meyering@redhat.com>
24640
24641         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
24642
24643 2008-03-20  Eric Blake  <ebb9@byu.net>
24644
24645         VPATH fix.
24646         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
24647
24648 2008-03-20  Simon Josefsson  <simon@josefsson.org>
24649
24650         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
24651         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
24652
24653 2008-03-20  Eric Blake  <ebb9@byu.net>
24654
24655         Sync GNUmakefile with coreutils.
24656         * build-aux/GNUmakefile (have-Makefile): Rename...
24657         (_have-Makefile): ...to this, for namespace consideration.
24658         (GNUmakefile.cfg): Include, if present.
24659         (_autoreconf): Define a default.
24660         (_is-dist-target): New rule for rebuilds to pick up intra-release
24661         version.
24662         (maint-cfg.mk): Rename...
24663         (cfg.mk): ...to this.
24664
24665 2008-03-18  Jim Meyering  <meyering@redhat.com>
24666
24667         New script and module: mktempd
24668         * MODULES.html.sh (maint+release support): Add mktempd.
24669         * build-aux/mktempd: New file.
24670         * modules/mktempd: New file.
24671
24672 2008-03-15  Jim Meyering  <meyering@redhat.com>
24673
24674         Undo last change.
24675         * lib/sha1.c, lib/md5.c: 63 != ~63.
24676         Reported by Andreas Schwab.
24677
24678         sha1.c, md5.c: Hoist a redundant expression.
24679         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
24680         "ctx->buflen" only once, before calling *_process_block.
24681         * lib/md5.c (md5_process_bytes): Likewise.
24682
24683 2008-03-14  Eric Blake  <ebb9@byu.net>
24684
24685         Bump copyright year in files generated by gnulib-tool.
24686         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
24687         gnulib-tool, rather than hard-coding it.
24688
24689         Fix 'gnulib-tool --version' output to work with git.
24690         * gnulib-tool (func_gnulib_dir): New function, extracted from...
24691         (startup): ...here.
24692         (func_version): Use it to invoke git-version-gen, rather than
24693         relying on CVS keyword expansion.  Modernize wording.
24694         (cvsdatestamp, last_checkin_date, version): Kill unused
24695         variables.
24696
24697 2008-03-12  Jim Meyering  <meyering@redhat.com>
24698
24699         Recognize optional cast of the argument to free.
24700         * build-aux/useless-if-before-free: Update regexps.
24701
24702         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
24703
24704 2008-03-11  Bruno Haible  <bruno@clisp.org>
24705
24706         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
24707         by a single package.
24708         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
24709         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
24710         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
24711         Reported by Sam Steingold <sds@gnu.org>.
24712
24713 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
24714
24715         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
24716         repositories.
24717
24718 2008-03-11  Bruno Haible  <bruno@clisp.org>
24719
24720         Avoid conflicts between local macro definitions.
24721         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
24722         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
24723
24724 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
24725             Bruno Haible  <bruno@clisp.org>
24726
24727         Make va_copy work with some version of xlc on AIX 5.1.
24728         * lib/stdarg.in.h: New file.
24729         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
24730         On AIX, use a <stdarg.h> file substitute.
24731         * modules/stdarg (Files): Add lib/stdarg.in.h.
24732         (Depends-on): Add include_next.
24733         (Makefile.am): Build a stdarg.h substitute if requested.
24734         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
24735
24736 2008-03-10  Bruno Haible  <bruno@clisp.org>
24737
24738         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
24739         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24740         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
24741
24742 2008-03-10  Bruno Haible  <bruno@clisp.org>
24743
24744         * modules/stdlib (Depends-on): Add include_next, remove
24745         absolute-header.
24746
24747 2008-03-09  Bruno Haible  <bruno@clisp.org>
24748
24749         * lib/freadahead.h (freadahead): Document more precisely.
24750         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
24751         the sum of both buffer sizes.
24752         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
24753         * NEWS: Document the change.
24754
24755 2008-03-09  Bruno Haible  <bruno@clisp.org>
24756
24757         Extend freadptr to return also the buffer size.
24758         * lib/freadptr.h (freadptr): Add sizep argument.
24759         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
24760         (freadptr): Add sizep argument. Determine buffer size like freadahead
24761         does.
24762         * tests/test-freadptr.c: Don't include freadahead.h.
24763         (main): Adapt for new calling convention of freadptr.
24764         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
24765         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
24766         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
24767         tests/test-freadptr2.sh.
24768         (Depends): Remove freadahead.
24769         (TESTS): Add test-freadptr2.sh.
24770         (check_PROGRAMS): Add test-freadptr2.
24771
24772 2008-03-09  Bruno Haible  <bruno@clisp.org>
24773
24774         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
24775         Report and solution by Simon Josefsson.
24776
24777 2008-03-06  Bruno Haible  <bruno@clisp.org>
24778
24779         Make fflush after ungetc work on BSD platforms.
24780         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
24781         * tests/test-fflush2.c: New file.
24782         * tests/test-fflush2.sh: New file.
24783         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
24784         tests/test-fflush2.c.
24785         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
24786         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
24787
24788 2008-03-06  Eric Blake  <ebb9@byu.net>
24789
24790         Likewise for ftello.
24791         * modules/ftello (Dependencies): Add extensions.
24792         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
24793
24794 2008-03-06  Bruno Haible  <bruno@clisp.org>
24795
24796         * modules/fseeko (Dependencies): Add extensions.
24797         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
24798         Needed on glibc systems.
24799
24800 2008-03-06  Bruno Haible  <bruno@clisp.org>
24801
24802         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
24803         email address.
24804         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24805
24806 2008-03-06  Bruno Haible  <bruno@clisp.org>
24807
24808         * users.txt: Add libgnupdf.
24809
24810 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24811
24812         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
24813         (Header File Substitutes, Function Substitutes,
24814         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
24815         (Build robot for gnulib): Fix typo.
24816
24817 2008-03-06  Bruno Haible  <bruno@clisp.org>
24818
24819         * doc/gnulib-tool.texi (VCS Issues): Small updates.
24820         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24821
24822 2008-03-06  Bruno Haible  <bruno@clisp.org>
24823
24824         * doc/func.texi: New file, extracted from doc/gnulib.texi.
24825         * doc/gnulib.texi: Include it.
24826
24827 2008-03-06  Simon Josefsson  <simon@josefsson.org>
24828
24829         * modules/func (License): Change license to unlimited; there was
24830         no LGPL parts in the module anyway.
24831
24832 2008-03-06  Simon Josefsson  <simon@josefsson.org>
24833
24834         * modules/__func__: Renamed to modules/func.
24835         * modules/__func__-tests: Renamed to modules/func-tests.
24836         * tests/test-__func__.c: Renamed to tests/test-func.c.
24837         * m4/__func__.m4: Renamed to m4/func.m4.
24838         * doc/gnulib.texi (__func__): Section renamed to func.
24839         Suggested by Eric Blake <ebb9@byu.net>.
24840
24841 2008-03-06  Simon Josefsson  <simon@josefsson.org>
24842
24843         * doc/gnulib.texi (__func__): Use C99 terminology when talking
24844         about __func__.  Make example self-contained.  Suggested by Eric
24845         Blake <ebb9@byu.net>.
24846
24847         * tests/test-__func__.c (main): Avoid extraneous () around __func.
24848         Suggested by Eric Blake <ebb9@byu.net>.
24849
24850 2008-03-06  Simon Josefsson  <simon@josefsson.org>
24851
24852         * modules/__func__: New file.
24853         * modules/__func__-tests: New file.
24854         * tests/test-__func__.c: New file.
24855         * m4/__func__.m4: New file.
24856         * doc/gnulib.texi (__func__): Document __func__ module.
24857
24858 2008-03-05  Simon Josefsson  <simon@josefsson.org>
24859
24860         * modules/byteswap (License): Re-license as LGPLv2+.
24861
24862 2008-03-05  Simon Josefsson  <simon@josefsson.org>
24863
24864         * doc/Makefile: Add pdf target.
24865
24866 2008-03-05  Simon Josefsson  <simon@josefsson.org>
24867
24868         * modules/inline (License): Use 'unlimited', since there are only
24869         *.m4 files in this module.
24870
24871 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
24872             Bruno Haible  <bruno@clisp.org>
24873
24874         Add support for HP C 7.1 on OpenVMS 8.3.
24875         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
24876
24877 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
24878
24879         Update VMS specifics.
24880         * lib/getopt.c [VMS]: Remove include of unixlib.h.
24881
24882 2008-03-02  Jim Meyering  <meyering@redhat.com>
24883
24884         Remove the last dependency on the "free" module.
24885         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
24886         Reported by Bob Proulx.
24887
24888         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
24889
24890         Remove useless "if" tests before free.  Deprecate "free" module.
24891         * doc/posix-functions/free.texi: Mention that this
24892         module is no longer useful.
24893         * modules/free (Notice): Say this module is obsolete.
24894         * modules/readutmp (Depends-on): Remove free.
24895         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
24896         * lib/putenv.c (putenv): Likewise.
24897         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
24898         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
24899         * tests/test-c-strcasestr.c (main): Likewise.
24900         * tests/test-c-strstr.c (main): Likewise.
24901         * tests/test-mbscasestr1.c (main): Likewise.
24902         * tests/test-mbscasestr2.c (main): Likewise.
24903         * tests/test-mbsstr1.c (main): Likewise.
24904         * tests/test-mbsstr2.c (main): Likewise.
24905         * tests/test-memmem.c (main): Likewise.
24906         * tests/test-strcasestr.c (main): Likewise.
24907         * tests/test-striconv.c (main): Likewise.
24908         * tests/test-striconveh.c (main): Likewise.
24909         * tests/test-striconveha.c (main): Likewise.
24910         * tests/test-strstr.c (main): Likewise.
24911
24912         * build-aux/git-version-gen: Adjust a comment and the Usage string.
24913
24914         bootstrap: sync from coreutils again
24915         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
24916
24917 2008-03-01  Jim Meyering  <meyering@redhat.com>
24918
24919         bootstrap: sync from coreutils
24920         * build-aux/bootstrap (update_po_files): Copy a .po file into place
24921         also when the target doesn't exist.
24922
24923 2008-03-01  Eric Blake  <ebb9@byu.net>
24924
24925         Fix bugs in last patch.
24926         * lib/memchr2.c (memchr2): Fix typo.
24927         * tests/test-memchr2.c: Test previous bug, and don't use GNU
24928         extension.
24929         Reported by Bruce Korb.
24930
24931         New module 'memchr2'.
24932         * modules/memchr2: New file.
24933         * modules/memchr2-tests: Likewise.
24934         * lib/memchr2.h: Likewise.
24935         * lib/memchr2.c: Likewise, based on memchr.c.
24936         * tests/test-memchr2.c: New test.
24937         * MODULES.html.sh (String handling): Add memchr2.
24938
24939 2008-02-29  Bruno Haible  <bruno@clisp.org>
24940
24941         * modules/freadseek-tests: New file.
24942         * tests/test-freadseek.sh: New file.
24943         * tests/test-freadseek.c: New file.
24944
24945         New module 'freadseek'.
24946         * modules/freadseek: New file.
24947         * lib/freadseek.h: New file.
24948         * lib/freadseek.c: New file.
24949         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
24950
24951 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
24952
24953         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
24954         wydawca.
24955
24956         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
24957         program_invocation_name and program_invocation_short_name are
24958         present.
24959
24960 2008-02-28  Bruno Haible  <bruno@clisp.org>
24961
24962         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
24963         * tests/test-freadptr.sh: Also test non-seekable stdin.
24964
24965 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
24966
24967         * build-aux/bootstrap (source_base, m4_base)
24968         (doc_base, tests_base): New variables.
24969         (gnulib_tool_options): Do not hardcode base directories, use
24970         the above variables instead.
24971
24972 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
24973
24974         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
24975
24976 2008-02-28  Bruno Haible  <bruno@clisp.org>
24977
24978         * modules/freadptr-tests: New file.
24979         * tests/test-freadptr.sh: New file.
24980         * tests/test-freadptr.c: New file.
24981
24982         New module 'freadptr'.
24983         * modules/freadptr: New file.
24984         * lib/freadptr.h: New file.
24985         * lib/freadptr.c: New file.
24986         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
24987
24988 2008-02-26  Karl Berry  <karl@freefriends.org>
24989
24990         Sync from Libtool:
24991         * libltdl/argz.c (argz_add, argz_count): New functions.
24992         * libltdl/argz.in.h: Declare them.
24993         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
24994
24995 2008-02-22  Bruno Haible  <bruno@clisp.org>
24996
24997         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
24998         is a pointer type.  Needed for HP-UX 10.
24999         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
25000         * doc/posix-functions/gmtime_r.texi: Likewise.
25001         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25002
25003 2008-02-24  Bruno Haible  <bruno@clisp.org>
25004
25005         * modules/environ-tests: New file.
25006         * tests/test-environ.c: New file.
25007
25008         New module 'environ'.
25009         * modules/environ: New file.
25010         * lib/unistd.in.h (environ): New declaration.
25011         * m4/environ.m4: New file.
25012         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
25013         after use.
25014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
25015         HAVE_DECL_ENVIRON.
25016         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
25017         HAVE_DECL_ENVIRON.
25018         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
25019         wrong claim that 'environ' is missing on some systems.
25020         * modules/execute (Depends-on): Add environ.
25021         * lib/execute.c (environ): Remove fallback declaration.
25022         * modules/pipe (Depends-on): Add environ.
25023         * lib/pipe.c (environ): Remove fallback declaration.
25024         * modules/setenv (Depends-on): Add environ.
25025         * lib/setenv.c (environ): Remove fallback declaration.
25026         * modules/unsetenv (Depends-on): Add environ.
25027         * lib/unsetenv.c (environ): Remove fallback declaration.
25028         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
25029         m4/environ.m4.
25030         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
25031         (gl_PREREQ_UNSETENV): Likewise.
25032
25033 2008-02-24  Bruno Haible  <bruno@clisp.org>
25034
25035         * doc/posix-functions/environ.texi: Document the MacOS X problem.
25036
25037 2008-02-20  Bob Proulx  <bob@proulx.com>
25038
25039         Enable use of older two part flavor 'git describe'.
25040         * build-aux/git-version-gen: If using the older two part flavor of
25041         git version then recreate the third part now present in the
25042         newer three part flavor of git describe.
25043
25044 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
25045
25046         * lib/fts.c (fts_build): Typo correction to comment.
25047
25048 2008-02-17  Bruno Haible  <bruno@clisp.org>
25049
25050         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
25051         generating no-op conflicts.
25052
25053 2008-02-17  Bruno Haible  <bruno@clisp.org>
25054
25055         Speed up by 10%.
25056         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
25057         result_entries, rather than an index-based loop.
25058
25059 2008-02-17  Bruno Haible  <bruno@clisp.org>
25060
25061         Speed up by 25%.
25062         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
25063         'hashcode_cached'.
25064         (entry_create): New function.
25065         (entry_hashcode): Use the cached hashcode if possible.
25066         (read_changelog_file, try_split_merged_entry): Use entry_create.
25067
25068 2008-02-17  Bruno Haible  <bruno@clisp.org>
25069
25070         Speed up from O(n^2) to O(n) for long ChangeLog files.
25071         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
25072         (read_changelog_file): Change implementation of entries_reversed list
25073         to rbtreehash.
25074         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
25075
25076 2008-02-17  Bruno Haible  <bruno@clisp.org>
25077
25078         New option --split-merged-entry.
25079         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
25080         (find_paragraph_end, try_split_merged_entry): New functions.
25081         (long_options): Add option --split-merged-entry.
25082         (usage): Document option --split-merged-entry.
25083         (main): Implement option --split-merged-entry.
25084         Reported by Eric Blake.
25085
25086 2008-02-17  Bruno Haible  <bruno@clisp.org>
25087
25088         * lib/git-merge-changelog.c: Include c-strstr.h.
25089         (main): Support the "git pull --rebase" situation.
25090         * modules/git-merge-changelog (Depends-on): Add c-strstr.
25091         Reported by Eric Blake.
25092
25093 2008-02-16  Eric Blake  <ebb9@byu.net>
25094
25095         Avoid doubling \ in common case of "c-maybe" quoting style.
25096         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
25097         eliding outer quotes.
25098         * lib/quotearg.h: Document this.
25099         * tests/test-quotearg.c (result_strings, inputs, results_g)
25100         (flag_results, locale_results): Test it by adding a new string to
25101         each test group.
25102         (compare_strings): Test new string.
25103
25104 2008-02-13  Eric Blake  <ebb9@byu.net>
25105
25106         Avoid trigraph quoting in default output.
25107         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
25108         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
25109         unless explicitly requested.
25110         * tests/test-quotearg.c (flag_results, main): Add additional tests.
25111
25112 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
25113
25114         Don't rely on signed integer overflowing to negative value.
25115         * lib/getugroups.c (getugroups): Include <limits.h>.
25116         Instead, compare against INT_MAX, and increment only if the test passes.
25117
25118 2008-02-13  Jim Meyering  <meyering@redhat.com>
25119         and Eric Blake  <ebb9@byu.net>
25120
25121         Avoid shadowing warning and compile errors on Linux.
25122         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
25123         forwarding macros on Linux.
25124         (dcgettext): Define a stub, for Linux.
25125         (results_g, main): Avoid warnings.
25126
25127 2008-02-12  Eric Blake  <ebb9@byu.net>
25128
25129         Silence warning in last patch.
25130         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
25131
25132         Quotearg part 4: add tests, fix c-maybe colon quoting.
25133         * lib/quotearg.h: Improve documentation.
25134         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
25135         escapes when adding outer quotes.  When quoting trigraphs, use
25136         valid C notation.  When quoting NUL, omit extra characters if next
25137         character is not digit.  Alter prototype.
25138         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
25139         callers.
25140         * modules/quotearg-tests: New module.
25141         * tests/test-quotearg.c: New test.
25142
25143 2008-02-07  Eric Blake  <ebb9@byu.net>
25144
25145         Quotearg part 3: add flag to control outer quote elision.
25146         * lib/quotearg.h (c_maybe_quoting_style): New style.
25147         (enum quoting_flags): Better documentation of flags.
25148         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
25149         c-maybe style.
25150         (quotearg_buffer_restyled): Handle new flag to elide outer
25151         quotes.
25152
25153         Quotearg part 2: add flag that can control NUL elision.
25154         * lib/quotearg.h (set_quoting_flags): New prototype.
25155         * lib/quotearg.c (struct quoting_options): Add flag field.
25156         (set_quoting_flags): New function.
25157         (quotearg_buffer_restyled): Add flags parameter.
25158         (quotearg_alloc_mem): Set the flag if length cannot be returned.
25159         (quotearg_n_options): Set the flag, since length cannot be
25160         returned.
25161         (quoting_options_from_style): Default flags correctly.
25162
25163         Quotearg part 1: more wrappers, restore quotearg_char state.
25164         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
25165         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
25166         (quotearg_colon_mem): New wrappers.
25167         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
25168         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
25169         functions.
25170         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
25171         (quotearg_colon_mem): New functions.
25172
25173 2008-02-11  Bruno Haible  <bruno@clisp.org>
25174
25175         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
25176         library in the current directory: it does not work with parallel make.
25177         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25178
25179 2008-02-11  Bruno Haible  <bruno@clisp.org>
25180
25181         * .gitattributes: New file.
25182
25183 2008-02-11  Jim Meyering  <meyering@redhat.com>
25184
25185         useless-if-before-free: Fix reversed exit values.
25186         * build-aux/useless-if-before-free: Use correct values
25187         for EXIT_MATCH and EXIT_NO_MATCH.
25188
25189         * build-aux/useless-if-before-free: Close stdout carefully.
25190
25191 2008-02-10  Bruno Haible  <bruno@clisp.org>
25192
25193         New module 'git-merge-changelog'.
25194         * modules/git-merge-changelog: New file.
25195         * lib/git-merge-changelog.c: New file.
25196
25197 2008-02-10  Jim Meyering  <meyering@redhat.com>
25198
25199         useless-if-before-free: New option: --list (-l).
25200
25201         useless-if-before-free: Don't exit immediately upon open failure.
25202         * build-aux/useless-if-before-free: Exit 2 for errors.
25203         Upon failure to open a file, don't exit immediately.
25204         Rather, just warn and continue with any remaining files.
25205
25206 2008-02-10  Bruno Haible  <bruno@clisp.org>
25207
25208         New abstract list operation 'node_set_value'.
25209         * lib/gl_list.h (gl_list_node_set_value): New function.
25210         (struct gl_list_implementation): New field node_set_value.
25211         * lib/gl_list.c (gl_list_node_set_value): New function.
25212         * lib/gl_array_list.c (gl_array_node_set_value): New function.
25213         (gl_array_list_implementation): Update.
25214         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
25215         (gl_carray_list_implementation): Update.
25216         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
25217         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
25218         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
25219         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
25220         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
25221         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
25222         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
25223         Update.
25224         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
25225         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
25226         (gl_sublist_list_implementation): Update.
25227
25228 2008-02-10  Bruno Haible  <bruno@clisp.org>
25229
25230         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
25231         Needed when ELEMENT is #defined to 'some_type *'.
25232
25233 2008-02-10  Jim Meyering  <meyering@redhat.com>
25234
25235         New script and module: useless-if-before-free
25236         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
25237         * build-aux/useless-if-before-free: New file.
25238         * modules/useless-if-before-free: New file.
25239
25240         * build-aux/gitlog-to-changelog: Use committer date, not author date.
25241
25242         xstrtol_error: Fix typo.
25243         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
25244         s/exit_failure/exit_status/.
25245
25246 2008-02-09  Jim Meyering  <meyering@redhat.com>
25247
25248         New script and module: gitlog-to-changelog
25249         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
25250         * modules/gitlog-to-changelog: New file.
25251         * build-aux/gitlog-to-changelog: New file.
25252
25253 2008-02-08  Jim Meyering  <meyering@redhat.com>
25254
25255         Avoid two "parameter unused" warnings.
25256         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
25257         Mark "st" as used.
25258
25259         Use "git COMMAND", not "git-COMMAND".
25260         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
25261         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
25262         * build-aux/git-version-gen: Use "git status", not "git-status".
25263
25264 2008-02-07  Bruno Haible  <bruno@clisp.org>
25265
25266         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
25267         Avoids a crash on Windows Vista.
25268         Reported by Adam Strzelecki <ono@java.pl> via
25269         Simon Josefsson <simon@josefsson.org>.
25270
25271 2008-02-06  Bruno Haible  <bruno@clisp.org>
25272
25273         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
25274         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
25275         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
25276         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
25277         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25278         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25279         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
25280         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
25281         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25282         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25283         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25284         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25285         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25286         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25287         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25288         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
25289         left-adjust flag.
25290         * tests/test-snprintf-posix.h (test_function): Likewise.
25291         * tests/test-sprintf-posix.h (test_function): Likewise.
25292         * tests/test-vasprintf-posix.c (test_function): Likewise.
25293         * doc/posix-functions/fprintf.texi: Update.
25294         * doc/posix-functions/printf.texi: Update.
25295         * doc/posix-functions/snprintf.texi: Update.
25296         * doc/posix-functions/sprintf.texi: Update.
25297         * doc/posix-functions/vfprintf.texi: Update.
25298         * doc/posix-functions/vprintf.texi: Update.
25299         * doc/posix-functions/vsnprintf.texi: Update.
25300         * doc/posix-functions/vsprintf.texi: Update.
25301         Reported by Peter Fales <psfales@alcatel-lucent.com>.
25302
25303 2008-02-06  Bruno Haible  <bruno@clisp.org>
25304
25305         Fix bug introduced on 2008-01-26.
25306         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
25307
25308 2008-02-06  Bruno Haible  <bruno@clisp.org>
25309
25310         Fix bug introduced on 2007-06-10.
25311         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
25312         !NEED_PRINTF_FLAG_ZERO.
25313
25314 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
25315
25316         getloadavg: use libperfstat on AIX5
25317         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
25318
25319 2008-02-03  Bruno Haible  <bruno@clisp.org>
25320
25321         * lib/diffseq.h: Add comments about required #includes.
25322         Reported by Michael Biggs <gnulib@doubleplum.net>.
25323
25324 2008-02-01  Bruno Haible  <bruno@clisp.org>
25325
25326         * users.txt: Add gnuit.
25327
25328 2008-01-31  Bruno Haible  <bruno@clisp.org>
25329
25330         * lib/md4.c (set_uint32): Mark as inline.
25331         * lib/md5.c (set_uint32): Likewise.
25332         * lib/sha1.c (set_uint32): Likewise.
25333         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
25334         * m4/md5.m4 (gl_MD5): Likewise.
25335         * m4/sha1.m4 (gl_SHA1): Likewise.
25336
25337 2008-01-31  Jim Meyering  <meyering@redhat.com>
25338
25339         Use "sizeof VAR", rather than a literal "4".
25340         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
25341         * lib/md4.c (md4_read_ctx): Likewise.
25342         * lib/sha1.c (sha1_read_ctx): Likewise.
25343
25344 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25345
25346         * tests/test-sha1.c: New file, based on test-md5.c.
25347
25348         * modules/crypto/sha1-tests: New file.
25349
25350 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25351
25352         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
25353
25354 2008-01-31  Jim Meyering  <meyering@redhat.com>
25355
25356         Prefer "sizeof v" over the equivalent "4".
25357         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
25358         * lib/md5.c (set_uint32): Likewise.
25359         * lib/sha1.c (set_uint32): Likewise.
25360
25361 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25362
25363         * lib/sha1.c (set_uint32): Mark function as static.
25364
25365 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25366
25367         md2: clarify comments to say that alignment is not required.
25368         * lib/md2.h: Remove warning about alignment in comment.
25369         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
25370         never been required.
25371
25372 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25373
25374         md4: adapt alignment constraint fix from sha1.
25375         * lib/md4.c (set_uint32): New function, from sha1.c
25376         (md4_read_ctx): Use it.
25377         (md4_finish_ctx): Doc fix.
25378         * lib/md4.h: Doc fix.
25379
25380 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25381
25382         md5: adapt alignment constraint fix from sha1.
25383         * lib/md5.c (set_uint32): New function, from sha1.c
25384         (md5_read_ctx): Use it.
25385         (md5_finish_ctx): Doc fix.
25386         * lib/md5.h: Doc fix.
25387
25388 2008-01-30  Peter Palfrader  <weasel@debian.org>
25389
25390         sha1: remove the result buffer alignment constraint
25391         * lib/sha1.c (set_uint32): New function.
25392         (sha1_read_ctx): Rewrite to remove the result buffer alignment
25393         constraint.
25394         (sha1_finish_ctx): Remove comment warning about alignment constraint.
25395         * lib/sha1.h: Likewise.
25396
25397 2008-01-30  Andreas Schwab  <schwab@suse.de>
25398             Bruno Haible  <bruno@clisp.org>
25399
25400         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
25401         correct definition of LDBL_MIN_EXP.
25402
25403 2008-01-30  Karl Berry  <karl@gnu.org>
25404
25405         * config/srclist-update: try to preserve x bit on updates.
25406         * config/srclistvars.sh: update for karl.
25407
25408 2008-01-29  Jim Meyering  <meyering@redhat.com>
25409
25410         vasnprintf.c: Avoid warning about unused label
25411         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
25412         "overflow" label definition and associated code with the
25413         same cpp condition that guards the sole use of that label.
25414
25415 2008-01-26  Bruno Haible  <bruno@clisp.org>
25416
25417         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
25418         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
25419         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
25420         * lib/isnanl-nolibm.h (isnanl): Likewise.
25421         Reported by Paul Eggert <eggert@cs.ucla.edu>.
25422
25423 2008-01-26  Bruno Haible  <bruno@clisp.org>
25424
25425         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
25426         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
25427
25428 2008-01-26  Bruno Haible  <bruno@clisp.org>
25429
25430         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
25431         GCC >= 4.0 built-in.
25432         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
25433
25434 2008-01-26  Bruno Haible  <bruno@clisp.org>
25435
25436         Rename isnan, applicable to 'double' only, to isnand.
25437         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
25438         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
25439         (configure.ac): Update.
25440         (Include): Replace "isnan.h" with "isnand.h".
25441         * m4/isnand.m4: Renamed from m4/isnan.m4.
25442         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
25443         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
25444         instead of isnan.c.
25445         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
25446         instead of HAVE_ISNAN_IN_LIBC.
25447         (isnand): Renamed from isnan.
25448         * lib/isnand.c: New file.
25449         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
25450         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
25451         (Makefile.am): Update.
25452         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
25453         Include isnand.h instead of isnan.h.
25454         (main): Test isnand instead of isnan.
25455         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
25456         isnan-nolibm.
25457         * modules/frexp (Depends-on): Likewise.
25458         * modules/frexp-tests (Depends-on): Likewise.
25459         * modules/frexp-nolibm (Depends-on): Likewise.
25460         * modules/frexp-nolibm-tests (Depends-on): Likewise.
25461         * modules/isfinite (Depends-on): Likewise.
25462         * modules/round-tests (Depends-on): Likewise.
25463         * modules/signbit (Depends-on): Likewise.
25464         * modules/signbit-tests (Depends-on): Likewise.
25465         * modules/snprintf-posix (Depends-on): Likewise.
25466         * modules/sprintf-posix (Depends-on): Likewise.
25467         * modules/trunc-tests (Depends-on): Likewise.
25468         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25469         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25470         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25471         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25472         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25473         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25474         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25475         * modules/vasnprintf-posix (Depends-on): Likewise.
25476         * modules/vasprintf-posix (Depends-on): Likewise.
25477         * modules/vfprintf-posix (Depends-on): Likewise.
25478         * modules/vsnprintf-posix (Depends-on): Likewise.
25479         * modules/vsprintf-posix (Depends-on): Likewise.
25480         * lib/frexp.c: Include isnand.h instead of isnan.h.
25481         (ISNAN): Set to isnand instead of isnan.
25482         * lib/isfinite.c: Include isnand.h instead of isnan.h.
25483         (gl_isfinited): Use isnand instead of isnan.
25484         * lib/signbitd.c: Include isnand.h instead of isnan.h.
25485         (gl_signbitd): Use isnand instead of isnan.
25486         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
25487         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
25488         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
25489         (main): Use isnand instead of isnan.
25490         * tests/test-round1.c: Include isnand.h.
25491         (main): Use isnand instead of isnan.
25492         * tests/test-round2.c: Include isnand.h instead of isnan.h.
25493         (ISNAN): Set to isnand instead of isnan.
25494         * tests/test-trunc1.c: Include isnand.h.
25495         (main): Use isnand instead of isnan.
25496         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
25497         (equal): Use isnand instead of isnan.
25498         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
25499         isnand-nolibm.
25500         * NEWS: Mention the change.
25501
25502 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
25503             Bruno Haible  <bruno@clisp.org>
25504
25505         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
25506         the GCC builtins for signbits are present and set
25507         REPLACE_SIGNBIT_USING_GCC if so.
25508         * lib/math.in.h (signbit): Define using GCC builtins if
25509         REPLACE_SIGNBIT_USING_GCC is set.
25510         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
25511         REPLACE_SIGNBIT_USING_GCC.
25512         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
25513
25514 2008-01-25  Jim Meyering  <meyering@redhat.com>
25515
25516         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
25517         * lib/poll.c: Include <config.h>, not "config.h".
25518         * tests/test-getaddrinfo.c: Likewise.
25519
25520 2008-01-25  Simon Josefsson  <simon@josefsson.org>
25521
25522         * modules/sockets-tests: New file.
25523
25524 2008-01-24  Simon Josefsson  <simon@josefsson.org>
25525
25526         * modules/sockets: New module, can be used to call WSA_Startup and
25527         WSA_Cleanup when needed.
25528
25529         * lib/sockets.h, lib/sockets.c: New files.
25530
25531         * m4/sockets.m4: New file.
25532
25533         * tests/test-sockets.c: New file.
25534
25535 2008-01-19  Bruno Haible  <bruno@clisp.org>
25536
25537         * doc/posix-headers: Renamed from doc/headers.
25538         * doc/posix-functions: Renamed from doc/functions.
25539         * doc/gnulib.texi: Update.
25540
25541 2008-01-19  Bruno Haible  <bruno@clisp.org>
25542
25543         * doc/glibc-functions/strcasestr.texi: Include contents of
25544         doc/functions/strcasestr.texi, fixing the list of platforms.
25545         * doc/functions/strcasestr.texi: Remove file.
25546
25547 2008-01-19  Bruno Haible  <bruno@clisp.org>
25548
25549         * doc/glibc-functions/memmem.texi: Include contents of
25550         doc/functions/memmem.texi.
25551         * doc/functions/memmem.texi: Remove file.
25552
25553 2008-01-18  Bruno Haible  <bruno@clisp.org>
25554
25555         * doc/glibc-functions/*.texi: New files.
25556         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
25557         to use the new files.
25558
25559 2008-01-17  Bruno Haible  <bruno@clisp.org>
25560
25561         * tests/test-gethostname.c (main): Fix printf statement.
25562
25563 2008-01-17  Simon Josefsson  <simon@josefsson.org>
25564
25565         * modules/gethostname-tests: New file.
25566
25567         * tests/test-gethostname.c: New file.
25568
25569 2008-01-17  Simon Josefsson  <simon@josefsson.org>
25570
25571         * lib/gethostname.c: Include string.h unconditionally, strncpy is
25572         used by the UNAME case.  Reported by Bruno Haible
25573         <bruno@clisp.org>.
25574
25575 2008-01-17  Eric Blake  <ebb9@byu.net>
25576
25577         Convert c-strcasestr to be more efficient.
25578         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
25579         (Depends-on): Add c-strcase, remove malloca, strnlen.
25580         * tests/test-c-strcasestr.c (main): Enhance test.
25581         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
25582
25583 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
25584
25585         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
25586         Use it in creating po/Makevars.
25587
25588 2008-01-15  Simon Josefsson  <simon@josefsson.org>
25589
25590         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
25591         Applications that requires it should initialize libgcrypt
25592         manually.
25593
25594 2008-01-16  Simon Josefsson  <simon@josefsson.org>
25595
25596         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
25597
25598 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
25599
25600         Fix problem with getdate on mingw32 reported by Simon Josefsson
25601         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
25602         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
25603         tzname", when deciding whether to declare tzname.
25604         * lib/strftime.c (tzname): Likewise.
25605
25606 2008-01-15  Bruno Haible  <bruno@clisp.org>
25607
25608         Work around a MacOS X 10.5 bug in frexpl().
25609         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
25610         * doc/functions/frexpl.texi: Document the bug.
25611         Reported by Elias Pipping <pipping@gentoo.org>.
25612
25613 2008-01-14  Eric Blake  <ebb9@byu.net>
25614
25615         Touch up previous patch.
25616         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
25617         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
25618
25619         Convert strcasestr module to use Two-Way algorithm.
25620         * modules/strcasestr-simple: New module, based on the old
25621         strcasestr, but with Two-Way rather than KMP.
25622         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
25623         * lib/string.in.h (rpl_strcasestr): Declare.
25624         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
25625         performance.
25626         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
25627         * modules/string (Makefile.am): Support strcasestr.
25628         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
25629         * modules/strcasestr-tests (Depends-on): Check for alarm.
25630         * tests/test-strcasestr.c: Augment test.
25631         * lib/str-two-way.h: Clean up stray macro.
25632         * NEWS: Document new module.
25633         * MODULES.html.sh (string handling): Likewise.
25634         * doc/functions/strcasestr.texi: New file.
25635         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
25636         here, since it is not a POSIX function.
25637
25638 2008-01-14  Colin Watson  <cjwatson@debian.org>
25639             Bruno Haible  <bruno@clisp.org>
25640
25641         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
25642         works fine; if not, set REPLACE_STRSIGNAL.
25643         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
25644         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25645         REPLACE_STRSIGNAL.
25646         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
25647         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
25648         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
25649
25650 2008-01-14  Bruno Haible  <bruno@clisp.org>
25651
25652         * modules/strsignal (Include): Change to <string.h>.
25653
25654 2008-01-14  Colin Watson  <cjwatson@debian.org>
25655
25656         * modules/argp (Notice): Add a notice recommending to change
25657         XGETTEXT_OPTIONS.
25658         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
25659
25660 2008-01-13  Colin Watson  <cjwatson@debian.org>
25661
25662         * modules/strsignal-tests: New file.
25663         * tests/test-strsignal.c: New file.
25664
25665         * lib/strsignal.c: New file, from glibc with modifications.
25666         * lib/siglist.h: New file, from glibc with modifications.
25667         * lib/string.in.h (strsignal): New declaration.
25668         * m4/strsignal.m4: New file.
25669         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25670         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
25671         * modules/strsignal: New file.
25672         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
25673         HAVE_DECL_STRSIGNAL.
25674
25675 2008-01-13  Bruno Haible  <bruno@clisp.org>
25676
25677         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
25678         locale encoding is not ASCII. Needed for OpenBSD 4.0.
25679         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
25680         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25681
25682 2008-01-13  Bruno Haible  <bruno@clisp.org>
25683
25684         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
25685         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
25686         * lib/argp.h (__attribute__): Likewise.
25687         * lib/c-stack.c (__attribute__): Likewise.
25688         * lib/error.h (__attribute__): Likewise.
25689         * lib/fts.c (__attribute__): Likewise.
25690         * lib/openat.h (__attribute__): Likewise.
25691         * lib/stdio.in.h (__attribute__): Likewise.
25692         * lib/string.in.h (__attribute__): Likewise.
25693         * lib/utimens.c (__attribute__): Likewise.
25694         * lib/vasnprintf.h (__attribute__): Likewise.
25695         * lib/xalloc.h (__attribute__): Likewise.
25696         * lib/xprintf.h (__attribute__): Likewise.
25697         * lib/xstrtol.h (__attribute__): Likewise.
25698         * lib/xvasprintf.h (__attribute__): Likewise.
25699
25700 2008-01-12  Bruno Haible  <bruno@clisp.org>
25701
25702         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
25703         * doc/glibc-headers/a.out.texi: New file.
25704         * doc/glibc-headers/aliases.texi: New file.
25705         * doc/glibc-headers/alloca.texi: New file.
25706         * doc/glibc-headers/ar.texi: New file.
25707         * doc/glibc-headers/argp.texi: New file.
25708         * doc/glibc-headers/argz.texi: New file.
25709         * doc/glibc-headers/byteswap.texi: New file.
25710         * doc/glibc-headers/crypt.texi: New file.
25711         * doc/glibc-headers/endian.texi: New file.
25712         * doc/glibc-headers/envz.texi: New file.
25713         * doc/glibc-headers/err.texi: New file.
25714         * doc/glibc-headers/error.texi: New file.
25715         * doc/glibc-headers/execinfo.texi: New file.
25716         * doc/glibc-headers/fpu_control.texi: New file.
25717         * doc/glibc-headers/fstab.texi: New file.
25718         * doc/glibc-headers/fts.texi: New file.
25719         * doc/glibc-headers/getopt.texi: New file.
25720         * doc/glibc-headers/ieee754.texi: New file.
25721         * doc/glibc-headers/ifaddrs.texi: New file.
25722         * doc/glibc-headers/libintl.texi: New file.
25723         * doc/glibc-headers/mcheck.texi: New file.
25724         * doc/glibc-headers/mntent.texi: New file.
25725         * doc/glibc-headers/obstack.texi: New file.
25726         * doc/glibc-headers/paths.texi: New file.
25727         * doc/glibc-headers/printf.texi: New file.
25728         * doc/glibc-headers/pty.texi: New file.
25729         * doc/glibc-headers/resolv.texi: New file.
25730         * doc/glibc-headers/shadow.texi: New file.
25731         * doc/glibc-headers/sysexits.texi: New file.
25732         * doc/glibc-headers/ttyent.texi: New file.
25733
25734 2008-01-12  Jim Meyering  <meyering@redhat.com>
25735
25736         announce-gen: emit Gnulib's git-based version string.
25737         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
25738         New option --gnulib-version=V, where V is expected to be
25739         the output of running git describe in the gnulib directory.
25740         (get_tool_versions): Request feedback on xdelta.  I suspect it's
25741         not useful, and plan to stop publishing an xdelta file with each
25742         coreutils release.
25743
25744         * build-aux/announce-gen: Also check for lzma-compressed files.
25745
25746 2008-01-11  Bruno Haible  <bruno@clisp.org>
25747
25748         * tests/test-memmem.c (main): Increase maximum allowed time.
25749         * tests/test-strstr.c (main): Likewise.
25750
25751 2008-01-11  Bruno Haible  <bruno@clisp.org>
25752
25753         * doc/functions/memmem.texi: Add more precisions about platforms.
25754         * doc/functions/strstr.texi: Likewise.
25755
25756 2008-01-10  Eric Blake  <ebb9@byu.net>
25757
25758         * m4/strstr.m4: Delete cruft from copy-n-paste.
25759         Reported by Bruno Haible.
25760
25761 2008-01-10  Bruno Haible  <bruno@clisp.org>
25762
25763         Make c-strstr rely on strstr.
25764         * lib/c-strstr.c: Don't include str-kmp.h.
25765         (c_strstr): Define in terms of strstr.
25766         * modules/c-strstr (Files): Remove lib/str-kmp.h.
25767         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
25768
25769 2008-01-10  Bruno Haible  <bruno@clisp.org>
25770
25771         * doc/gnulib.texi (String Functions in C Locale): New section.
25772         * doc/c-ctype.texi: New file.
25773         * doc/c-strcase.texi: New file.
25774         * doc/c-strcaseeq.texi: New file.
25775         * doc/c-strcasestr.texi: New file.
25776         * doc/c-strstr.texi: New file.
25777         * doc/c-strtod.texi: New file.
25778         * doc/c-strtold.texi: New file.
25779
25780 2008-01-10  Eric Blake  <ebb9@byu.net>
25781
25782         * lib/relocatable.h: Fix a comment.
25783
25784 2008-01-10  Eric Blake  <ebb9@byu.net>
25785
25786         Share two-way algorithm.
25787         * lib/str-two-way.h: New file, merged from...
25788         * lib/memmem.c: ...here...
25789         * lib/strstr.c: ...and here.
25790         * modules/memmem (Files): Use it.
25791         * modules/strstr (Files): Likewise.
25792
25793         Avoid quadratic strstr implementations.
25794         * lib/strstr.c: New file.
25795         * m4/strstr.m4: Likewise.
25796         * modules/strstr: Likewise.
25797         * modules/strstr-tests: Likewise.
25798         * tests/test-strstr.c: Likewise.
25799         * lib/string.in.h (rpl_strstr): Declare.
25800         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
25801         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
25802         * modules/string (Makefile.am): Likewise.
25803         * MODULES.html.sh (string handling): Mention new module.
25804         * doc/functions/strstr.texi (strstr): Document the bug.
25805
25806 2008-01-10  Bruno Haible  <bruno@clisp.org>
25807
25808         * lib/relocatable.h (relocate): State whether result is freshly
25809         allocated or not.
25810         * lib/relocatable.c (relocate): Return a freshly allocated string
25811         instead of a pointer to a privately held string.
25812         Reported by Sylvain Beucler <beuc@gnu.org>.
25813
25814 2008-01-10  Colin Watson  <cjwatson@debian.org>
25815
25816         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
25817         s/S_ISNLK/S_ISLNK/.
25818
25819 2008-01-09  Bruno Haible  <bruno@clisp.org>
25820
25821         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
25822         and other files.
25823         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
25824         if it's only a guess.
25825         * modules/memmem: Simplify by depending on memmem-simple.
25826
25827 2008-01-09  Bruno Haible  <bruno@clisp.org>
25828
25829         Work around OpenBSD 4.0 tdelete() bug.
25830         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
25831         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
25832         macros and don't redefine the enum values.
25833         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
25834         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
25835         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
25836
25837 2008-01-09  Bruno Haible  <bruno@clisp.org>
25838
25839         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
25840         (main): Don't perform the tests if setlocale did not install a UTF-8
25841         locale. Needed on OpenBSD 4.0.
25842         * modules/wcwidth-tests (Depends-on): Add localcharset.
25843
25844 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
25845
25846         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
25847         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
25848         * NEWS: announce this.
25849         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
25850
25851 2008-01-09  Simon Josefsson  <simon@josefsson.org>
25852         and Eric Blake  <ebb9@byu.net>
25853
25854         Add memmem-simple module.
25855         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
25856         (gl_FUNC_MEMMEM): Separate performance from presence checks.
25857         * modules/memmem-simple: New file.
25858         * modules/memmem (Description): Tweak.
25859         * MODULES.html.sh (string handling): Mention new module.
25860         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
25861         addressed by memmem-simple.
25862         * NEWS: Document the difference.
25863
25864 2008-01-09  Eric Blake  <ebb9@byu.net>
25865
25866         Give gcc some memmem optimization hints.
25867         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
25868         (strcasestr): Declare as pure.
25869         * modules/memmem (Maintainer): Claim my implementation.
25870
25871 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25872
25873         Support AIX 6.1 and higher.
25874         * build-aux/config.libpath: Likewise.
25875         * build-aux/config.rpath: Likewise.
25876
25877 2008-01-08  Jim Meyering  <meyering@redhat.com>
25878             Bruno Haible  <bruno@clisp.org>
25879
25880         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
25881         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
25882         Reported by Peter Fales in
25883         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
25884
25885 2008-01-08  Bruno Haible  <bruno@clisp.org>
25886
25887         * modules/unictype/category-of (Depends-on): Add
25888         unictype/category-none.
25889         * modules/unictype/category-and-tests (Depends-on): Add
25890         unictype/category-{L,N,Lu,Nd}.
25891         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
25892         * modules/unictype/category-or-tests (Depends-on): Add
25893         unictype/category-{L,N}.
25894         * modules/unictype/category-name-tests (Depends-on): Add
25895         unictype/category-{Z,Nl}.
25896         Reported by Simon Josefsson.
25897
25898 2008-01-08  Bruno Haible  <bruno@clisp.org>
25899
25900         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
25901         convention better.
25902         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
25903         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
25904         Reported by Peter Miller <millerp@canb.auug.org.au>.
25905
25906 2008-01-08  Eric Blake  <ebb9@byu.net>
25907
25908         Rewrite memmem to guarantee linear complexity without malloc.
25909         * lib/memmem.c (memmem): Use Two-Way rather than
25910         Knuth-Morris-Pratt, to allow O(1) space usage.
25911         (critical_factorization, two_way_short_needle)
25912         (two_way_long_needle): New functions.
25913         (knuth_morris_pratt): Delete.
25914         * modules/memmem (Depends-on): No longer need malloca or stdbool.
25915         Add stdint.
25916         * tests/test-memmem.c (main): Add tests for periodic needle and
25917         sublinear performance.
25918         * doc/functions/memmem.texi (memmem): Document other deficiencies
25919         in cygwin and older glibc.
25920
25921 2008-01-08  Bruno Haible  <bruno@clisp.org>
25922
25923         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
25924         augmentation.
25925
25926 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
25927
25928         Add a configure time option: --disable-acl.
25929         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
25930         AC_ARG_ENABLE(acl).
25931
25932 2008-01-06  Simon Josefsson  <simon@josefsson.org>
25933
25934         * tests/test-localename.c: Don't include obsolete "setenv.h".
25935
25936         * modules/localename-tests (Depends-on): Need unsetenv.
25937
25938 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25939
25940         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
25941
25942 2008-01-06  Colin Watson  <cjwatson@debian.org>
25943
25944         * users.txt: Add man-db.
25945
25946 2008-01-07  Bruno Haible  <bruno@clisp.org>
25947
25948         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
25949         previous section name.
25950
25951 2008-01-07  Bruno Haible  <bruno@clisp.org>
25952
25953         * lib/progname.c (set_program_name): Don't strip off a leading
25954         "lt-" prefix outside a .libs directory.
25955         Suggested by Paul Eggert.
25956
25957 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
25958             Bruno Haible  <bruno@clisp.org>
25959
25960         Improve memory cleanup in 'relocatable' module.
25961         * lib/relocatable.h (compute_curr_prefix): Change return type to
25962         'char *'.
25963         * lib/relocatable.c (compute_curr_prefix): Change return type to
25964         'char *'. Free curr_installdir after use.
25965         (relocate): Free curr_prefix_better after use.
25966         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
25967
25968 2008-01-01  Bruno Haible  <bruno@clisp.org>
25969
25970         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
25971         failure on older glibc systems.
25972         Reported by Peter Fales <psfales@alcatel-lucent.com>.
25973
25974 2008-01-05  Eric Blake  <ebb9@byu.net>
25975
25976         Avoid quadratic system memmem.
25977         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
25978         Reported by Ralf Wildenhues.
25979
25980         Fix memmem test for mingw.
25981         * modules/memmem-tests (configure.ac): Check for alarm.
25982         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
25983         it.
25984         * doc/functions/memmem.texi: New file.
25985         * doc/gnulib.texi (Function Substitutes): Add memmem.
25986         Reported by Bruno Haible.
25987
25988 2008-01-04  Bruno Haible  <bruno@clisp.org>
25989
25990         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
25991         Require gl_HEADER_STRINGS_H_DEFAULTS, not
25992         gl_HEADER_STRING_H_DEFAULTS.
25993
25994 2008-01-04  Eric Blake  <ebb9@byu.net>
25995
25996         Shorten duration of memmem test.
25997         * tests/test-memmem.c (main): Use alarm to declare failure if test
25998         is taking too long.
25999         Reported by Ralf Wildenhues.
26000
26001 2007-12-21  Simon Josefsson  <simon@josefsson.org>
26002
26003         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
26004         string, needed by strerror.
26005
26006 2008-01-03  Colin Watson  <cjwatson@debian.org>
26007             Bruno Haible  <bruno@clisp.org>
26008
26009         * doc/gnulib-tool.texi (Localization): New section.
26010
26011 2008-01-02  Bruno Haible  <bruno@clisp.org>
26012
26013         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
26014         variables to 'unsigned char *' type.
26015         Reported by Paul Eggert.
26016
26017 2008-01-02  Jim Meyering  <jim@meyering.net>
26018
26019         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
26020
26021 2007-12-31  Jim Meyering  <jim@meyering.net>
26022
26023         Avoid use of private FTS type name.
26024         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
26025
26026 2007-12-30  Karl Berry  <karl@gnu.org>
26027
26028         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
26029         work around defect in Texinfo and/or the standalone Info browser.
26030
26031 2007-12-30  Bruno Haible  <bruno@clisp.org>
26032
26033         Unify 5 copies of the KMP code.
26034         * lib/str-kmp.h: New file.
26035         * lib/c-strcasestr.c: Include str-kmp.h.
26036         (knuth_morris_pratt): Remove function.
26037         (c_strcasestr): Update.
26038         * lib/c-strstr.c: Include str-kmp.h.
26039         (knuth_morris_pratt): Remove function.
26040         (c_strcasestr): Update.
26041         * lib/mbscasestr.c: Include str-kmp.h.
26042         (knuth_morris_pratt_unibyte): Remove function.
26043         * lib/mbsstr.c: Include str-kmp.h.
26044         (knuth_morris_pratt_unibyte): Remove function.
26045         * lib/strcasestr.c: Include str-kmp.h.
26046         (knuth_morris_pratt): Remove function.
26047         (strcasestr): Update.
26048         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
26049         * modules/c-strstr (Files): Likewise.
26050         * modules/mbscasestr (Files): Likewise.
26051         * modules/mbsstr (Files): Likewise.
26052         * modules/strcasestr (Files): Likewise.
26053         Suggested by Paul Eggert.
26054
26055 2007-12-30  Bruno Haible  <bruno@clisp.org>
26056
26057         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
26058         defined.
26059
26060 2007-12-30  Bruno Haible  <bruno@clisp.org>
26061
26062         * lib/xmalloca.h: Include xalloc.h.
26063         (xnmalloca): New macro.
26064
26065 2007-12-30  Bruno Haible  <bruno@clisp.org>
26066
26067         * lib/malloca.h (nmalloca): New macro.
26068         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
26069         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
26070         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
26071         knuth_morris_pratt_multibyte): Likewise.
26072         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
26073         knuth_morris_pratt_multibyte): Likewise.
26074         * lib/memmem.c (knuth_morris_pratt): Likewise.
26075         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
26076
26077 2007-12-25  Bruno Haible  <bruno@clisp.org>
26078
26079         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
26080         * lib/glob.c: Don't include openat.h.
26081         (link_exists2_p): Add back the code that deals with the
26082         !GLOB_ALTDIRFUNC case.
26083         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
26084         let it do the filename concatenation.
26085         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
26086         * modules/glob (Depends-on): Remove openat.
26087
26088 2007-12-31  Bruno Haible  <bruno@clisp.org>
26089
26090         * modules/dirfd (License): Change to LGPLv2+.
26091         Approved by Jim Meyering.
26092
26093 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26094
26095         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
26096         when multiplying M by sizeof (size_t).
26097
26098 2007-12-10  Martin Lambers  <marlam@marlam.de>
26099
26100         Override getpagesize on mingw.
26101         * lib/getpagesize.c: New file.
26102         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
26103         * modules/getpagesize (Files): Add lib/getpagesize.c.
26104         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
26105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26106         REPLACE_GETPAGESIZE.
26107         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
26108
26109 2007-12-25  Bruno Haible  <bruno@clisp.org>
26110
26111         * modules/localcharset (Notice): New field.
26112         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
26113         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
26114
26115 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
26116             Bruno Haible  <bruno@clisp.org>
26117
26118         Avoid using the syntax symbol() in formatted documentation.
26119         * MODULES.html.sh (func_module): When replacing symbol() with a
26120         hyperlink, remove the parentheses. Show an error if some remain.
26121         Recognize and render the '...' syntax.
26122         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
26123         Rework. Add paragraph about GCC's inlining.
26124         * doc/alloca.texi: Likewise.
26125         * doc/error.texi: Remove parentheses from symbol reference.
26126         * doc/gnulib-intro.texi: Likewise.
26127         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
26128         * modules/fnmatch (Description): Reword to say "the ... function".
26129         * modules/full-read (Description): Likewise.
26130         * modules/full-write (Description): Likewise.
26131         * modules/safe-read (Description): Likewise.
26132         * modules/safe-write (Description): Likewise.
26133         * modules/strchrnul (Description): Likewise.
26134         * modules/trim (Description): Likewise.
26135         * modules/error (Description): Remove parentheses from symbol
26136         references.
26137         * modules/verror (Description): Likewise.
26138         Reported by Karl Berry.
26139
26140 2007-12-25  Bruno Haible  <bruno@clisp.org>
26141
26142         Fixup after 2007-10-16 commit.
26143         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
26144
26145 2007-12-24  Bruno Haible  <bruno@clisp.org>
26146
26147         Make --enable-relocatable work with DESTDIR.
26148         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
26149         to compute installdir from destprog.
26150         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
26151         also set the RELOC_DESTDIR variable.
26152         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
26153
26154 2007-12-24  Bruno Haible  <bruno@clisp.org>
26155
26156         Fix link error due to xalloc_die().
26157         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
26158         of xreadlink.
26159         * lib/relocwrapper.c: Update comments.
26160         * build-aux/install-reloc: Remove xreadlink.c from file list.
26161         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
26162         xreadlink.c.
26163         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
26164
26165 2007-12-24  Bruno Haible  <bruno@clisp.org>
26166
26167         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
26168         * lib/setenv.h: Remove file.
26169         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
26170         lib/setenv.h.
26171         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
26172         (Depends-on): Add stdlib.
26173         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
26174         gl_FUNC_UNSETENV.
26175         (Include): Replace setenv.h with <stdlib.h>.
26176         * modules/unsetenv: New file.
26177         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
26178         * lib/unsetenv.c: Include <stdlib.h> first.
26179         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
26180         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
26181         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
26182         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
26183         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
26184         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
26185         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
26186         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
26187         * doc/functions/unsetenv.texi: Update.
26188         * modules/xsetenv (Depends-on): Add unsetenv.
26189         * modules/getdate (Depends-on): Likewise.
26190         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
26191         * lib/xsetenv.c: Don't include setenv.h.
26192         * lib/getdate.y: Likewise.
26193         * lib/relocwrapper.c: Likewise.
26194         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
26195         (Depends-on): Add stdlib.
26196         * NEWS: Mention the changes.
26197         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
26198
26199 2007-12-23  Bruno Haible  <bruno@clisp.org>
26200
26201         * lib/memmem.c (memmem): Use lowercase variable names. Tab
26202         indentation.
26203
26204 2007-12-23  Bruno Haible  <bruno@clisp.org>
26205
26206         * lib/c-strcasestr.c: Add more comments.
26207         * lib/c-strstr.c: Likewise.
26208         * lib/mbscasestr.c: Likewise.
26209         * lib/mbsstr.c: Likewise.
26210         * lib/strcasestr.c: Likewise.
26211         * lib/memmem.c: Likewise.
26212
26213 2007-12-23  Bruno Haible  <bruno@clisp.org>
26214
26215         * tests/test-memmem.c: Include <string.h> first.
26216
26217 2007-12-22  Bruno Haible  <bruno@clisp.org>
26218
26219         * gnulib-tool (func_create_testdir): Change $auxdir while generating
26220         the contents of $testsbase.
26221         Reported by Ralf Wildenhues.
26222
26223 2007-12-22  Bruno Haible  <bruno@clisp.org>
26224
26225         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
26226         two variables local_ldadd_before, local_ldadd_last.
26227
26228 2007-12-20  Eric Blake  <ebb9@byu.net>
26229
26230         Work around circular library issue when cross-compiling.
26231         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
26232         that progname.o does not need to pull in rpl_memcmp.
26233
26234 2007-12-19  Eric Blake  <ebb9@byu.net>
26235
26236         Fix memmem to avoid O(n^2) worst-case complexity.
26237         * lib/memmem.c (knuth_morris_pratt): New function.
26238         (memmem): Use it if first few naive iterations fail.
26239         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
26240         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
26241         * modules/memchr (License): Likewise.
26242         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
26243         malloca.
26244         * tests/test-memmem.c: Rewrite, borrowing ideas from
26245         test-mbsstr1.c; the old version wouldn't even compile!
26246         * modules/memmem-tests: New file.
26247         * lib/string.in.h (rpl_memmem): Add declaration.
26248         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
26249         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
26250         REPLACE_MEMMEM.
26251
26252 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26253
26254         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
26255         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
26256         before any system include files, and undef after them all.  This
26257         should fix a problem on VMS reported by John E. Malmberg in
26258         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
26259
26260 2007-12-17  Eric Blake  <ebb9@byu.net>
26261
26262         Revert addition of verify, for BSD/OS.
26263         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
26264         can't handle large files, for the sake of obsolete platforms.
26265         * modules/fseeko (Depends-on): Remove verify.
26266         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
26267         * doc/functions/ftello.texi (ftello): Likewise.
26268         * doc/functions/fgetpos.texi (fgetpos): Likewise.
26269         Reported by Larry Jones.
26270
26271 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
26272
26273         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
26274         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
26275
26276 2007-12-17  Jim Meyering  <meyering@redhat.com>
26277
26278         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
26279         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
26280         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
26281         * modules/getcwd (Depends-on): Add openat.
26282         Reported by Petr Salinger.
26283
26284 2007-12-17  Bruno Haible  <bruno@clisp.org>
26285
26286         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
26287         avoid a segmentation fault of the configure test on x86_64 systems.
26288
26289 2007-12-15  Jim Meyering  <meyering@redhat.com>
26290
26291         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
26292
26293 2007-12-13  Eric Blake  <ebb9@byu.net>
26294
26295         Another fseek test.
26296         * tests/test-fseek.c (main): Also test ungetc handling.
26297         * tests/test-fseeko.c (main): Likewise.
26298         * modules/fseeko (Depends-on): Add verify.
26299         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
26300         large.
26301         Reported by Larry Jones.
26302
26303         Fix fseeko on mingw.
26304         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
26305         seek.
26306
26307         Beef up fseek tests.
26308         * tests/test-fseek.c (main): Also test eof handling.
26309         * tests/test-fseeko.c (main): Likewise.
26310         Reported by Larry Jones.
26311
26312 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
26313
26314         Fix fseeko on BSD-based platforms.
26315         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
26316         successful seek.
26317
26318 2007-12-12  Eric Blake  <ebb9@byu.net>
26319
26320         Allow circular dependency of separate libtests.a
26321         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
26322         when use_libtests.
26323
26324 2007-12-11  Eric Blake  <ebb9@byu.net>
26325
26326         Fix bug with -0.0L in previous patch.
26327         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
26328         * tests/test-isnan.c (main): Also test on zeroes.
26329         * tests/test-isnanf.c (main): Likewise.
26330         * tests/test-isnanl.h (main): Likewise.
26331
26332         Detect pseudo-denormals on x86 even when cross-compiling.
26333         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
26334         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
26335         invalid bit patterns that happen to satisfy ==.
26336
26337         Avoid link failures with separate libtests.a.
26338         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
26339         last, to satisfy circular dependencies.
26340
26341 2007-12-11  Eric Blake  <ebb9@byu.net>
26342         and Bruno Haible  <bruno@clisp.org>
26343
26344         Fix OpenBSD 4.0 <float.h> handling of long double.
26345         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
26346         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
26347         * doc/headers/float.texi (float.h): Document OpenBSD bug.
26348
26349 2007-12-11  Jim Meyering  <meyering@redhat.com>
26350
26351         * users.txt: Add libvirt.
26352
26353         Support versions of autoconf prior to 2.59c.
26354         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
26355         if it is not already defined.
26356
26357 2007-12-09  Bruno Haible  <bruno@clisp.org>
26358
26359         Let 'gnulib-tool --import' collect sources needed for the tests in
26360         tests/ rather than in lib/.
26361         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
26362         argument. If true, add rules to generate libtests.a, and put libtests.a
26363         into $(LDADD). Consider source files in subdirectories and set
26364         uses_subdirs.
26365         (func_emit_initmacro_start, func_emit_initmacro_end,
26366         func_emit_initmacro_done): Pass all arguments explicitly.
26367         (func_import): Determine two module lists main_modules,
26368         testsrelated_modules. Determine use_libtests. Determine two variables
26369         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
26370         instead of just sed_transform_lib_file. Determine two variables
26371         main_files and testsrelated_files. Compute 'files' as the union of
26372         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
26373         func_add_or_update. In the generated gnulib-comp.m4, collect the
26374         object files for tests/ in different variables than those for lib/.
26375         Substitute LIBTESTS_LIBDEPS.
26376         (func_create_testdir): Combine the uses_subdirs results from
26377         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
26378
26379 2007-12-09  Bruno Haible  <bruno@clisp.org>
26380
26381         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
26382         the build-aux directory.
26383
26384 2007-12-09  Bruno Haible  <bruno@clisp.org>
26385
26386         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
26387         introduced on 2006-09-09.
26388
26389 2007-12-07  Jim Meyering  <meyering@redhat.com>
26390
26391         Let these macros work also with autoconf-2.59.
26392         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
26393         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
26394         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26395
26396 2007-12-06  Jim Meyering  <meyering@redhat.com>
26397
26398         Avoid a configure-time syntax error in gl_FUNC_ACL.
26399         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
26400         function in each branch, before testing the cache variable.
26401
26402 2007-12-04  Eric Blake  <ebb9@byu.net>
26403
26404         Make scripts executable.
26405         * build-aux/config.guess: Add execute permissions.
26406         * build-aux/config.sub: Likewise.
26407         * build-aux/gendocs.sh: Likewise.
26408
26409         Fix frexp on mingw.
26410         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
26411         cross-compiling.
26412         * doc/functions/frexp.texi (frexp): Document the bug.
26413
26414         Make cygwin fseeko check more reliable.
26415         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
26416         version numbers, rather than unrelated feature check.
26417         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
26418         * doc/functions/ftello.texi (ftello): Likewise.
26419         Reported by Bruno Haible.
26420
26421         * m4/strerror.m4: Bump version number.
26422
26423 2007-12-03  Bruno Haible  <bruno@clisp.org>
26424
26425         * doc/functions/mprotect.texi: Mention the mingw problem.
26426
26427 2007-12-03  Eric Blake  <ebb9@byu.net>
26428
26429         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
26430         REPLACE_STRERROR is initialized before this macro.
26431
26432 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
26433
26434         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
26435         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
26436         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
26437         put -lsec in even for programs other than 'ls'.  This fixes a problem
26438         for gettext reported by Bruno Haible in
26439         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
26440         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
26441         Add support for Solaris 10.  This isn't efficient, but should get the
26442         job done for now.
26443
26444 2007-12-03  James Youngman  <jay@gnu.org>
26445
26446         * doc/regexprops-generic.texi: change "an close-group" to "a
26447         close-group" and "illegal" to "not allowed".
26448
26449 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26450
26451         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
26452         pr_byname.h. Needed for the rare case when the maintainer has done
26453         "make maintainer-clean" in the source directory and then attempts a
26454         build outside the source directory.
26455         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
26456         scripts_byname.h.
26457
26458 2007-12-02  Martin Lambers <marlam@marlam.de>
26459             Bruno Haible  <bruno@clisp.org>
26460
26461         * lib/getpagesize.h: Remove file.
26462         * lib/unistd.in.h: Include declaration of getpagesize here.
26463         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
26464         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
26465         HAVE_SYS_PARAM_H.
26466         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
26467         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
26468         * modules/getpagesize (Files): Remove lib/getpagesize.h.
26469         (Depends-on): Add unistd.
26470         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26471         (Include): Use <unistd.h> instead of getpagesize.h.
26472         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
26473         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
26474         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
26475         gl_GETPAGESIZE invocation, already handled by module dependency.
26476         * lib/pagealign_alloc.c: Don't include getpagesize.h.
26477
26478 2007-12-02  Bruno Haible  <bruno@clisp.org>
26479
26480         * modules/strings-tests: New file.
26481         * tests/test-strings.c: New file.
26482
26483         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
26484         * lib/strings.in.h: New file.
26485         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
26486         * m4/strings_h.m4: New file.
26487         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
26488         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
26489         * modules/strings: New file.
26490         * modules/string (Makefile.am): Update.
26491         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
26492         Reported by Karl Berry.
26493
26494 2007-12-01  Eric Blake  <ebb9@byu.net>
26495
26496         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
26497         accomodate fix in cygwin 1.5.25.
26498
26499 2007-12-01  Jim Meyering  <meyering@redhat.com>
26500
26501         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
26502         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
26503         that would inhibit utf8-optimization of a regexp containing line-
26504         or buffer-anchors, e.g., `^', `$'.
26505
26506 2007-11-30  Bruno Haible  <bruno@clisp.org>
26507
26508         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
26509         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
26510         glthread_recursive_lock_init.
26511         * lib/lock.c (glthread_recursive_lock_init)
26512         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
26513         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26514
26515 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
26516
26517         New function qset_acl, like set_acl but with syscall semantics.
26518         * lib/acl.h (qset_acl): New decl.
26519         * lib/acl.c (qset_acl): New function.
26520         (set_acl): Use new function.  Use more-consistent diagnostics.
26521
26522 2007-11-28  Jim Meyering  <meyering@redhat.com>
26523
26524         * modules/physmem (License): Change from GPL to LGPLv2+.
26525
26526 2007-11-26  Bruno Haible  <bruno@clisp.org>
26527
26528         * lib/vasnprintf.c (decode_long_double): Don't abort if the
26529         'long double' type has excess precision.
26530         Reported by Jim Meyering in
26531         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
26532
26533 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26534
26535         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
26536         Sync from <http://gnu.org/licenses>.
26537         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
26538         with license text from same location.
26539         * doc/maintain.texi, doc/standards.texi:  Sync from
26540         <http://savannah.gnu.org/projects/gnustandards>.
26541
26542 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
26543         and Jim Meyering  <meyering@redhat.com>
26544
26545         Adjust getdate' grammar to accept a slightly more regular language.
26546         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
26547         Before, the former was rejected.
26548         * lib/getdate.y (digits_to_date_time): New function, factored
26549         out of ...
26550         (number): ...here.  Just call digits_to_date_time.
26551         (hybrid): New non-terminal to handle an <unsigned number,
26552         signed relative offset> sequence consistently.
26553
26554 2007-11-18  Jim Meyering  <meyering@redhat.com>
26555
26556         Pull my changes from coreutils:
26557         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
26558         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
26559         use of $gnulib_tool_option_extras, so that it's separated from the
26560         preceding argument.
26561
26562         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
26563         * build-aux/bootstrap (cp_mark_as_generated): Create any required
26564         parent destination directories before copying a file into place.
26565
26566 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
26567
26568         bootstrap: work also with 4-argument variant of AC_INIT
26569         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
26570
26571 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
26572
26573         Port test-getaddrinfo to Solaris.
26574         Problem reported by Bruno Haible in
26575         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
26576         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
26577         explanation of setting 'hints'.
26578         Don't reject an implementation merely because it returns EAI_SERVICE.
26579         (EAI_SERVICE): Define to 0 if not defined.
26580
26581 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
26582
26583         The license of gnu-make and posix-shell is now "GPLed build tool".
26584         * modules/gnu-make (License): Likewise.
26585         * modules/posix-shell (License): Likewise.
26586
26587         New module posix-shell, for determining a POSIX shell
26588         or perhaps something that is close enough to a POSIX shell.
26589         * m4/posix-shell.m4: New file.
26590         * modules/posix-shell: New file.
26591
26592         * MODULES.html.sh: Mention new module.
26593
26594         New module gnu-make, for determining whether we're using GNU Make.
26595         * m4/gnu-make.m4: New file.
26596         * modules/gnu-make: New file.
26597         * MODULES.html.sh: Mention new module.
26598
26599 2007-11-14  Jim Meyering  <meyering@redhat.com>
26600
26601         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
26602         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
26603         use this macro to create a function _definition_.
26604         Remove useless "#undef ARGMATCH_DIE".
26605
26606 2007-11-14  Bruno Haible  <bruno@clisp.org>
26607
26608         * lib/config.charset: Update for OpenBSD 4.1.
26609         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
26610
26611 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
26612
26613         Document 64-bit #if problems in stdint.texi.
26614         * doc/headers/stdint.texi (stdint.h): Mention problems with
26615         64-bit-#if, and how to work around them.
26616
26617         Don't insist on 'long long int' support in the preprocessor.  It
26618         breaks too many things.  For example, PRIdMAX still uses a 'long
26619         long int' format with the latest Sun compiler, even though
26620         HAVE_LONG_LONG_INT isn't defined due to that compiler's
26621         preprocessor problem.  This causes the latest coreutils to dump
26622         core on Solaris 10 sparc with the Sun C compiler.
26623         Instead, fix the 2007-10-16 problem in a different way, by evaluating
26624         the troublesome expressions at configure-time, not at #if-time.
26625         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
26626         preprocessor.
26627         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
26628         compile-time C checks, done at 'configure'-time.
26629         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
26630         * modules/inttypes (Makefile): Substitute the new symbols that
26631         gl_INTTYPES_H now generates.
26632         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
26633
26634 2007-11-12  Bruno Haible  <bruno@clisp.org>
26635
26636         Tests for Unicode character classification functions.
26637
26638         * modules/unictype/bidicategory-byname-tests: New file.
26639         * modules/unictype/bidicategory-name-tests: New file.
26640         * modules/unictype/bidicategory-of-tests: New file.
26641         * modules/unictype/bidicategory-test-tests: New file.
26642         * modules/unictype/block-list-tests: New file.
26643         * modules/unictype/block-of-tests: New file.
26644         * modules/unictype/block-test-tests: New file.
26645         * modules/unictype/category-C-tests: New file.
26646         * modules/unictype/category-Cc-tests: New file.
26647         * modules/unictype/category-Cf-tests: New file.
26648         * modules/unictype/category-Cn-tests: New file.
26649         * modules/unictype/category-Co-tests: New file.
26650         * modules/unictype/category-Cs-tests: New file.
26651         * modules/unictype/category-L-tests: New file.
26652         * modules/unictype/category-Ll-tests: New file.
26653         * modules/unictype/category-Lm-tests: New file.
26654         * modules/unictype/category-Lo-tests: New file.
26655         * modules/unictype/category-Lt-tests: New file.
26656         * modules/unictype/category-Lu-tests: New file.
26657         * modules/unictype/category-M-tests: New file.
26658         * modules/unictype/category-Mc-tests: New file.
26659         * modules/unictype/category-Me-tests: New file.
26660         * modules/unictype/category-Mn-tests: New file.
26661         * modules/unictype/category-N-tests: New file.
26662         * modules/unictype/category-Nd-tests: New file.
26663         * modules/unictype/category-Nl-tests: New file.
26664         * modules/unictype/category-No-tests: New file.
26665         * modules/unictype/category-P-tests: New file.
26666         * modules/unictype/category-Pc-tests: New file.
26667         * modules/unictype/category-Pd-tests: New file.
26668         * modules/unictype/category-Pe-tests: New file.
26669         * modules/unictype/category-Pf-tests: New file.
26670         * modules/unictype/category-Pi-tests: New file.
26671         * modules/unictype/category-Po-tests: New file.
26672         * modules/unictype/category-Ps-tests: New file.
26673         * modules/unictype/category-S-tests: New file.
26674         * modules/unictype/category-Sc-tests: New file.
26675         * modules/unictype/category-Sk-tests: New file.
26676         * modules/unictype/category-Sm-tests: New file.
26677         * modules/unictype/category-So-tests: New file.
26678         * modules/unictype/category-Z-tests: New file.
26679         * modules/unictype/category-Zl-tests: New file.
26680         * modules/unictype/category-Zp-tests: New file.
26681         * modules/unictype/category-Zs-tests: New file.
26682         * modules/unictype/category-and-not-tests: New file.
26683         * modules/unictype/category-and-tests: New file.
26684         * modules/unictype/category-byname-tests: New file.
26685         * modules/unictype/category-name-tests: New file.
26686         * modules/unictype/category-none-tests: New file.
26687         * modules/unictype/category-of-tests: New file.
26688         * modules/unictype/category-or-tests: New file.
26689         * modules/unictype/category-test-withtable-tests: New file.
26690         * modules/unictype/combining-class-tests: New file.
26691         * modules/unictype/ctype-alnum-tests: New file.
26692         * modules/unictype/ctype-alpha-tests: New file.
26693         * modules/unictype/ctype-blank-tests: New file.
26694         * modules/unictype/ctype-cntrl-tests: New file.
26695         * modules/unictype/ctype-digit-tests: New file.
26696         * modules/unictype/ctype-graph-tests: New file.
26697         * modules/unictype/ctype-lower-tests: New file.
26698         * modules/unictype/ctype-print-tests: New file.
26699         * modules/unictype/ctype-punct-tests: New file.
26700         * modules/unictype/ctype-space-tests: New file.
26701         * modules/unictype/ctype-upper-tests: New file.
26702         * modules/unictype/ctype-xdigit-tests: New file.
26703         * modules/unictype/decimal-digit-tests: New file.
26704         * modules/unictype/digit-tests: New file.
26705         * modules/unictype/mirror-tests: New file.
26706         * modules/unictype/numeric-tests: New file.
26707         * modules/unictype/property-alphabetic-tests: New file.
26708         * modules/unictype/property-ascii-hex-digit-tests: New file.
26709         * modules/unictype/property-bidi-arabic-digit-tests: New file.
26710         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
26711         * modules/unictype/property-bidi-block-separator-tests: New file.
26712         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
26713         * modules/unictype/property-bidi-common-separator-tests: New file.
26714         * modules/unictype/property-bidi-control-tests: New file.
26715         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
26716         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
26717         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
26718         * modules/unictype/property-bidi-european-digit-tests: New file.
26719         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
26720         * modules/unictype/property-bidi-left-to-right-tests: New file.
26721         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
26722         * modules/unictype/property-bidi-other-neutral-tests: New file.
26723         * modules/unictype/property-bidi-pdf-tests: New file.
26724         * modules/unictype/property-bidi-segment-separator-tests: New file.
26725         * modules/unictype/property-bidi-whitespace-tests: New file.
26726         * modules/unictype/property-byname-tests: New file.
26727         * modules/unictype/property-combining-tests: New file.
26728         * modules/unictype/property-composite-tests: New file.
26729         * modules/unictype/property-currency-symbol-tests: New file.
26730         * modules/unictype/property-dash-tests: New file.
26731         * modules/unictype/property-decimal-digit-tests: New file.
26732         * modules/unictype/property-default-ignorable-code-point-tests: New file.
26733         * modules/unictype/property-deprecated-tests: New file.
26734         * modules/unictype/property-diacritic-tests: New file.
26735         * modules/unictype/property-extender-tests: New file.
26736         * modules/unictype/property-format-control-tests: New file.
26737         * modules/unictype/property-grapheme-base-tests: New file.
26738         * modules/unictype/property-grapheme-extend-tests: New file.
26739         * modules/unictype/property-grapheme-link-tests: New file.
26740         * modules/unictype/property-hex-digit-tests: New file.
26741         * modules/unictype/property-hyphen-tests: New file.
26742         * modules/unictype/property-id-continue-tests: New file.
26743         * modules/unictype/property-id-start-tests: New file.
26744         * modules/unictype/property-ideographic-tests: New file.
26745         * modules/unictype/property-ids-binary-operator-tests: New file.
26746         * modules/unictype/property-ids-trinary-operator-tests: New file.
26747         * modules/unictype/property-ignorable-control-tests: New file.
26748         * modules/unictype/property-iso-control-tests: New file.
26749         * modules/unictype/property-join-control-tests: New file.
26750         * modules/unictype/property-left-of-pair-tests: New file.
26751         * modules/unictype/property-line-separator-tests: New file.
26752         * modules/unictype/property-logical-order-exception-tests: New file.
26753         * modules/unictype/property-lowercase-tests: New file.
26754         * modules/unictype/property-math-tests: New file.
26755         * modules/unictype/property-non-break-tests: New file.
26756         * modules/unictype/property-not-a-character-tests: New file.
26757         * modules/unictype/property-numeric-tests: New file.
26758         * modules/unictype/property-other-alphabetic-tests: New file.
26759         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
26760         * modules/unictype/property-other-grapheme-extend-tests: New file.
26761         * modules/unictype/property-other-id-continue-tests: New file.
26762         * modules/unictype/property-other-id-start-tests: New file.
26763         * modules/unictype/property-other-lowercase-tests: New file.
26764         * modules/unictype/property-other-math-tests: New file.
26765         * modules/unictype/property-other-uppercase-tests: New file.
26766         * modules/unictype/property-paired-punctuation-tests: New file.
26767         * modules/unictype/property-paragraph-separator-tests: New file.
26768         * modules/unictype/property-pattern-syntax-tests: New file.
26769         * modules/unictype/property-pattern-white-space-tests: New file.
26770         * modules/unictype/property-private-use-tests: New file.
26771         * modules/unictype/property-punctuation-tests: New file.
26772         * modules/unictype/property-quotation-mark-tests: New file.
26773         * modules/unictype/property-radical-tests: New file.
26774         * modules/unictype/property-sentence-terminal-tests: New file.
26775         * modules/unictype/property-soft-dotted-tests: New file.
26776         * modules/unictype/property-space-tests: New file.
26777         * modules/unictype/property-terminal-punctuation-tests: New file.
26778         * modules/unictype/property-test-tests: New file.
26779         * modules/unictype/property-titlecase-tests: New file.
26780         * modules/unictype/property-unassigned-code-value-tests: New file.
26781         * modules/unictype/property-unified-ideograph-tests: New file.
26782         * modules/unictype/property-uppercase-tests: New file.
26783         * modules/unictype/property-variation-selector-tests: New file.
26784         * modules/unictype/property-white-space-tests: New file.
26785         * modules/unictype/property-xid-continue-tests: New file.
26786         * modules/unictype/property-xid-start-tests: New file.
26787         * modules/unictype/property-zero-width-tests: New file.
26788         * modules/unictype/scripts-tests: New file.
26789         * modules/unictype/syntax-c-ident-tests: New file.
26790         * modules/unictype/syntax-c-whitespace-tests: New file.
26791         * modules/unictype/syntax-java-ident-tests: New file.
26792         * modules/unictype/syntax-java-whitespace-tests: New file.
26793         * tests/unictype/test-bidi_byname.c: New file.
26794         * tests/unictype/test-bidi_name.c: New file.
26795         * tests/unictype/test-bidi_of.c: New file.
26796         * tests/unictype/test-bidi_test.c: New file.
26797         * tests/unictype/test-block_list.c: New file.
26798         * tests/unictype/test-block_of.c: New file.
26799         * tests/unictype/test-block_test.c: New file.
26800         * tests/unictype/test-categ_and.c: New file.
26801         * tests/unictype/test-categ_and_not.c: New file.
26802         * tests/unictype/test-categ_byname.c: New file.
26803         * tests/unictype/test-categ_name.c: New file.
26804         * tests/unictype/test-categ_none.c: New file.
26805         * tests/unictype/test-categ_of.c: New file.
26806         * tests/unictype/test-categ_or.c: New file.
26807         * tests/unictype/test-categ_test_withtable.c: New file.
26808         * tests/unictype/test-combining.c: New file.
26809         * tests/unictype/test-decdigit.c: New file.
26810         * tests/unictype/test-digit.c: New file.
26811         * tests/unictype/test-mirror.c: New file.
26812         * tests/unictype/test-numeric.c: New file.
26813         * tests/unictype/test-pr_byname.c: New file.
26814         * tests/unictype/test-pr_test.c: New file.
26815         * tests/unictype/test-predicate-part1.h: New file.
26816         * tests/unictype/test-predicate-part2.h: New file.
26817         * tests/unictype/test-scripts.c: New file.
26818         * tests/unictype/test-sy_c_ident.c: New file.
26819         * tests/unictype/test-sy_java_ident.c: New file.
26820
26821         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
26822         for Unicode 5.0.0.
26823         * tests/unictype/test-categ_Cc.c: Likewise.
26824         * tests/unictype/test-categ_Cf.c: Likewise.
26825         * tests/unictype/test-categ_Cn.c: Likewise.
26826         * tests/unictype/test-categ_Co.c: Likewise.
26827         * tests/unictype/test-categ_Cs.c: Likewise.
26828         * tests/unictype/test-categ_L.c: Likewise.
26829         * tests/unictype/test-categ_Ll.c: Likewise.
26830         * tests/unictype/test-categ_Lm.c: Likewise.
26831         * tests/unictype/test-categ_Lo.c: Likewise.
26832         * tests/unictype/test-categ_Lt.c: Likewise.
26833         * tests/unictype/test-categ_Lu.c: Likewise.
26834         * tests/unictype/test-categ_M.c: Likewise.
26835         * tests/unictype/test-categ_Mc.c: Likewise.
26836         * tests/unictype/test-categ_Me.c: Likewise.
26837         * tests/unictype/test-categ_Mn.c: Likewise.
26838         * tests/unictype/test-categ_N.c: Likewise.
26839         * tests/unictype/test-categ_Nd.c: Likewise.
26840         * tests/unictype/test-categ_Nl.c: Likewise.
26841         * tests/unictype/test-categ_No.c: Likewise.
26842         * tests/unictype/test-categ_P.c: Likewise.
26843         * tests/unictype/test-categ_Pc.c: Likewise.
26844         * tests/unictype/test-categ_Pd.c: Likewise.
26845         * tests/unictype/test-categ_Pe.c: Likewise.
26846         * tests/unictype/test-categ_Pf.c: Likewise.
26847         * tests/unictype/test-categ_Pi.c: Likewise.
26848         * tests/unictype/test-categ_Po.c: Likewise.
26849         * tests/unictype/test-categ_Ps.c: Likewise.
26850         * tests/unictype/test-categ_S.c: Likewise.
26851         * tests/unictype/test-categ_Sc.c: Likewise.
26852         * tests/unictype/test-categ_Sk.c: Likewise.
26853         * tests/unictype/test-categ_Sm.c: Likewise.
26854         * tests/unictype/test-categ_So.c: Likewise.
26855         * tests/unictype/test-categ_Z.c: Likewise.
26856         * tests/unictype/test-categ_Zl.c: Likewise.
26857         * tests/unictype/test-categ_Zp.c: Likewise.
26858         * tests/unictype/test-categ_Zs.c: Likewise.
26859         * tests/unictype/test-ctype_alnum.c: Likewise.
26860         * tests/unictype/test-ctype_alpha.c: Likewise.
26861         * tests/unictype/test-ctype_blank.c: Likewise.
26862         * tests/unictype/test-ctype_cntrl.c: Likewise.
26863         * tests/unictype/test-ctype_digit.c: Likewise.
26864         * tests/unictype/test-ctype_graph.c: Likewise.
26865         * tests/unictype/test-ctype_lower.c: Likewise.
26866         * tests/unictype/test-ctype_print.c: Likewise.
26867         * tests/unictype/test-ctype_punct.c: Likewise.
26868         * tests/unictype/test-ctype_space.c: Likewise.
26869         * tests/unictype/test-ctype_upper.c: Likewise.
26870         * tests/unictype/test-ctype_xdigit.c: Likewise.
26871         * tests/unictype/test-decdigit.h: Likewise.
26872         * tests/unictype/test-digit.h: Likewise.
26873         * tests/unictype/test-numeric.h: Likewise.
26874         * tests/unictype/test-pr_alphabetic.c: Likewise.
26875         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
26876         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26877         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
26878         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
26879         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
26880         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
26881         * tests/unictype/test-pr_bidi_control.c: Likewise.
26882         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
26883         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
26884         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26885         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
26886         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26887         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26888         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26889         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26890         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
26891         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
26892         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
26893         * tests/unictype/test-pr_combining.c: Likewise.
26894         * tests/unictype/test-pr_composite.c: Likewise.
26895         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26896         * tests/unictype/test-pr_dash.c: Likewise.
26897         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26898         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
26899         * tests/unictype/test-pr_deprecated.c: Likewise.
26900         * tests/unictype/test-pr_diacritic.c: Likewise.
26901         * tests/unictype/test-pr_extender.c: Likewise.
26902         * tests/unictype/test-pr_format_control.c: Likewise.
26903         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26904         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26905         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26906         * tests/unictype/test-pr_hex_digit.c: Likewise.
26907         * tests/unictype/test-pr_hyphen.c: Likewise.
26908         * tests/unictype/test-pr_id_continue.c: Likewise.
26909         * tests/unictype/test-pr_id_start.c: Likewise.
26910         * tests/unictype/test-pr_ideographic.c: Likewise.
26911         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
26912         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
26913         * tests/unictype/test-pr_ignorable_control.c: Likewise.
26914         * tests/unictype/test-pr_iso_control.c: Likewise.
26915         * tests/unictype/test-pr_join_control.c: Likewise.
26916         * tests/unictype/test-pr_left_of_pair.c: Likewise.
26917         * tests/unictype/test-pr_line_separator.c: Likewise.
26918         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
26919         * tests/unictype/test-pr_lowercase.c: Likewise.
26920         * tests/unictype/test-pr_math.c: Likewise.
26921         * tests/unictype/test-pr_non_break.c: Likewise.
26922         * tests/unictype/test-pr_not_a_character.c: Likewise.
26923         * tests/unictype/test-pr_numeric.c: Likewise.
26924         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26925         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
26926         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
26927         * tests/unictype/test-pr_other_id_continue.c: Likewise.
26928         * tests/unictype/test-pr_other_id_start.c: Likewise.
26929         * tests/unictype/test-pr_other_lowercase.c: Likewise.
26930         * tests/unictype/test-pr_other_math.c: Likewise.
26931         * tests/unictype/test-pr_other_uppercase.c: Likewise.
26932         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
26933         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
26934         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
26935         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
26936         * tests/unictype/test-pr_private_use.c: Likewise.
26937         * tests/unictype/test-pr_punctuation.c: Likewise.
26938         * tests/unictype/test-pr_quotation_mark.c: Likewise.
26939         * tests/unictype/test-pr_radical.c: Likewise.
26940         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26941         * tests/unictype/test-pr_soft_dotted.c: Likewise.
26942         * tests/unictype/test-pr_space.c: Likewise.
26943         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26944         * tests/unictype/test-pr_titlecase.c: Likewise.
26945         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26946         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26947         * tests/unictype/test-pr_uppercase.c: Likewise.
26948         * tests/unictype/test-pr_variation_selector.c: Likewise.
26949         * tests/unictype/test-pr_white_space.c: Likewise.
26950         * tests/unictype/test-pr_xid_continue.c: Likewise.
26951         * tests/unictype/test-pr_xid_start.c: Likewise.
26952         * tests/unictype/test-pr_zero_width.c: Likewise.
26953         * tests/unictype/test-sy_c_whitespace.c: Likewise.
26954         * tests/unictype/test-sy_java_whitespace.c: Likewise.
26955
26956 2007-11-12  Bruno Haible  <bruno@clisp.org>
26957
26958         Unicode character classification functions.
26959         * lib/unictype.h: New file.
26960         * modules/unictype/base: New file.
26961         * modules/unictype/category-L: New file.
26962         * modules/unictype/category-Lu: New file.
26963         * modules/unictype/category-Ll: New file.
26964         * modules/unictype/category-Lt: New file.
26965         * modules/unictype/category-Lm: New file.
26966         * modules/unictype/category-Lo: New file.
26967         * modules/unictype/category-M: New file.
26968         * modules/unictype/category-Mn: New file.
26969         * modules/unictype/category-Mc: New file.
26970         * modules/unictype/category-Me: New file.
26971         * modules/unictype/category-N: New file.
26972         * modules/unictype/category-Nd: New file.
26973         * modules/unictype/category-Nl: New file.
26974         * modules/unictype/category-No: New file.
26975         * modules/unictype/category-P: New file.
26976         * modules/unictype/category-Pc: New file.
26977         * modules/unictype/category-Pd: New file.
26978         * modules/unictype/category-Ps: New file.
26979         * modules/unictype/category-Pe: New file.
26980         * modules/unictype/category-Pi: New file.
26981         * modules/unictype/category-Pf: New file.
26982         * modules/unictype/category-Po: New file.
26983         * modules/unictype/category-S: New file.
26984         * modules/unictype/category-Sm: New file.
26985         * modules/unictype/category-Sc: New file.
26986         * modules/unictype/category-Sk: New file.
26987         * modules/unictype/category-So: New file.
26988         * modules/unictype/category-Z: New file.
26989         * modules/unictype/category-Zs: New file.
26990         * modules/unictype/category-Zl: New file.
26991         * modules/unictype/category-Zp: New file.
26992         * modules/unictype/category-C: New file.
26993         * modules/unictype/category-Cc: New file.
26994         * modules/unictype/category-Cf: New file.
26995         * modules/unictype/category-Cs: New file.
26996         * modules/unictype/category-Co: New file.
26997         * modules/unictype/category-Cn: New file.
26998         * modules/unictype/category-or: New file.
26999         * modules/unictype/category-of: New file.
27000         * modules/unictype/category-test: New file.
27001         * modules/unictype/category-test-withtable: New file.
27002         * modules/unictype/category-byname: New file.
27003         * modules/unictype/category-none: New file.
27004         * modules/unictype/category-and: New file.
27005         * modules/unictype/category-and-not: New file.
27006         * modules/unictype/category-name: New file.
27007         * modules/unictype/combining-class: New file.
27008         * modules/unictype/category-all: New file.
27009         * modules/unictype/bidicategory-all: New file.
27010         * modules/unictype/bidicategory-byname: New file.
27011         * modules/unictype/bidicategory-name: New file.
27012         * modules/unictype/bidicategory-of: New file.
27013         * modules/unictype/bidicategory-test: New file.
27014         * modules/unictype/decimal-digit: New file.
27015         * modules/unictype/digit: New file.
27016         * modules/unictype/numeric: New file.
27017         * modules/unictype/mirror: New file.
27018         * modules/unictype/property-white-space: New file.
27019         * modules/unictype/property-alphabetic: New file.
27020         * modules/unictype/property-other-alphabetic: New file.
27021         * modules/unictype/property-not-a-character: New file.
27022         * modules/unictype/property-default-ignorable-code-point: New file.
27023         * modules/unictype/property-other-default-ignorable-code-point: New
27024         file.
27025         * modules/unictype/property-deprecated: New file.
27026         * modules/unictype/property-logical-order-exception: New file.
27027         * modules/unictype/property-variation-selector: New file.
27028         * modules/unictype/property-private-use: New file.
27029         * modules/unictype/property-unassigned-code-value: New file.
27030         * modules/unictype/property-uppercase: New file.
27031         * modules/unictype/property-other-uppercase: New file.
27032         * modules/unictype/property-lowercase: New file.
27033         * modules/unictype/property-other-lowercase: New file.
27034         * modules/unictype/property-titlecase: New file.
27035         * modules/unictype/property-soft-dotted: New file.
27036         * modules/unictype/property-id-start: New file.
27037         * modules/unictype/property-other-id-start: New file.
27038         * modules/unictype/property-id-continue: New file.
27039         * modules/unictype/property-other-id-continue: New file.
27040         * modules/unictype/property-xid-start: New file.
27041         * modules/unictype/property-xid-continue: New file.
27042         * modules/unictype/property-pattern-white-space: New file.
27043         * modules/unictype/property-pattern-syntax: New file.
27044         * modules/unictype/property-join-control: New file.
27045         * modules/unictype/property-grapheme-base: New file.
27046         * modules/unictype/property-grapheme-extend: New file.
27047         * modules/unictype/property-other-grapheme-extend: New file.
27048         * modules/unictype/property-grapheme-link: New file.
27049         * modules/unictype/property-bidi-control: New file.
27050         * modules/unictype/property-bidi-left-to-right: New file.
27051         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
27052         * modules/unictype/property-bidi-arabic-right-to-left: New file.
27053         * modules/unictype/property-bidi-european-digit: New file.
27054         * modules/unictype/property-bidi-eur-num-separator: New file.
27055         * modules/unictype/property-bidi-eur-num-terminator: New file.
27056         * modules/unictype/property-bidi-arabic-digit: New file.
27057         * modules/unictype/property-bidi-common-separator: New file.
27058         * modules/unictype/property-bidi-block-separator: New file.
27059         * modules/unictype/property-bidi-segment-separator: New file.
27060         * modules/unictype/property-bidi-whitespace: New file.
27061         * modules/unictype/property-bidi-non-spacing-mark: New file.
27062         * modules/unictype/property-bidi-boundary-neutral: New file.
27063         * modules/unictype/property-bidi-pdf: New file.
27064         * modules/unictype/property-bidi-embedding-or-override: New file.
27065         * modules/unictype/property-bidi-other-neutral: New file.
27066         * modules/unictype/property-hex-digit: New file.
27067         * modules/unictype/property-ascii-hex-digit: New file.
27068         * modules/unictype/property-ideographic: New file.
27069         * modules/unictype/property-unified-ideograph: New file.
27070         * modules/unictype/property-radical: New file.
27071         * modules/unictype/property-ids-binary-operator: New file.
27072         * modules/unictype/property-ids-trinary-operator: New file.
27073         * modules/unictype/property-zero-width: New file.
27074         * modules/unictype/property-space: New file.
27075         * modules/unictype/property-non-break: New file.
27076         * modules/unictype/property-iso-control: New file.
27077         * modules/unictype/property-format-control: New file.
27078         * modules/unictype/property-dash: New file.
27079         * modules/unictype/property-hyphen: New file.
27080         * modules/unictype/property-punctuation: New file.
27081         * modules/unictype/property-line-separator: New file.
27082         * modules/unictype/property-paragraph-separator: New file.
27083         * modules/unictype/property-quotation-mark: New file.
27084         * modules/unictype/property-sentence-terminal: New file.
27085         * modules/unictype/property-terminal-punctuation: New file.
27086         * modules/unictype/property-currency-symbol: New file.
27087         * modules/unictype/property-math: New file.
27088         * modules/unictype/property-other-math: New file.
27089         * modules/unictype/property-paired-punctuation: New file.
27090         * modules/unictype/property-left-of-pair: New file.
27091         * modules/unictype/property-combining: New file.
27092         * modules/unictype/property-composite: New file.
27093         * modules/unictype/property-decimal-digit: New file.
27094         * modules/unictype/property-numeric: New file.
27095         * modules/unictype/property-diacritic: New file.
27096         * modules/unictype/property-extender: New file.
27097         * modules/unictype/property-ignorable-control: New file.
27098         * modules/unictype/property-test: New file.
27099         * modules/unictype/property-byname: New file.
27100         * modules/unictype/property-all: New file.
27101         * modules/unictype/scripts: New file.
27102         * modules/unictype/scripts-all: New file.
27103         * modules/unictype/block-of: New file.
27104         * modules/unictype/block-test: New file.
27105         * modules/unictype/block-list: New file.
27106         * modules/unictype/block-all: New file.
27107         * modules/unictype/syntax-c-whitespace: New file.
27108         * modules/unictype/syntax-java-whitespace: New file.
27109         * modules/unictype/syntax-c-ident: New file.
27110         * modules/unictype/syntax-java-ident: New file.
27111         * modules/unictype/ctype-alnum: New file.
27112         * modules/unictype/ctype-alpha: New file.
27113         * modules/unictype/ctype-cntrl: New file.
27114         * modules/unictype/ctype-digit: New file.
27115         * modules/unictype/ctype-graph: New file.
27116         * modules/unictype/ctype-lower: New file.
27117         * modules/unictype/ctype-print: New file.
27118         * modules/unictype/ctype-punct: New file.
27119         * modules/unictype/ctype-space: New file.
27120         * modules/unictype/ctype-upper: New file.
27121         * modules/unictype/ctype-xdigit: New file.
27122         * modules/unictype/ctype-blank: New file.
27123         * lib/unictype/bidi_byname.c: New file.
27124         * lib/unictype/bidi_name.c: New file.
27125         * lib/unictype/bidi_of.c: New file.
27126         * lib/unictype/bidi_test.c: New file.
27127         * lib/unictype/bitmap.h: New file.
27128         * lib/unictype/block_test.c: New file.
27129         * lib/unictype/blocks.c: New file.
27130         * lib/unictype/categ_C.c: New file.
27131         * lib/unictype/categ_Cc.c: New file.
27132         * lib/unictype/categ_Cf.c: New file.
27133         * lib/unictype/categ_Cn.c: New file.
27134         * lib/unictype/categ_Co.c: New file.
27135         * lib/unictype/categ_Cs.c: New file.
27136         * lib/unictype/categ_L.c: New file.
27137         * lib/unictype/categ_Ll.c: New file.
27138         * lib/unictype/categ_Lm.c: New file.
27139         * lib/unictype/categ_Lo.c: New file.
27140         * lib/unictype/categ_Lt.c: New file.
27141         * lib/unictype/categ_Lu.c: New file.
27142         * lib/unictype/categ_M.c: New file.
27143         * lib/unictype/categ_Mc.c: New file.
27144         * lib/unictype/categ_Me.c: New file.
27145         * lib/unictype/categ_Mn.c: New file.
27146         * lib/unictype/categ_N.c: New file.
27147         * lib/unictype/categ_Nd.c: New file.
27148         * lib/unictype/categ_Nl.c: New file.
27149         * lib/unictype/categ_No.c: New file.
27150         * lib/unictype/categ_P.c: New file.
27151         * lib/unictype/categ_Pc.c: New file.
27152         * lib/unictype/categ_Pd.c: New file.
27153         * lib/unictype/categ_Pe.c: New file.
27154         * lib/unictype/categ_Pf.c: New file.
27155         * lib/unictype/categ_Pi.c: New file.
27156         * lib/unictype/categ_Po.c: New file.
27157         * lib/unictype/categ_Ps.c: New file.
27158         * lib/unictype/categ_S.c: New file.
27159         * lib/unictype/categ_Sc.c: New file.
27160         * lib/unictype/categ_Sk.c: New file.
27161         * lib/unictype/categ_Sm.c: New file.
27162         * lib/unictype/categ_So.c: New file.
27163         * lib/unictype/categ_Z.c: New file.
27164         * lib/unictype/categ_Zl.c: New file.
27165         * lib/unictype/categ_Zp.c: New file.
27166         * lib/unictype/categ_Zs.c: New file.
27167         * lib/unictype/categ_and.c: New file.
27168         * lib/unictype/categ_and_not.c: New file.
27169         * lib/unictype/categ_byname.c: New file.
27170         * lib/unictype/categ_name.c: New file.
27171         * lib/unictype/categ_none.c: New file.
27172         * lib/unictype/categ_of.c: New file.
27173         * lib/unictype/categ_or.c: New file.
27174         * lib/unictype/categ_test.c: New file.
27175         * lib/unictype/combining.c: New file.
27176         * lib/unictype/ctype_alnum.c: New file.
27177         * lib/unictype/ctype_alpha.c: New file.
27178         * lib/unictype/ctype_blank.c: New file.
27179         * lib/unictype/ctype_cntrl.c: New file.
27180         * lib/unictype/ctype_digit.c: New file.
27181         * lib/unictype/ctype_graph.c: New file.
27182         * lib/unictype/ctype_lower.c: New file.
27183         * lib/unictype/ctype_print.c: New file.
27184         * lib/unictype/ctype_punct.c: New file.
27185         * lib/unictype/ctype_space.c: New file.
27186         * lib/unictype/ctype_upper.c: New file.
27187         * lib/unictype/ctype_xdigit.c: New file.
27188         * lib/unictype/decdigit.c: New file.
27189         * lib/unictype/digit.c: New file.
27190         * lib/unictype/identsyntaxmap.h: New file.
27191         * lib/unictype/mirror.c: New file.
27192         * lib/unictype/numeric.c: New file.
27193         * lib/unictype/pr_alphabetic.c: New file.
27194         * lib/unictype/pr_ascii_hex_digit.c: New file.
27195         * lib/unictype/pr_bidi_arabic_digit.c: New file.
27196         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
27197         * lib/unictype/pr_bidi_block_separator.c: New file.
27198         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
27199         * lib/unictype/pr_bidi_common_separator.c: New file.
27200         * lib/unictype/pr_bidi_control.c: New file.
27201         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
27202         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
27203         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
27204         * lib/unictype/pr_bidi_european_digit.c: New file.
27205         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
27206         * lib/unictype/pr_bidi_left_to_right.c: New file.
27207         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
27208         * lib/unictype/pr_bidi_other_neutral.c: New file.
27209         * lib/unictype/pr_bidi_pdf.c: New file.
27210         * lib/unictype/pr_bidi_segment_separator.c: New file.
27211         * lib/unictype/pr_bidi_whitespace.c: New file.
27212         * lib/unictype/pr_byname.c: New file.
27213         * lib/unictype/pr_byname.gperf: New file.
27214         * lib/unictype/pr_combining.c: New file.
27215         * lib/unictype/pr_composite.c: New file.
27216         * lib/unictype/pr_currency_symbol.c: New file.
27217         * lib/unictype/pr_dash.c: New file.
27218         * lib/unictype/pr_decimal_digit.c: New file.
27219         * lib/unictype/pr_default_ignorable_code_point.c: New file.
27220         * lib/unictype/pr_deprecated.c: New file.
27221         * lib/unictype/pr_diacritic.c: New file.
27222         * lib/unictype/pr_extender.c: New file.
27223         * lib/unictype/pr_format_control.c: New file.
27224         * lib/unictype/pr_grapheme_base.c: New file.
27225         * lib/unictype/pr_grapheme_extend.c: New file.
27226         * lib/unictype/pr_grapheme_link.c: New file.
27227         * lib/unictype/pr_hex_digit.c: New file.
27228         * lib/unictype/pr_hyphen.c: New file.
27229         * lib/unictype/pr_id_continue.c: New file.
27230         * lib/unictype/pr_id_start.c: New file.
27231         * lib/unictype/pr_ideographic.c: New file.
27232         * lib/unictype/pr_ids_binary_operator.c: New file.
27233         * lib/unictype/pr_ids_trinary_operator.c: New file.
27234         * lib/unictype/pr_ignorable_control.c: New file.
27235         * lib/unictype/pr_iso_control.c: New file.
27236         * lib/unictype/pr_join_control.c: New file.
27237         * lib/unictype/pr_left_of_pair.c: New file.
27238         * lib/unictype/pr_line_separator.c: New file.
27239         * lib/unictype/pr_logical_order_exception.c: New file.
27240         * lib/unictype/pr_lowercase.c: New file.
27241         * lib/unictype/pr_math.c: New file.
27242         * lib/unictype/pr_non_break.c: New file.
27243         * lib/unictype/pr_not_a_character.c: New file.
27244         * lib/unictype/pr_numeric.c: New file.
27245         * lib/unictype/pr_other_alphabetic.c: New file.
27246         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
27247         * lib/unictype/pr_other_grapheme_extend.c: New file.
27248         * lib/unictype/pr_other_id_continue.c: New file.
27249         * lib/unictype/pr_other_id_start.c: New file.
27250         * lib/unictype/pr_other_lowercase.c: New file.
27251         * lib/unictype/pr_other_math.c: New file.
27252         * lib/unictype/pr_other_uppercase.c: New file.
27253         * lib/unictype/pr_paired_punctuation.c: New file.
27254         * lib/unictype/pr_paragraph_separator.c: New file.
27255         * lib/unictype/pr_pattern_syntax.c: New file.
27256         * lib/unictype/pr_pattern_white_space.c: New file.
27257         * lib/unictype/pr_private_use.c: New file.
27258         * lib/unictype/pr_punctuation.c: New file.
27259         * lib/unictype/pr_quotation_mark.c: New file.
27260         * lib/unictype/pr_radical.c: New file.
27261         * lib/unictype/pr_sentence_terminal.c: New file.
27262         * lib/unictype/pr_soft_dotted.c: New file.
27263         * lib/unictype/pr_space.c: New file.
27264         * lib/unictype/pr_terminal_punctuation.c: New file.
27265         * lib/unictype/pr_test.c: New file.
27266         * lib/unictype/pr_titlecase.c: New file.
27267         * lib/unictype/pr_unassigned_code_value.c: New file.
27268         * lib/unictype/pr_unified_ideograph.c: New file.
27269         * lib/unictype/pr_uppercase.c: New file.
27270         * lib/unictype/pr_variation_selector.c: New file.
27271         * lib/unictype/pr_white_space.c: New file.
27272         * lib/unictype/pr_xid_continue.c: New file.
27273         * lib/unictype/pr_xid_start.c: New file.
27274         * lib/unictype/pr_zero_width.c: New file.
27275         * lib/unictype/scripts.c: New file.
27276         * lib/unictype/sy_c_ident.c: New file.
27277         * lib/unictype/sy_c_whitespace.c: New file.
27278         * lib/unictype/sy_java_ident.c: New file.
27279         * lib/unictype/sy_java_whitespace.c: New file.
27280
27281         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
27282         Unicode 5.0.0.
27283         * lib/unictype/blocks.h: Likewise.
27284         * lib/unictype/categ_C.h: Likewise.
27285         * lib/unictype/categ_Cc.h: Likewise.
27286         * lib/unictype/categ_Cf.h: Likewise.
27287         * lib/unictype/categ_Cn.h: Likewise.
27288         * lib/unictype/categ_Co.h: Likewise.
27289         * lib/unictype/categ_Cs.h: Likewise.
27290         * lib/unictype/categ_L.h: Likewise.
27291         * lib/unictype/categ_Ll.h: Likewise.
27292         * lib/unictype/categ_Lm.h: Likewise.
27293         * lib/unictype/categ_Lo.h: Likewise.
27294         * lib/unictype/categ_Lt.h: Likewise.
27295         * lib/unictype/categ_Lu.h: Likewise.
27296         * lib/unictype/categ_M.h: Likewise.
27297         * lib/unictype/categ_Mc.h: Likewise.
27298         * lib/unictype/categ_Me.h: Likewise.
27299         * lib/unictype/categ_Mn.h: Likewise.
27300         * lib/unictype/categ_N.h: Likewise.
27301         * lib/unictype/categ_Nd.h: Likewise.
27302         * lib/unictype/categ_Nl.h: Likewise.
27303         * lib/unictype/categ_No.h: Likewise.
27304         * lib/unictype/categ_P.h: Likewise.
27305         * lib/unictype/categ_Pc.h: Likewise.
27306         * lib/unictype/categ_Pd.h: Likewise.
27307         * lib/unictype/categ_Pe.h: Likewise.
27308         * lib/unictype/categ_Pf.h: Likewise.
27309         * lib/unictype/categ_Pi.h: Likewise.
27310         * lib/unictype/categ_Po.h: Likewise.
27311         * lib/unictype/categ_Ps.h: Likewise.
27312         * lib/unictype/categ_S.h: Likewise.
27313         * lib/unictype/categ_Sc.h: Likewise.
27314         * lib/unictype/categ_Sk.h: Likewise.
27315         * lib/unictype/categ_Sm.h: Likewise.
27316         * lib/unictype/categ_So.h: Likewise.
27317         * lib/unictype/categ_Z.h: Likewise.
27318         * lib/unictype/categ_Zl.h: Likewise.
27319         * lib/unictype/categ_Zp.h: Likewise.
27320         * lib/unictype/categ_Zs.h: Likewise.
27321         * lib/unictype/categ_of.h: Likewise.
27322         * lib/unictype/combining.h: Likewise.
27323         * lib/unictype/ctype_alnum.h: Likewise.
27324         * lib/unictype/ctype_alpha.h: Likewise.
27325         * lib/unictype/ctype_blank.h: Likewise.
27326         * lib/unictype/ctype_cntrl.h: Likewise.
27327         * lib/unictype/ctype_digit.h: Likewise.
27328         * lib/unictype/ctype_graph.h: Likewise.
27329         * lib/unictype/ctype_lower.h: Likewise.
27330         * lib/unictype/ctype_print.h: Likewise.
27331         * lib/unictype/ctype_punct.h: Likewise.
27332         * lib/unictype/ctype_space.h: Likewise.
27333         * lib/unictype/ctype_upper.h: Likewise.
27334         * lib/unictype/ctype_xdigit.h: Likewise.
27335         * lib/unictype/decdigit.h: Likewise.
27336         * lib/unictype/digit.h: Likewise.
27337         * lib/unictype/mirror.h: Likewise.
27338         * lib/unictype/numeric.h: Likewise.
27339         * lib/unictype/pr_alphabetic.h: Likewise.
27340         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27341         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
27342         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
27343         * lib/unictype/pr_bidi_block_separator.h: Likewise.
27344         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
27345         * lib/unictype/pr_bidi_common_separator.h: Likewise.
27346         * lib/unictype/pr_bidi_control.h: Likewise.
27347         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27348         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27349         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
27350         * lib/unictype/pr_bidi_european_digit.h: Likewise.
27351         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
27352         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
27353         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
27354         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
27355         * lib/unictype/pr_bidi_pdf.h: Likewise.
27356         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27357         * lib/unictype/pr_bidi_whitespace.h: Likewise.
27358         * lib/unictype/pr_combining.h: Likewise.
27359         * lib/unictype/pr_composite.h: Likewise.
27360         * lib/unictype/pr_currency_symbol.h: Likewise.
27361         * lib/unictype/pr_dash.h: Likewise.
27362         * lib/unictype/pr_decimal_digit.h: Likewise.
27363         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27364         * lib/unictype/pr_deprecated.h: Likewise.
27365         * lib/unictype/pr_diacritic.h: Likewise.
27366         * lib/unictype/pr_extender.h: Likewise.
27367         * lib/unictype/pr_format_control.h: Likewise.
27368         * lib/unictype/pr_grapheme_base.h: Likewise.
27369         * lib/unictype/pr_grapheme_extend.h: Likewise.
27370         * lib/unictype/pr_grapheme_link.h: Likewise.
27371         * lib/unictype/pr_hex_digit.h: Likewise.
27372         * lib/unictype/pr_hyphen.h: Likewise.
27373         * lib/unictype/pr_id_continue.h: Likewise.
27374         * lib/unictype/pr_id_start.h: Likewise.
27375         * lib/unictype/pr_ideographic.h: Likewise.
27376         * lib/unictype/pr_ids_binary_operator.h: Likewise.
27377         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27378         * lib/unictype/pr_ignorable_control.h: Likewise.
27379         * lib/unictype/pr_iso_control.h: Likewise.
27380         * lib/unictype/pr_join_control.h: Likewise.
27381         * lib/unictype/pr_left_of_pair.h: Likewise.
27382         * lib/unictype/pr_line_separator.h: Likewise.
27383         * lib/unictype/pr_logical_order_exception.h: Likewise.
27384         * lib/unictype/pr_lowercase.h: Likewise.
27385         * lib/unictype/pr_math.h: Likewise.
27386         * lib/unictype/pr_non_break.h: Likewise.
27387         * lib/unictype/pr_not_a_character.h: Likewise.
27388         * lib/unictype/pr_numeric.h: Likewise.
27389         * lib/unictype/pr_other_alphabetic.h: Likewise.
27390         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27391         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27392         * lib/unictype/pr_other_id_continue.h: Likewise.
27393         * lib/unictype/pr_other_id_start.h: Likewise.
27394         * lib/unictype/pr_other_lowercase.h: Likewise.
27395         * lib/unictype/pr_other_math.h: Likewise.
27396         * lib/unictype/pr_other_uppercase.h: Likewise.
27397         * lib/unictype/pr_paired_punctuation.h: Likewise.
27398         * lib/unictype/pr_paragraph_separator.h: Likewise.
27399         * lib/unictype/pr_pattern_syntax.h: Likewise.
27400         * lib/unictype/pr_pattern_white_space.h: Likewise.
27401         * lib/unictype/pr_private_use.h: Likewise.
27402         * lib/unictype/pr_punctuation.h: Likewise.
27403         * lib/unictype/pr_quotation_mark.h: Likewise.
27404         * lib/unictype/pr_radical.h: Likewise.
27405         * lib/unictype/pr_sentence_terminal.h: Likewise.
27406         * lib/unictype/pr_soft_dotted.h: Likewise.
27407         * lib/unictype/pr_space.h: Likewise.
27408         * lib/unictype/pr_terminal_punctuation.h: Likewise.
27409         * lib/unictype/pr_titlecase.h: Likewise.
27410         * lib/unictype/pr_unassigned_code_value.h: Likewise.
27411         * lib/unictype/pr_unified_ideograph.h: Likewise.
27412         * lib/unictype/pr_uppercase.h: Likewise.
27413         * lib/unictype/pr_variation_selector.h: Likewise.
27414         * lib/unictype/pr_white_space.h: Likewise.
27415         * lib/unictype/pr_xid_continue.h: Likewise.
27416         * lib/unictype/pr_xid_start.h: Likewise.
27417         * lib/unictype/pr_zero_width.h: Likewise.
27418         * lib/unictype/scripts.h: Likewise.
27419         * lib/unictype/scripts_byname.gperf: Likewise.
27420         * lib/unictype/sy_c_ident.h: Likewise.
27421         * lib/unictype/sy_c_whitespace.h: Likewise.
27422         * lib/unictype/sy_java_ident.h: Likewise.
27423         * lib/unictype/sy_java_whitespace.h: Likewise.
27424
27425         * lib/unictype/Makefile: New file.
27426         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
27427         glibc.
27428         * lib/unictype/3level.h: New file, copied from glibc.
27429         * lib/unictype/3levelbit.h: New file.
27430
27431 2007-11-11  Bruno Haible  <bruno@clisp.org>
27432
27433         * modules/gperf: New file.
27434         * modules/iconv_open (Depends-on): Add it.
27435         (Makefile.am): Remove the GPERF definition.
27436
27437 2007-11-11  Bruno Haible  <bruno@clisp.org>
27438
27439         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
27440         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
27441
27442 2007-11-11  Bruno Haible  <bruno@clisp.org>
27443
27444         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
27445         (usage): Remove function.
27446
27447 2007-11-11  Bruno Haible  <bruno@clisp.org>
27448
27449         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
27450         gl_FUNC_CEILF_LIBS.
27451         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
27452         gl_FUNC_CEIL_LIBS.
27453         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
27454         gl_FUNC_CEILL_LIBS.
27455         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
27456         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
27457         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
27458
27459 2007-11-11  Bruno Haible  <bruno@clisp.org>
27460
27461         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
27462         roundf were declared but do not exist on functions.
27463         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
27464         roundl were declared but do not exist on functions.
27465         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
27466         HAVE_FLOORL_AND_CEILL, respectively.
27467         Needed for Sun C on Solaris 10.
27468
27469 2007-11-11  Bruno Haible  <bruno@clisp.org>
27470
27471         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
27472         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
27473         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
27474         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
27475         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
27476         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
27477         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
27478         HAVE_DECL_ROUNDF.
27479         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
27480         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
27481         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
27482         of HAVE_DECL_ROUND*.
27483         * modules/math (Makefile.am): Update.
27484
27485 2007-11-10  Bruno Haible  <bruno@clisp.org>
27486
27487         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
27488         ptrdiff_t as m4/intl.m4.
27489
27490 2007-11-10  Jim Meyering  <meyering@redhat.com>
27491
27492         Avoid link failure for the argmatch test.
27493         * tests/test-argmatch.c (usage): Define function to avoid a link
27494         failure: argmatch_die requires a usage function.
27495
27496 2007-11-09  Bruno Haible  <bruno@clisp.org>
27497
27498         * doc/functions/snprintf.texi: Mention BeOS deficiency.
27499         * doc/functions/vsnprintf.texi: Likewise.
27500         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
27501         with a size argument < 2.
27502
27503 2007-11-09  Bruno Haible  <bruno@clisp.org>
27504
27505         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
27506         buffer. Fixes an inefficiency introduced on 2007-11-03.
27507
27508 2007-11-09  Bruno Haible  <bruno@clisp.org>
27509
27510         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
27511         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
27512
27513 2007-11-08  Jim Meyering  <meyering@redhat.com>
27514
27515         Change cache variable name prefix "jm_" to "gl_" everywhere.
27516         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
27517         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
27518         * m4/uptime.m4: s/gl_/jm_/
27519
27520 2007-11-07  Bruno Haible  <bruno@clisp.org>
27521
27522         Update to GNU gettext 0.17.
27523         * m4/intl.m4: Update to GNU gettext 0.17.
27524         * m4/po.m4: Likewise.
27525         * modules/gettext (Files): Remove m4/ulonglong.m4.
27526         (configure.ac): Require gettext infrastructure from version 0.17.
27527
27528 2007-11-06  Bruno Haible  <bruno@clisp.org>
27529
27530         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
27531         symbolic values are not defined in a public header.
27532         * lib/freadable.c (freadable) [QNX]: Likewise.
27533         * lib/freadahead.c (freadahead) [QNX]: Likewise.
27534         * lib/freading.c (freading) [QNX]: Likewise.
27535         * lib/fseterr.c (fseterr) [QNX]: Likewise.
27536         * lib/fwritable.c (fwritable) [QNX]: Likewise.
27537         * lib/fwriting.c (fwriting) [QNX]: Likewise.
27538         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
27539         Reported by Alain Magloire.
27540
27541         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
27542
27543 2007-11-05  Bruno Haible  <bruno@clisp.org>
27544
27545         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
27546         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
27547         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
27548         Reported by Eric Blake.
27549
27550 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27551             Bruno Haible  <bruno@clisp.org>
27552
27553         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
27554         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
27555         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
27556         (malloc): Undefine also before including <stdlib.h>.
27557         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
27558         Needed on OSF/1 4.0.
27559
27560 2007-11-05  Jim Meyering  <meyering@redhat.com>
27561
27562         git-version-gen: sync from coreutils.
27563         * build-aux/git-version-gen: Add comments.
27564         Change the first '-' to '.' in the snapshot version string,
27565         e.g., 6.9-377-08144 -> 6.9.377-08144
27566         Remove first parameter.
27567         Don't declare a version "-dirty" merely because a time
27568         stamp has changed.
27569
27570 2007-11-04  Bruno Haible  <bruno@clisp.org>
27571
27572         * lib/lock.h: Protect all macro definitions containing an 'if'
27573         statement through a "do { ... } while (0)".
27574         * lib/tls.h: Likewise.
27575
27576 2007-11-04  Bruno Haible  <bruno@clisp.org>
27577
27578         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
27579
27580 2007-11-04  Bruno Haible  <bruno@clisp.org>
27581
27582         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
27583         * modules/fprintf-posix (Depends-on): Add nocrash.
27584         * modules/snprintf-posix (Depends-on): Likewise.
27585         * modules/sprintf-posix (Depends-on): Likewise.
27586         * modules/vasnprintf-posix (Depends-on): Likewise.
27587         * modules/vasprintf-posix (Depends-on): Likewise.
27588         * modules/vfprintf-posix (Depends-on): Likewise.
27589         * modules/vsnprintf-posix (Depends-on): Likewise.
27590         * modules/vsprintf-posix (Depends-on): Likewise.
27591         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27592         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27593         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27594         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27595         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27596         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27597         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27598
27599 2007-11-04  Bruno Haible  <bruno@clisp.org>
27600
27601         * modules/nocrash: New file.
27602         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
27603         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
27604
27605 2007-11-04  Bruno Haible  <bruno@clisp.org>
27606
27607         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
27608         precision handling.
27609         * tests/test-vasprintf-posix.c (test_function): Likewise.
27610         * tests/test-snprintf-posix.h (test_function): Likewise.
27611         * tests/test-sprintf-posix.h (test_function): Likewise.
27612
27613         Fix *printf behaviour for large precisions on mingw and BeOS.
27614         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
27615         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
27616         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
27617         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27618         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27619         gl_PRINTF_PRECISION and test its result. Invoke
27620         gl_PREREQ_VASNPRINTF_PRECISION.
27621         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27622         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27623         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27624         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27625         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27626         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27627         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27628         * doc/functions/fprintf.texi: Update.
27629         * doc/functions/printf.texi: Update.
27630         * doc/functions/snprintf.texi: Update.
27631         * doc/functions/sprintf.texi: Update.
27632         * doc/functions/vfprintf.texi: Update.
27633         * doc/functions/vprintf.texi: Update.
27634         * doc/functions/vsnprintf.texi: Update.
27635         * doc/functions/vsprintf.texi: Update.
27636
27637 2007-11-04  Bruno Haible  <bruno@clisp.org>
27638
27639         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
27640
27641 2007-11-04  Bruno Haible  <bruno@clisp.org>
27642
27643         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
27644         Reported by Sylvain Beucler <beuc@gnu.org>.
27645
27646 2007-11-03  Bruno Haible  <bruno@clisp.org>
27647
27648         * tests/test-fprintf-posix2.sh: New file.
27649         * tests/test-fprintf-posix2.c: New file.
27650         * modules/fprintf-posix-tests (Files): Add them.
27651         (TESTS): Add test-fprintf-posix2.sh.
27652         (configure.ac): Check for getrlimit and setrlimit.
27653         (check_PROGRAMS): Add test-fprintf-posix2.
27654
27655         * tests/test-printf-posix2.sh: New file.
27656         * tests/test-printf-posix2.c: New file.
27657         * modules/printf-posix-tests (Files): Add them.
27658         (TESTS): Add test-printf-posix2.sh.
27659         (configure.ac): Check for getrlimit and setrlimit.
27660         (check_PROGRAMS): Add test-printf-posix2.
27661
27662         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
27663         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
27664         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
27665         (decode_double): New function, copied from decode_long_double.
27666         (scale10_round_decimal_decoded): New function, extracted from
27667         scale10_round_decimal_long_double.
27668         (scale10_round_decimal_long_double): Use it.
27669         (scale10_round_decimal_double): New function.
27670         (floorlog10): New function.
27671         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
27672         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
27673         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27674         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27675         gl_PRINTF_ENOMEM and test its result. Invoke
27676         gl_PREREQ_VASNPRINTF_ENOMEM.
27677         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27678         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27679         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27680         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27681         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27682         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27683         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27684         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
27685         * modules/snprintf-posix (Depends-on): Likewise.
27686         * modules/sprintf-posix (Depends-on): Likewise.
27687         * modules/vasnprintf-posix (Depends-on): Likewise.
27688         * modules/vasprintf-posix (Depends-on): Likewise.
27689         * modules/vfprintf-posix (Depends-on): Likewise.
27690         * modules/vsnprintf-posix (Depends-on): Likewise.
27691         * modules/vsprintf-posix (Depends-on): Likewise.
27692         * doc/functions/fprintf.texi: Update.
27693         * doc/functions/printf.texi: Update.
27694         * doc/functions/snprintf.texi: Update.
27695         * doc/functions/sprintf.texi: Update.
27696         * doc/functions/vfprintf.texi: Update.
27697         * doc/functions/vprintf.texi: Update.
27698         * doc/functions/vsnprintf.texi: Update.
27699         * doc/functions/vsprintf.texi: Update.
27700
27701 2007-11-03  Bruno Haible  <bruno@clisp.org>
27702
27703         * modules/frexp-nolibm-tests: New file.
27704
27705         * modules/frexp-nolibm: New file.
27706         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
27707
27708 2007-11-03  Bruno Haible  <bruno@clisp.org>
27709
27710         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
27711         value is C99 compliant.
27712         Needed for OSF/1 5.1.
27713
27714 2007-11-03  Bruno Haible  <bruno@clisp.org>
27715
27716         Fix out-of-memory handling of vasnprintf.
27717         * lib/printf-parse.c: Include <errno.h>.
27718         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
27719         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
27720         is already set.
27721
27722 2007-11-02  Eric Blake  <ebb9@byu.net>
27723
27724         Fix tests on cygwin.
27725         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
27726
27727 2007-11-01  Bruno Haible  <bruno@clisp.org>
27728
27729         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
27730         warning.
27731         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
27732         needed for POSIX compatibility.
27733
27734 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
27735
27736         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
27737         for compatibility with GNU.
27738
27739 2007-11-01  Bruno Haible  <bruno@clisp.org>
27740
27741         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
27742         (putenv): Renamed from rpl_putenv. Change argument type from
27743         'const char *' to 'char *'.
27744         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
27745         of defining putenv in config.h, just set REPLACE_PUTENV.
27746         * modules/putenv (Depends-on): Add stdlib.
27747         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27748         (Include): Use <stdlib.h>.
27749         * lib/stdlib.in.h (putenv): New declaration.
27750         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
27751         REPLACE_PUTENV.
27752         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
27753         REPLACE_PUTENV.
27754         Needed for MacOS X 10.5.0.
27755         Reported by Peter O'Gorman <peter@pogma.com>.
27756
27757 2007-11-01  Jim Meyering  <meyering@redhat.com>
27758
27759         Treat an empty date string exactly like "0".
27760         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
27761         if the remaining date string (to be parsed) is empty, use "0".
27762         Reported by Mischa Molhoek and discussed in this thread:
27763         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
27764
27765 2007-10-31  Bruno Haible  <bruno@clisp.org>
27766
27767         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
27768         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
27769         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
27770         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
27771         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
27772         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
27773
27774 2007-10-31  Bruno Haible  <bruno@clisp.org>
27775
27776         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
27777         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
27778         (AC_TYPE_LONG_LONG_INT): Use it.
27779         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
27780         it as well.
27781         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
27782         to m4/longlong.m4.
27783         * modules/stdint (Files): Remove m4/ulonglong.m4.
27784         * modules/strtoull (Files): Use m4/longlong.m4 instead of
27785         m4/ulonglong.m4.
27786         * modules/strtoumax (Files): Likewise.
27787
27788 2007-10-30  Bruno Haible  <bruno@clisp.org>
27789
27790         * modules/xvasprintf-posix: New file.
27791         Suggested by Eric Blake.
27792
27793 2007-10-30  Bruno Haible  <bruno@clisp.org>
27794
27795         * modules/xprintf-posix-tests: New file.
27796         * tests/test-xprintf-posix.sh: New file.
27797         * tests/test-xprintf-posix.c: New file.
27798         * tests/test-xfprintf-posix.c: New file.
27799
27800         * modules/xprintf-posix: New file.
27801
27802 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27803
27804         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
27805         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
27806         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
27807
27808 2007-10-29  Bruno Haible  <bruno@clisp.org>
27809
27810         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
27811         contain the special marker '_cv_'.
27812         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
27813         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
27814         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
27815         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
27816         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
27817         Reported by Ralf Wildenhues.
27818
27819 2007-10-29  Bruno Haible  <bruno@clisp.org>
27820
27821         * gnulib-tool (func_import): When --lgpl is not specified, set
27822         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
27823         GPLv3.
27824         Reported by Simon Josefsson.
27825
27826 2007-10-28  Bruno Haible  <bruno@clisp.org>
27827
27828         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
27829         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
27830         HAVE_DECL_ISFINITE.
27831         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
27832         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
27833         HAVE_DECL_ISFINITE.
27834
27835 2007-10-28  Bruno Haible  <bruno@clisp.org>
27836
27837         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
27838         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
27839
27840 2007-10-28  Bruno Haible  <bruno@clisp.org>
27841
27842         Fix link errors with Sun C 5.0 on Solaris 10.
27843         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
27844         function is declared but not present in the compiler's libm.
27845         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
27846         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
27847         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
27848         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
27849         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
27850         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
27851         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
27852         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
27853         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
27854         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
27855         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
27856         HAVE_DECL_FLOORL.
27857
27858 2007-10-28  Bruno Haible  <bruno@clisp.org>
27859
27860         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
27861         gl_FUNC_FLOORL. Cache the result.
27862         (gl_FUNC_FLOORL): Use it.
27863         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
27864         gl_FUNC_CEILL. Cache the result.
27865         (gl_FUNC_CEILL): Use it.
27866
27867         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
27868         gl_FUNC_FLOOR. Cache the result.
27869         (gl_FUNC_FLOOR): Use it.
27870         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
27871         gl_FUNC_CEIL. Cache the result.
27872         (gl_FUNC_CEIL): Use it.
27873
27874         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
27875         gl_FUNC_FLOORF. Cache the result.
27876         (gl_FUNC_FLOORF): Use it.
27877         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
27878         gl_FUNC_CEILF. Cache the result.
27879         (gl_FUNC_CEILF): Use it.
27880
27881 2007-10-28  Bruno Haible  <bruno@clisp.org>
27882
27883         * gnulib-tool: Allow specifying the LGPL version number through
27884         --lgpl=2 or --lgpl=3.
27885         (func_usage): Document --lgpl with argument.
27886         Handle --lgpl=... arguments.
27887         (func_import): Recognize also gl_LGPL calls with an argument. When
27888         --lgpl=2 is used and the module's license is just LGPL, report an
27889         error. Set sed_transform_lib_file according to the lgpl variable. In
27890         the generated files, use --lgpl or gl_LGPL invocations with argument,
27891         if necessary.
27892         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
27893         an LGPv2+ license.
27894         * doc/gnulib-tool.texi (Modified imports): Update explanation of
27895         gl_LGPL macro.
27896
27897 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27898             Bruno Haible  <bruno@clisp.org>
27899
27900         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
27901         (u16_uctomb_aux): Likewise.
27902         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
27903         !HAVE_INLINE.
27904         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
27905
27906 2007-10-28  Bruno Haible  <bruno@clisp.org>
27907
27908         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
27909         Invoke AM_GETTEXT_OPTION if it exists.
27910         * modules/vasprintf: Likewise.
27911         * modules/verror: Likewise.
27912         * modules/xprintf: Likewise.
27913         * modules/xvasprintf: Likewise.
27914
27915 2007-10-27  Ben Pfaff  <blp@gnu.org>
27916
27917         * lib/math.in.h: Define isfinite macro and prototypes for
27918         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
27919         implementations.
27920         * m4/math_h.m4: New substitutions for isfinite module.
27921         * lib/isfinite.c: New file.
27922         * m4/isfinite.m4: New file.
27923         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
27924         * modules/isfinite: New file.
27925         * modules/isfinite-tests: New file.
27926         * tests/tests-isfinite.c: New file.
27927         * doc/functions/isfinite.texi: Mention isfinite module.
27928         * MODULES.html.sh: Mention new module.
27929
27930 2007-10-27  Ben Pfaff  <blp@gnu.org>
27931
27932         Ralf Wildenhues reported that Tru64 4.0D declares the round
27933         functions but does not have definitions.
27934         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
27935         cannot be found in any library, set the output variable to
27936         "missing" instead of "".
27937         * m4/round.m4: Also use our substitute if we cannot find round in
27938         any library, even if it is declared.
27939         * m4/roundf.m4: Likewise for roundf.
27940         * m4/roundl.m4: Likewise for roundl.
27941         * lib/math.in.h: Undefine roundf, round, roundl before defining
27942         their replacements, to allow for hypothetical systems where these
27943         may be defined as macros but not available in libraries.
27944
27945 2007-10-27  Bruno Haible  <bruno@clisp.org>
27946
27947         * doc/gnulib.texi: Invoke @firstparagraphindent.
27948         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
27949         changes in gnulib.
27950         (Source changes): New section.
27951
27952 2007-10-26  Bruno Haible  <bruno@clisp.org>
27953
27954         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
27955         borrowed from autoconf.
27956
27957 2007-10-26  Bruno Haible  <bruno@clisp.org>
27958
27959         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
27960         strerror returned the empty string. Needed on HP-UX 11.00.
27961
27962 2007-10-24  Micah Cowan  <micah@cowan.name>
27963
27964         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
27965         * build-aux/bootstrap: Remove support for now-unnecessary option,
27966         --cvs-user, and envvars CVS_USER, CVS_RSH.
27967
27968 2007-10-24  Jim Meyering  <meyering@redhat.com>
27969
27970         Avoid diagnostics from sha1sum when there is no cached checksum.
27971         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
27972         if the po.s1 file hasn't been created yet.
27973
27974         * build-aux/bootstrap: Sync from coreutils:
27975         2007-10-24  Jim Meyering  <meyering@redhat.com>
27976         Get gnulib from the git repository, not from an obsolete cvs one.
27977         * build-aux/bootstrap: Suggestion from Micah Cowan.
27978         2007-10-04  Jim Meyering  <jim@meyering.net>
27979         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
27980         (update_po_files): Work also when there are no .po files in po/.
27981
27982 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
27983
27984         * README: Append ".git" to git and cg examples.
27985         Problem reported by Benoit Sigoure.
27986
27987 2007-10-23  Micah Cowan  <micah@cowan.name>
27988
27989         * users.txt: Add wget.
27990
27991 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27992
27993         Fix linking of some unistdio tests on FreeBSD.
27994         * modules/unistdio/u16-vsnprintf-tests
27995         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
27996         * modules/unistdio/u16-vsprintf-tests
27997         (test_u16_vsnprintf1_LDADD): Likewise.
27998         * modules/unistdio/u32-vsnprintf-tests
27999         (test_u32_vsnprintf1_LDADD): Likewise.
28000         * modules/unistdio/u32-vsprintf-tests
28001         (test_u32_vsprintf1_LDADD): Likewise.
28002         * modules/unistdio/u8-vsnprintf-tests
28003         (test_u8_vsnprintf1_LDADD): Likewise.
28004         * modules/unistdio/u8-vsprintf-tests
28005         (test_u8_vsprintf1_LDADD): Likewise.
28006         * modules/unistdio/ulc-vsnprintf-tests
28007         (test_ulc_vsnprintf1_LDADD): Likewise.
28008         * modules/unistdio/ulc-vsprintf-tests
28009         (test_ulc_vsprintf1_LDADD): Likewise.
28010
28011         Fix linking of some uniconv tests on FreeBSD.
28012         * modules/uniconv/u16-conv-from-enc-tests
28013         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
28014         * modules/uniconv/u16-conv-to-enc-tests
28015         (test_u16_conv_to_enc_LDADD): Likewise.
28016         * modules/uniconv/u16-strconv-from-enc-tests
28017         (test_u16_strconv_from_enc_LDADD): Likewise.
28018         * modules/uniconv/u16-strconv-to-enc-tests
28019         (test_u16_strconv_to_enc_LDADD): Likewise.
28020         * modules/uniconv/u32-conv-from-enc-tests
28021         (test_u32_conv_from_enc_LDADD): Likewise.
28022         * modules/uniconv/u32-conv-to-enc-tests
28023         (test_u32_conv_to_enc_LDADD): Likewise.
28024         * modules/uniconv/u32-strconv-from-enc-tests
28025         (test_u32_strconv_from_enc_LDADD): Likewise.
28026         * modules/uniconv/u32-strconv-to-enc-tests
28027         (test_u32_strconv_to_enc_LDADD): Likewise.
28028         * modules/uniconv/u8-conv-from-enc-tests
28029         (test_u8_conv_from_enc_LDADD): Likewise.
28030         * modules/uniconv/u8-conv-to-enc-tests
28031         (test_u8_conv_to_enc_LDADD): Likewise.
28032         * modules/uniconv/u8-strconv-from-enc-tests
28033         (test_u8_strconv_from_enc_LDADD): Likewise.
28034         * modules/uniconv/u8-strconv-to-enc-tests
28035         (test_u8_strconv_to_enc_LDADD): Likewise.
28036
28037 2007-10-22  Bruno Haible  <bruno@clisp.org>
28038
28039         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
28040         size.
28041
28042 2007-10-22  Eric Blake  <ebb9@byu.net>
28043
28044         Tweak x*printf documentation.
28045         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
28046         variable name and comments.
28047         Suggested by Bruno Haible.
28048
28049 2007-10-22  Bruno Haible  <bruno@clisp.org>
28050
28051         * lib/acl.c (copy_acl): Fix file name in comment.
28052
28053 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
28054
28055         Fix Tru64 problem with stdbool.h.
28056         * lib/stdbool.in.h (false, true):
28057         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
28058         Don't declare as an enum in this situation; it runs afoul of Tru64.
28059         Problem reported by Steven M. Schweda in
28060         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
28061
28062 2007-10-22  Eric Blake  <ebb9@byu.net>
28063
28064         Also wrap vf?printf.
28065         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
28066         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
28067         (xvprintf, xvfprintf): New functions.
28068
28069 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28070
28071         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
28072         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
28073
28074         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
28075         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
28076
28077 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
28078
28079         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
28080         by Bruno Haible.
28081
28082 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28083
28084         * lib/getloadavg.c
28085         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
28086         Undef `sys' after including sys/table.h, for Tru64 4.0D.
28087
28088         * tests/test-i-ring.c: Work for C89.
28089
28090 2007-10-22  Bruno Haible  <bruno@clisp.org>
28091
28092         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
28093         -1u, in preprocessor expression, so that we don't test for the bug
28094         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
28095         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
28096
28097 2007-10-22  Eric Blake  <ebb9@byu.net>
28098
28099         * tests/test-yesno.sh: Silence stderr during test.
28100
28101 2007-10-22  Simon Josefsson  <simon@josefsson.org>
28102
28103         * modules/crypto/gc-camellia: New file.
28104
28105         * m4/gc-camellia.m4: New file.
28106
28107         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
28108
28109         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
28110
28111 2007-10-22  Simon Josefsson  <simon@josefsson.org>
28112
28113         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
28114         --help to stdout.  Reported by sms@antinode.org (Steven
28115         M. Schweda).
28116
28117 2007-10-22  Simon Josefsson  <simon@josefsson.org>
28118
28119         * users.txt: Fix link to libksba.
28120
28121 2007-10-21  Ben Pfaff  <blp@gnu.org>
28122
28123         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
28124         round.c roundf implementation that depends on floorf and ceilf to
28125         be tested unconditionally.
28126
28127 2007-10-21  Ben Pfaff  <blp@gnu.org>
28128
28129         * m4/check-libm-func.m4: Removed.
28130         * m4/check-math-lib.m4: New file.
28131         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
28132         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
28133         definition and lack of AC_LIBOBJ([roundf]).
28134         * m4/roundl.m4: Ditto, and similarly for roundl.
28135         * modules/round: Reference new m4 file.
28136         * modules/roundf: Ditto.
28137         * modules/roundl: Ditto.
28138         * tests/test-round2.c (main): Use ROUND instead of round.
28139         Bug report from Bruno Haible.
28140
28141 2007-10-21  Bruno Haible  <bruno@clisp.org>
28142
28143         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
28144         context.
28145
28146 2007-10-21  Bruno Haible  <bruno@clisp.org>
28147
28148         * tests/test-wcwidth.c (main): Allow negative result for some control
28149         characters.
28150
28151         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
28152         Needed on OSF/1 5.1.
28153
28154 2007-10-21  Bruno Haible  <bruno@clisp.org>
28155
28156         * tests/test-floorf1.c: Include isnanf.h.
28157         (main): Use isnanf() instead of isnan().
28158         * tests/test-ceilf1.c: Include isnanf.h.
28159         (main): Use isnanf() instead of isnan().
28160         * tests/test-truncf1.c: Include isnanf.h.
28161         (main): Use isnanf() instead of isnan().
28162         * tests/test-roundf1.c: Include isnanf.h.
28163         (main): Use isnanf() instead of isnan().
28164
28165 2007-10-21  Eric Blake  <ebb9@byu.net>
28166
28167         * users.txt: Update URL for m4.
28168
28169 2007-10-21  Bruno Haible  <bruno@clisp.org>
28170
28171         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
28172
28173 2007-10-21  Bruno Haible  <bruno@clisp.org>
28174
28175         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
28176         Git's management files if the CVS files are not present.
28177
28178 2007-10-20  Bruno Haible  <bruno@clisp.org>
28179
28180         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
28181         gcc-3.4.x.
28182
28183 2007-10-20  Ben Pfaff  <blp@gnu.org>
28184
28185         * lib/math.in.h: Declare round, roundf, roundl if we are providing
28186         implementations.
28187         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
28188         * lib/round.c: New file.
28189         * lib/roundf.c: New file.
28190         * lib/roundl.c: New file.
28191         * m4/round.m4: New file.
28192         * m4/roundf.m4: New file.
28193         * m4/roundl.m4: New file.
28194         * m4/check-libm-func-m4: New file.
28195         * modules/math: Replace round, roundf, roundl related @VARS@ in
28196         math.in.h.
28197         * modules/round: New file.
28198         * modules/round-tests: New file.
28199         * modules/roundf: New file.
28200         * modules/roundf-tests: New file.
28201         * modules/roundl: New file.
28202         * modules/roundl-tests: New file.
28203         * tests/test-round1.c: New file.
28204         * tests/test-round2.c: New file.
28205         * tests/test-roundf1.c: New file.
28206         * tests/test-roundf2.c: New file.
28207         * tests/test-roundl.c: New file.
28208         * doc/functions/round.texi: Mention round module.
28209         * doc/functions/roundf.texi: Mention roundf module.
28210         * doc/functions/roundl.texi: Mention roundl module.
28211         * MODULES.html.sh: Mention new modules.
28212         Thanks to Bruno Haible for suggestions.
28213
28214 2007-10-20  Jim Meyering  <meyering@redhat.com>
28215
28216         * lib/xprintf.c: Include <config.h> unconditionally.
28217
28218         Change xprintf's license to GPL.
28219         * modules/xprintf (License): s/LGPL/GPL/, since this module
28220         depends on modules (exit and exitfail) which are GPL.
28221         Suggestion from Bruno Haible.
28222
28223         xprintf fixes.
28224         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
28225         Use a clearer diagnostic.
28226         Patch from Bruno Haible.
28227
28228 2007-10-20  Bruno Haible  <bruno@clisp.org>
28229
28230         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
28231         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
28232         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28233
28234 2007-10-20  Bruno Haible  <bruno@clisp.org>
28235
28236         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
28237         precision in the comparison result > x - 1 or similar.
28238         * tests/test-ceilf2.c (correct_result_p): Likewise.
28239         * tests/test-truncf2.c (correct_result_p): Likewise.
28240         * tests/test-trunc2.c (correct_result_p): Likewise.
28241         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28242
28243 2007-10-20  Bruno Haible  <bruno@clisp.org>
28244
28245         * modules/ceil: New file.
28246         * m4/ceil.m4: New file.
28247         * doc/functions/ceil.texi: Mention the 'ceil' module.
28248
28249 2007-10-20  Bruno Haible  <bruno@clisp.org>
28250
28251         * modules/floor: New file.
28252         * m4/floor.m4: New file.
28253         * doc/functions/floor.texi: Mention the 'floor' module.
28254
28255 2007-10-20  Bruno Haible  <bruno@clisp.org>
28256
28257         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
28258         of %a.
28259         * modules/floorf-tests (Depends-on): Likewise.
28260         * modules/truncf-tests (Depends-on): Likewise.
28261         * modules/trunc-tests (Depends-on): Likewise.
28262         Reported by Ben Pfaff.
28263
28264 2007-10-19  Jim Meyering  <meyering@redhat.com>
28265
28266         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
28267         Don't bother testing specific errno values.  Just test ferror.
28268
28269         New module: xprintf
28270         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
28271
28272 2007-10-19  Bruno Haible  <bruno@clisp.org>
28273
28274         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
28275         syntax.
28276         * modules/javaexec (Makefile.am): Likewise.
28277         * modules/relocatable-prog (Makefile.am): Likewise.
28278         Suggested by Jim Meyering.
28279
28280 2007-10-18  Bruno Haible  <bruno@clisp.org>
28281
28282         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
28283         Reported by Jim Meyering.
28284
28285 2007-10-18  Eric Blake  <ebb9@byu.net>
28286
28287         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
28288
28289 2007-10-18  Bruno Haible  <bruno@clisp.org>
28290
28291         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
28292         the format string into writable memory. Needed in Fortify conditions.
28293
28294 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
28295             Bruno Haible  <bruno@clisp.org>
28296
28297         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
28298         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
28299         * modules/trim (Depends-on): Add mbchar.
28300         (configure.ac): Add gl_FUNC_MBRTOWC.
28301         (Makefile.am): Augment lib_SOURCES.
28302
28303 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
28304
28305         Modify glob.c to use fstatat and dirfd, to simplify it.
28306         Suggested by Eric Blake.
28307         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
28308         Don't include <stdbool.h>; not used.
28309         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
28310         (link_exists_p): Simplify implementation, since we can now assume
28311         dirfd and fstatat.
28312         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
28313
28314 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28315
28316         * gnulib-tool (func_get_dependencies): Fix sed script to
28317         match only tests.
28318
28319 2007-10-17  Bruno Haible  <bruno@clisp.org>
28320
28321         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
28322         allow locale names without encoding suffix.
28323         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
28324         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28325
28326 2007-10-16  Bruno Haible  <bruno@clisp.org>
28327
28328         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
28329         * lib/getgroups.c (getgroups): Likewise.
28330         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
28331
28332 2007-10-16  Bruno Haible  <bruno@clisp.org>
28333
28334         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
28335         * modules/malloc-posix (License): Likewise.
28336         * modules/realloc-posix (License): Likewise.
28337         * modules/calloc-posix (License): Likewise.
28338         * modules/intprops (License): Change from GPL to LGPL, with
28339         Paul Eggert's approval.
28340
28341 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28342
28343         Merge glibc changes into lib/glob.c.
28344
28345         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
28346         2007-10-15 04:59:03 UTC.  Here are the changes:
28347
28348         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
28349
28350         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
28351
28352         * lib/glob.c: Add some branch prediction throughout.
28353
28354         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
28355
28356         [BZ #5103]
28357         * lib/glob.c (glob): Recognize patterns starting \/.
28358
28359         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
28360
28361         [BZ #3996]
28362         * lib/glob.c (attribute_hidden): Define if not defined.
28363         (glob): Unescape dirname, filename or username when needed and not
28364         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
28365         is NULL.  Handle unescaped [ in pattern without closing ].
28366         Don't pass GLOB_CHECK down to recursive glob for directories.
28367         (__glob_pattern_type): New function.
28368         (__glob_pattern_p): Implement using __glob_pattern_type.
28369         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
28370         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
28371         Remove unreachable code.
28372
28373         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
28374
28375         * lib/glob.c (glob_in_dir): Add some comments and asserts to
28376         explain why there are no leaks.
28377
28378         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
28379
28380         [BZ #3253]
28381         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
28382         time, rather allocate increasingly bigger arrays of pointers, if
28383         possible with alloca, if too large with malloc.
28384
28385 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28386
28387         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
28388         Problem reported by H.Merijn Brand in
28389         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
28390         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
28391         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
28392
28393 2007-10-15  Bruno Haible  <bruno@clisp.org>
28394
28395         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
28396         with explicit rpl_ prefix.
28397         * lib/fopen.c (fopen): Likewise.
28398         * lib/freopen.c (freopen): Likewise.
28399         * lib/iconv.c (iconv): Likewise.
28400         * lib/iconv_close.c (iconv_close): Likewise.
28401
28402 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28403
28404         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
28405
28406 2007-10-15  Bruno Haible  <bruno@clisp.org>
28407
28408         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
28409         <stddef.h> instead of <stdlib.h> since we only need NULL.
28410         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28411
28412 2007-10-15  Bruno Haible  <bruno@clisp.org>
28413
28414         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
28415         Replace paragraph talking about LIBOBJS.
28416         Reported by Colin Watson <cjwatson@debian.org>.
28417
28418 2007-10-15  Bruno Haible  <bruno@clisp.org>
28419
28420         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
28421         <stdlib.h> before using NULL.
28422
28423 2007-10-15  Simon Josefsson  <simon@josefsson.org>
28424
28425         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
28426         Reported by Albert Chin <china@thewrittenword.com>.
28427
28428 2007-10-14  Bruno Haible  <bruno@clisp.org>
28429
28430         * modules/iconv_open-utf-tests: New file.
28431         * tests/test-iconv-utf.c: New file.
28432
28433         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
28434         * modules/iconv_open-utf: New file.
28435         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
28436         (iconv, iconv_close): New declarations.
28437         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
28438         be defined.
28439         (iconv_open): Add special handling of conversion between UTF-8 and
28440         UTF-{16,32}{BE,LE}.
28441         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
28442         * lib/iconv_close.c: New file.
28443         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
28444         gl_FUNC_ICONV_OPEN.
28445         (gl_FUNC_ICONV_OPEN): Use it.
28446         (gl_FUNC_ICONV_OPEN_UTF): New macro.
28447         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
28448         and REPLACE_ICONV_UTF.
28449         * modules/iconv_open (Depends-on): Add c-strcase.
28450         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
28451         ICONV_CONST.
28452         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
28453
28454 2007-10-13  Albert Chin  <china@thewrittenword.com>
28455             Bruno Haible  <bruno@clisp.org>
28456
28457         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
28458         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
28459
28460 2007-10-13  Bruno Haible  <bruno@clisp.org>
28461
28462         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
28463         defined, use the ISO C99 inline semantics.
28464         * lib/argp.h (ARGP_EI): Likewise.
28465
28466 2007-10-13  Bruno Haible  <bruno@clisp.org>
28467
28468         Handle 'inline' change in gcc 4.3.0.
28469         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
28470         argp_fmtstream_write, argp_fmtstream_set_lmargin,
28471         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
28472         argp_fmtstream_point): Disable 'extern' declaration if the function
28473         definition is going to be provided inline.
28474         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
28475         semantics, not the ISO C99 inline semantics.
28476         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
28477         'extern' declaration if the function definition is going to be provided
28478         inline.
28479         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
28480         the GNU C inline semantics, not the ISO C99 inline semantics. With
28481         GCC 4.2, avoid a warning.
28482
28483 2007-10-13  Bruno Haible  <bruno@clisp.org>
28484
28485         * lib/freading.h (freading): Enable the use of __freading for
28486         glibc >= 2.7.
28487         * lib/freading.c (freading): Likewise.
28488
28489 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
28490
28491         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
28492         "warning: C99 inline functions are not supported; using GNU89".
28493
28494 2007-10-12  Bruno Haible  <bruno@clisp.org>
28495
28496         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
28497         of 2.
28498         * tests/test-ceilf2.c: New file.
28499         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
28500
28501         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
28502         * modules/ceilf-tests: Update.
28503
28504 2007-10-12  Bruno Haible  <bruno@clisp.org>
28505
28506         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
28507         of 2.
28508         * tests/test-floorf2.c: New file.
28509         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
28510
28511         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
28512         * modules/floorf-tests: Update.
28513
28514 2007-10-12  Bruno Haible  <bruno@clisp.org>
28515
28516         * tests/test-trunc2.c: New file.
28517         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
28518
28519         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
28520         * modules/trunc-tests: Update.
28521
28522 2007-10-12  Bruno Haible  <bruno@clisp.org>
28523
28524         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
28525         of 2.
28526         * tests/test-truncf2.c: New file.
28527         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
28528
28529         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
28530         * modules/truncf-tests: Update.
28531
28532 2007-10-11  Eric Blake  <ebb9@byu.net>
28533
28534         Don't claim strerror is broken on Interix.
28535         * doc/functions/strerror.texi (strerror): Known broken systems are
28536         now Solaris 8, and not Interix.
28537         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
28538         Interix on cross-compile.
28539         Reported by Martin Koeppe in
28540         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
28541
28542 2007-10-11  Bruno Haible  <bruno@clisp.org>
28543
28544         * modules/i-ring-tests: New file.
28545         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
28546         instead of assert.
28547
28548 2007-10-11  Bruno Haible  <bruno@clisp.org>
28549
28550         * modules/filenamecat-tests: New file.
28551         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
28552         * lib/filenamecat.c: Remove test code.
28553
28554 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28555
28556         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
28557
28558         * lib/strerror.c: Include <string.h> always, to test interface,
28559         and to remove the need for the dummy.
28560         Include intprops.h to compute width instead of doing it ourselves
28561         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
28562         (strerror): Define it to return NULL if there's no system strerror.
28563         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
28564         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
28565         ancient pre-strerror Unix systems well any more.  Saying "unknown
28566         system error" is enough.
28567         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
28568         simpler strerror.c implementation.
28569         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
28570         Simplify the tests to reflect the simpler strerror implementation.
28571         * modules/strerror (Depends-on): Add intprops.
28572
28573 2007-10-09  Eric Blake  <ebb9@byu.net>
28574
28575         Silence test-fpending.
28576         * modules/fpending-tests (Files): Add wrapper script.
28577         * tests/test-fpending.sh: New file.
28578
28579 2007-10-09  Bruno Haible  <bruno@clisp.org>
28580
28581         * MODULES.html.sh (func_module): Don't create a hyperlink for
28582         function names like 'printf_frexp'.
28583         (Misc): Add crc, memxor.
28584         (Characteristics of floating types): New section.
28585         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
28586         isnanf-nolibm, signbit, trunc, truncf, truncl.
28587         (Enhancements for ISO C 99 functions): New subsection Input/output.
28588         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
28589         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
28590         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
28591         (Compatibility checks for POSIX:2001 functions): Add clock-time.
28592         (Enhancements for POSIX:2001 functions): Add chdir-long.
28593         (File system functions): Add areadlink, chdir-safer, read-file.
28594         Remove cycle-check.
28595         (File system as inode set): New section.
28596         (Date and time): Add gethrxtime.
28597         (Multithreading): Add openmp.
28598         (Internationalization functions): Add localename.
28599         (Unicode string functions): Add unistr/u*-mbsnlen.
28600         (Support for maintaining and releasing projects): Add git-version-gen.
28601         (Lone files): Remove directories.
28602
28603 2007-10-08  Ben Pfaff  <blp@gnu.org>
28604
28605         * lib/xmalloca.h: Fix typo in comment.
28606
28607 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28608
28609         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
28610         when avoiding problems with integer overflow.  Use a portable test
28611         instead.
28612
28613 2007-10-08  Simon Josefsson  <simon@josefsson.org>
28614
28615         * modules/dummy (License): Change to LGPLv2+.
28616         * modules/float (License): Likewise
28617         * modules/realloc (License): Likewise
28618         * modules/stdlib (License): Likewise
28619
28620 2007-10-07  Bruno Haible  <bruno@clisp.org>
28621
28622         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
28623         * floor.c (TWO_MANT_DIG): Likewise.
28624         * ceil.c (TWO_MANT_DIG): Likewise.
28625         Reported by Ben Pfaff.
28626
28627 2007-10-07  Bruno Haible  <bruno@clisp.org>
28628
28629         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
28630         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
28631         * lib/frexp.c (FUNC): Likewise.
28632         * lib/printf-frexp.h (printf_frexp): Likewise.
28633         * lib/printf-frexpl.h (printf_frexpl): Likewise.
28634         * lib/printf-frexp.c (FUNC): Likewise.
28635         Suggested by Jim Meyering.
28636
28637 2007-10-07  Jim Meyering  <meyering@redhat.com>
28638
28639         Make xnanosleep's integer overflow test more robust.
28640         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
28641         so that gcc-4.3.0 doesn't optimize away this test for overflow.
28642
28643 2007-10-07  Bruno Haible  <bruno@clisp.org>
28644
28645         * NEWS: Mention the license change.
28646
28647         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
28648         abbreviations in the modules files.
28649
28650         Change copyright notice from GPLv2+ to GPLv3+.
28651         * README: Change copyright notice.
28652         * MODULES.html.sh: Likewise.
28653         * build-aux/bootstrap.conf: Likewise.
28654         * build-aux/config.libpath: Likewise.
28655         * build-aux/csharpcomp.sh.in: Likewise.
28656         * build-aux/csharpexec.sh.in: Likewise.
28657         * build-aux/install-reloc: Likewise.
28658         * build-aux/javacomp.sh.in: Likewise.
28659         * build-aux/javaexec.sh.in: Likewise.
28660         * build-aux/ldd.sh.in: Likewise.
28661         * build-aux/reloc-ldflags: Likewise.
28662         * build-aux/relocatable.sh.in: Likewise.
28663         * build-aux/x-to-1.in: Likewise.
28664         * check-module: Likewise.
28665         * config/srclistvars.sh: Likewise.
28666         * gnulib-tool: Likewise.
28667         * lib/acl-internal.h: Likewise.
28668         * lib/acl.c: Likewise.
28669         * lib/acl.h: Likewise.
28670         * lib/acl_entries.c: Likewise.
28671         * lib/areadlink-with-size.c: Likewise.
28672         * lib/areadlink.c: Likewise.
28673         * lib/areadlink.h: Likewise.
28674         * lib/argmatch.c: Likewise.
28675         * lib/argmatch.h: Likewise.
28676         * lib/argp-ba.c: Likewise.
28677         * lib/argp-eexst.c: Likewise.
28678         * lib/argp-fmtstream.c: Likewise.
28679         * lib/argp-fmtstream.h: Likewise.
28680         * lib/argp-fs-xinl.c: Likewise.
28681         * lib/argp-help.c: Likewise.
28682         * lib/argp-namefrob.h: Likewise.
28683         * lib/argp-parse.c: Likewise.
28684         * lib/argp-pin.c: Likewise.
28685         * lib/argp-pv.c: Likewise.
28686         * lib/argp-pvh.c: Likewise.
28687         * lib/argp-xinl.c: Likewise.
28688         * lib/argp.h: Likewise.
28689         * lib/at-func.c: Likewise.
28690         * lib/atanl.c: Likewise.
28691         * lib/backupfile.c: Likewise.
28692         * lib/backupfile.h: Likewise.
28693         * lib/basename.c: Likewise.
28694         * lib/binary-io.h: Likewise.
28695         * lib/byteswap.in.h: Likewise.
28696         * lib/c-stack.c: Likewise.
28697         * lib/c-stack.h: Likewise.
28698         * lib/c-strcasestr.c: Likewise.
28699         * lib/c-strcasestr.h: Likewise.
28700         * lib/c-strstr.c: Likewise.
28701         * lib/c-strstr.h: Likewise.
28702         * lib/c-strtod.c: Likewise.
28703         * lib/calloc.c: Likewise.
28704         * lib/canon-host.c: Likewise.
28705         * lib/canon-host.h: Likewise.
28706         * lib/canonicalize-lgpl.c: Likewise.
28707         * lib/canonicalize.c: Likewise.
28708         * lib/canonicalize.h: Likewise.
28709         * lib/ceil.c: Likewise.
28710         * lib/ceilf.c: Likewise.
28711         * lib/ceill.c: Likewise.
28712         * lib/chdir-long.c: Likewise.
28713         * lib/chdir-long.h: Likewise.
28714         * lib/chdir-safer.c: Likewise.
28715         * lib/chdir-safer.h: Likewise.
28716         * lib/chown.c: Likewise.
28717         * lib/classpath.c: Likewise.
28718         * lib/classpath.h: Likewise.
28719         * lib/clean-temp.c: Likewise.
28720         * lib/clean-temp.h: Likewise.
28721         * lib/cloexec.c: Likewise.
28722         * lib/close-stream.c: Likewise.
28723         * lib/closein.c: Likewise.
28724         * lib/closein.h: Likewise.
28725         * lib/closeout.c: Likewise.
28726         * lib/closeout.h: Likewise.
28727         * lib/concat-filename.c: Likewise.
28728         * lib/copy-file.c: Likewise.
28729         * lib/copy-file.h: Likewise.
28730         * lib/count-one-bits.h: Likewise.
28731         * lib/crc.c: Likewise.
28732         * lib/crc.h: Likewise.
28733         * lib/creat-safer.c: Likewise.
28734         * lib/csharpcomp.c: Likewise.
28735         * lib/csharpcomp.h: Likewise.
28736         * lib/csharpexec.c: Likewise.
28737         * lib/csharpexec.h: Likewise.
28738         * lib/cycle-check.c: Likewise.
28739         * lib/cycle-check.h: Likewise.
28740         * lib/diacrit.c: Likewise.
28741         * lib/diacrit.h: Likewise.
28742         * lib/diffseq.h: Likewise.
28743         * lib/dirchownmod.c: Likewise.
28744         * lib/dirent.in.h: Likewise.
28745         * lib/dirfd.c: Likewise.
28746         * lib/dirfd.h: Likewise.
28747         * lib/dirname.c: Likewise.
28748         * lib/dirname.h: Likewise.
28749         * lib/dummy.c: Likewise.
28750         * lib/dup-safer.c: Likewise.
28751         * lib/dup2.c: Likewise.
28752         * lib/eealloc.h: Likewise.
28753         * lib/error.c: Likewise.
28754         * lib/error.h: Likewise.
28755         * lib/euidaccess.c: Likewise.
28756         * lib/exclude.c: Likewise.
28757         * lib/exclude.h: Likewise.
28758         * lib/execute.c: Likewise.
28759         * lib/execute.h: Likewise.
28760         * lib/exitfail.c: Likewise.
28761         * lib/exitfail.h: Likewise.
28762         * lib/expl.c: Likewise.
28763         * lib/fatal-signal.c: Likewise.
28764         * lib/fatal-signal.h: Likewise.
28765         * lib/fbufmode.c: Likewise.
28766         * lib/fbufmode.h: Likewise.
28767         * lib/fchdir.c: Likewise.
28768         * lib/fchmodat.c: Likewise.
28769         * lib/fchownat.c: Likewise.
28770         * lib/fcntl--.h: Likewise.
28771         * lib/fcntl-safer.h: Likewise.
28772         * lib/fcntl.in.h: Likewise.
28773         * lib/fd-safer.c: Likewise.
28774         * lib/fflush.c: Likewise.
28775         * lib/file-has-acl.c: Likewise.
28776         * lib/file-set.c: Likewise.
28777         * lib/file-type.c: Likewise.
28778         * lib/file-type.h: Likewise.
28779         * lib/fileblocks.c: Likewise.
28780         * lib/filemode.c: Likewise.
28781         * lib/filemode.h: Likewise.
28782         * lib/filename.h: Likewise.
28783         * lib/filenamecat.c: Likewise.
28784         * lib/filenamecat.h: Likewise.
28785         * lib/findprog.c: Likewise.
28786         * lib/findprog.h: Likewise.
28787         * lib/float.in.h: Likewise.
28788         * lib/floor.c: Likewise.
28789         * lib/floorf.c: Likewise.
28790         * lib/floorl.c: Likewise.
28791         * lib/fopen-safer.c: Likewise.
28792         * lib/fopen.c: Likewise.
28793         * lib/fpending.c: Likewise.
28794         * lib/fpending.h: Likewise.
28795         * lib/fprintf.c: Likewise.
28796         * lib/fprintftime.h: Likewise.
28797         * lib/fpucw.h: Likewise.
28798         * lib/fpurge.c: Likewise.
28799         * lib/fpurge.h: Likewise.
28800         * lib/freadable.c: Likewise.
28801         * lib/freadable.h: Likewise.
28802         * lib/freadahead.c: Likewise.
28803         * lib/freadahead.h: Likewise.
28804         * lib/freading.c: Likewise.
28805         * lib/freading.h: Likewise.
28806         * lib/free.c: Likewise.
28807         * lib/freopen.c: Likewise.
28808         * lib/frexp.c: Likewise.
28809         * lib/frexpl.c: Likewise.
28810         * lib/fseek.c: Likewise.
28811         * lib/fseterr.c: Likewise.
28812         * lib/fseterr.h: Likewise.
28813         * lib/fstatat.c: Likewise.
28814         * lib/fstrcmp.c: Likewise.
28815         * lib/fstrcmp.h: Likewise.
28816         * lib/fsusage.c: Likewise.
28817         * lib/fsusage.h: Likewise.
28818         * lib/ftell.c: Likewise.
28819         * lib/ftello.c: Likewise.
28820         * lib/fts-cycle.c: Likewise.
28821         * lib/fts.c: Likewise.
28822         * lib/fts_.h: Likewise.
28823         * lib/full-read.c: Likewise.
28824         * lib/full-read.h: Likewise.
28825         * lib/full-write.c: Likewise.
28826         * lib/full-write.h: Likewise.
28827         * lib/fwritable.c: Likewise.
28828         * lib/fwritable.h: Likewise.
28829         * lib/fwriteerror.c: Likewise.
28830         * lib/fwriteerror.h: Likewise.
28831         * lib/fwriting.c: Likewise.
28832         * lib/fwriting.h: Likewise.
28833         * lib/gcd.c: Likewise.
28834         * lib/gcd.h: Likewise.
28835         * lib/getcwd.c: Likewise.
28836         * lib/getdate.h: Likewise.
28837         * lib/getdate.y: Likewise.
28838         * lib/getdomainname.c: Likewise.
28839         * lib/getdomainname.h: Likewise.
28840         * lib/getgroups.c: Likewise.
28841         * lib/gethostname.c: Likewise.
28842         * lib/gethrxtime.c: Likewise.
28843         * lib/gethrxtime.h: Likewise.
28844         * lib/getloadavg.c: Likewise.
28845         * lib/getndelim2.c: Likewise.
28846         * lib/getndelim2.h: Likewise.
28847         * lib/getnline.c: Likewise.
28848         * lib/getnline.h: Likewise.
28849         * lib/getopt.c: Likewise.
28850         * lib/getopt.in.h: Likewise.
28851         * lib/getopt1.c: Likewise.
28852         * lib/getopt_int.h: Likewise.
28853         * lib/getpagesize.h: Likewise.
28854         * lib/getsubopt.c: Likewise.
28855         * lib/gettime.c: Likewise.
28856         * lib/getugroups.c: Likewise.
28857         * lib/getugroups.h: Likewise.
28858         * lib/getusershell.c: Likewise.
28859         * lib/gl_anyavltree_list1.h: Likewise.
28860         * lib/gl_anyavltree_list2.h: Likewise.
28861         * lib/gl_anyhash_list1.h: Likewise.
28862         * lib/gl_anyhash_list2.h: Likewise.
28863         * lib/gl_anylinked_list1.h: Likewise.
28864         * lib/gl_anylinked_list2.h: Likewise.
28865         * lib/gl_anyrbtree_list1.h: Likewise.
28866         * lib/gl_anyrbtree_list2.h: Likewise.
28867         * lib/gl_anytree_list1.h: Likewise.
28868         * lib/gl_anytree_list2.h: Likewise.
28869         * lib/gl_anytree_oset.h: Likewise.
28870         * lib/gl_anytreehash_list1.h: Likewise.
28871         * lib/gl_anytreehash_list2.h: Likewise.
28872         * lib/gl_array_list.c: Likewise.
28873         * lib/gl_array_list.h: Likewise.
28874         * lib/gl_array_oset.c: Likewise.
28875         * lib/gl_array_oset.h: Likewise.
28876         * lib/gl_avltree_list.c: Likewise.
28877         * lib/gl_avltree_list.h: Likewise.
28878         * lib/gl_avltree_oset.c: Likewise.
28879         * lib/gl_avltree_oset.h: Likewise.
28880         * lib/gl_avltreehash_list.c: Likewise.
28881         * lib/gl_avltreehash_list.h: Likewise.
28882         * lib/gl_carray_list.c: Likewise.
28883         * lib/gl_carray_list.h: Likewise.
28884         * lib/gl_linked_list.c: Likewise.
28885         * lib/gl_linked_list.h: Likewise.
28886         * lib/gl_linkedhash_list.c: Likewise.
28887         * lib/gl_linkedhash_list.h: Likewise.
28888         * lib/gl_list.c: Likewise.
28889         * lib/gl_list.h: Likewise.
28890         * lib/gl_oset.c: Likewise.
28891         * lib/gl_oset.h: Likewise.
28892         * lib/gl_rbtree_list.c: Likewise.
28893         * lib/gl_rbtree_list.h: Likewise.
28894         * lib/gl_rbtree_oset.c: Likewise.
28895         * lib/gl_rbtree_oset.h: Likewise.
28896         * lib/gl_rbtreehash_list.c: Likewise.
28897         * lib/gl_rbtreehash_list.h: Likewise.
28898         * lib/gl_sublist.c: Likewise.
28899         * lib/gl_sublist.h: Likewise.
28900         * lib/group-member.c: Likewise.
28901         * lib/group-member.h: Likewise.
28902         * lib/hard-locale.c: Likewise.
28903         * lib/hard-locale.h: Likewise.
28904         * lib/hash-pjw.c: Likewise.
28905         * lib/hash-pjw.h: Likewise.
28906         * lib/hash-triple.c: Likewise.
28907         * lib/hash.c: Likewise.
28908         * lib/hash.h: Likewise.
28909         * lib/human.c: Likewise.
28910         * lib/human.h: Likewise.
28911         * lib/i-ring.c: Likewise.
28912         * lib/i-ring.h: Likewise.
28913         * lib/idcache.c: Likewise.
28914         * lib/imaxabs.c: Likewise.
28915         * lib/imaxdiv.c: Likewise.
28916         * lib/inet_pton.c: Likewise.
28917         * lib/inet_pton.h: Likewise.
28918         * lib/intprops.h: Likewise.
28919         * lib/inttostr.c: Likewise.
28920         * lib/inttostr.h: Likewise.
28921         * lib/inttypes.in.h: Likewise.
28922         * lib/isapipe.c: Likewise.
28923         * lib/isdir.c: Likewise.
28924         * lib/isnan.c: Likewise.
28925         * lib/isnan.h: Likewise.
28926         * lib/isnanf.c: Likewise.
28927         * lib/isnanf.h: Likewise.
28928         * lib/isnanl-nolibm.h: Likewise.
28929         * lib/isnanl.c: Likewise.
28930         * lib/isnanl.h: Likewise.
28931         * lib/javacomp.c: Likewise.
28932         * lib/javacomp.h: Likewise.
28933         * lib/javaexec.c: Likewise.
28934         * lib/javaexec.h: Likewise.
28935         * lib/javaversion.c: Likewise.
28936         * lib/javaversion.h: Likewise.
28937         * lib/javaversion.java: Likewise.
28938         * lib/lbrkprop.h: Likewise.
28939         * lib/lchmod.h: Likewise.
28940         * lib/lchown.c: Likewise.
28941         * lib/ldexpl.c: Likewise.
28942         * lib/linebreak.c: Likewise.
28943         * lib/linebreak.h: Likewise.
28944         * lib/linebuffer.c: Likewise.
28945         * lib/linebuffer.h: Likewise.
28946         * lib/locale.in.h: Likewise.
28947         * lib/logl.c: Likewise.
28948         * lib/long-options.c: Likewise.
28949         * lib/long-options.h: Likewise.
28950         * lib/lstat.c: Likewise.
28951         * lib/lstat.h: Likewise.
28952         * lib/math.in.h: Likewise.
28953         * lib/mbchar.c: Likewise.
28954         * lib/mbchar.h: Likewise.
28955         * lib/mbfile.h: Likewise.
28956         * lib/mbiter.h: Likewise.
28957         * lib/mbscasecmp.c: Likewise.
28958         * lib/mbscasestr.c: Likewise.
28959         * lib/mbschr.c: Likewise.
28960         * lib/mbscspn.c: Likewise.
28961         * lib/mbslen.c: Likewise.
28962         * lib/mbsncasecmp.c: Likewise.
28963         * lib/mbsnlen.c: Likewise.
28964         * lib/mbspbrk.c: Likewise.
28965         * lib/mbspcasecmp.c: Likewise.
28966         * lib/mbsrchr.c: Likewise.
28967         * lib/mbssep.c: Likewise.
28968         * lib/mbsspn.c: Likewise.
28969         * lib/mbsstr.c: Likewise.
28970         * lib/mbstok_r.c: Likewise.
28971         * lib/mbswidth.c: Likewise.
28972         * lib/mbswidth.h: Likewise.
28973         * lib/mbuiter.h: Likewise.
28974         * lib/memcasecmp.c: Likewise.
28975         * lib/memcasecmp.h: Likewise.
28976         * lib/memchr.c: Likewise.
28977         * lib/memcmp.c: Likewise.
28978         * lib/memcoll.c: Likewise.
28979         * lib/memcoll.h: Likewise.
28980         * lib/memcpy.c: Likewise.
28981         * lib/memrchr.c: Likewise.
28982         * lib/mkancesdirs.c: Likewise.
28983         * lib/mkdir-p.c: Likewise.
28984         * lib/mkdir-p.h: Likewise.
28985         * lib/mkdir.c: Likewise.
28986         * lib/mkdirat.c: Likewise.
28987         * lib/mkdtemp.c: Likewise.
28988         * lib/mkstemp-safer.c: Likewise.
28989         * lib/mkstemp.c: Likewise.
28990         * lib/modechange.c: Likewise.
28991         * lib/modechange.h: Likewise.
28992         * lib/mountlist.c: Likewise.
28993         * lib/mountlist.h: Likewise.
28994         * lib/mpsort.c: Likewise.
28995         * lib/nanosleep.c: Likewise.
28996         * lib/obstack.c: Likewise.
28997         * lib/obstack.h: Likewise.
28998         * lib/open-safer.c: Likewise.
28999         * lib/open.c: Likewise.
29000         * lib/openat-die.c: Likewise.
29001         * lib/openat-priv.h: Likewise.
29002         * lib/openat-proc.c: Likewise.
29003         * lib/openat.c: Likewise.
29004         * lib/openat.h: Likewise.
29005         * lib/pagealign_alloc.c: Likewise.
29006         * lib/pagealign_alloc.h: Likewise.
29007         * lib/physmem.c: Likewise.
29008         * lib/physmem.h: Likewise.
29009         * lib/pipe-safer.c: Likewise.
29010         * lib/pipe.c: Likewise.
29011         * lib/pipe.h: Likewise.
29012         * lib/posixtm.c: Likewise.
29013         * lib/posixtm.h: Likewise.
29014         * lib/posixver.c: Likewise.
29015         * lib/printf-frexp.c: Likewise.
29016         * lib/printf-frexp.h: Likewise.
29017         * lib/printf-frexpl.c: Likewise.
29018         * lib/printf-frexpl.h: Likewise.
29019         * lib/printf.c: Likewise.
29020         * lib/progname.c: Likewise.
29021         * lib/progname.h: Likewise.
29022         * lib/progreloc.c: Likewise.
29023         * lib/putenv.c: Likewise.
29024         * lib/quote.c: Likewise.
29025         * lib/quote.h: Likewise.
29026         * lib/quotearg.c: Likewise.
29027         * lib/quotearg.h: Likewise.
29028         * lib/raise.c: Likewise.
29029         * lib/readline.c: Likewise.
29030         * lib/readline.h: Likewise.
29031         * lib/readlink.c: Likewise.
29032         * lib/readtokens.c: Likewise.
29033         * lib/readtokens.h: Likewise.
29034         * lib/readtokens0.c: Likewise.
29035         * lib/readtokens0.h: Likewise.
29036         * lib/readutmp.c: Likewise.
29037         * lib/readutmp.h: Likewise.
29038         * lib/realloc.c: Likewise.
29039         * lib/relocwrapper.c: Likewise.
29040         * lib/rename-dest-slash.c: Likewise.
29041         * lib/rename.c: Likewise.
29042         * lib/rmdir.c: Likewise.
29043         * lib/rpmatch.c: Likewise.
29044         * lib/safe-read.c: Likewise.
29045         * lib/safe-read.h: Likewise.
29046         * lib/safe-write.c: Likewise.
29047         * lib/safe-write.h: Likewise.
29048         * lib/same-inode.h: Likewise.
29049         * lib/same.c: Likewise.
29050         * lib/same.h: Likewise.
29051         * lib/save-cwd.c: Likewise.
29052         * lib/save-cwd.h: Likewise.
29053         * lib/savedir.c: Likewise.
29054         * lib/savedir.h: Likewise.
29055         * lib/savewd.c: Likewise.
29056         * lib/savewd.h: Likewise.
29057         * lib/search.in.h: Likewise.
29058         * lib/setenv.c: Likewise.
29059         * lib/setenv.h: Likewise.
29060         * lib/settime.c: Likewise.
29061         * lib/sh-quote.c: Likewise.
29062         * lib/sh-quote.h: Likewise.
29063         * lib/sig2str.c: Likewise.
29064         * lib/sig2str.h: Likewise.
29065         * lib/signal.in.h: Likewise.
29066         * lib/signbitd.c: Likewise.
29067         * lib/signbitf.c: Likewise.
29068         * lib/signbitl.c: Likewise.
29069         * lib/sigprocmask.c: Likewise.
29070         * lib/sincosl.c: Likewise.
29071         * lib/sleep.c: Likewise.
29072         * lib/sprintf.c: Likewise.
29073         * lib/sqrtl.c: Likewise.
29074         * lib/stat-time.h: Likewise.
29075         * lib/stdio--.h: Likewise.
29076         * lib/stdio-safer.h: Likewise.
29077         * lib/stdlib--.h: Likewise.
29078         * lib/stdlib-safer.h: Likewise.
29079         * lib/stdlib.in.h: Likewise.
29080         * lib/stpcpy.c: Likewise.
29081         * lib/stpncpy.c: Likewise.
29082         * lib/strchrnul.c: Likewise.
29083         * lib/strcspn.c: Likewise.
29084         * lib/strerror.c: Likewise.
29085         * lib/strftime.c: Likewise.
29086         * lib/strftime.h: Likewise.
29087         * lib/striconveh.c: Likewise.
29088         * lib/striconveh.h: Likewise.
29089         * lib/striconveha.c: Likewise.
29090         * lib/striconveha.h: Likewise.
29091         * lib/stripslash.c: Likewise.
29092         * lib/strnlen1.c: Likewise.
29093         * lib/strnlen1.h: Likewise.
29094         * lib/strtod.c: Likewise.
29095         * lib/strtoimax.c: Likewise.
29096         * lib/strtok_r.c: Likewise.
29097         * lib/strtol.c: Likewise.
29098         * lib/strtoll.c: Likewise.
29099         * lib/strtoul.c: Likewise.
29100         * lib/strtoull.c: Likewise.
29101         * lib/sysexits.in.h: Likewise.
29102         * lib/tempname.c: Likewise.
29103         * lib/tempname.h: Likewise.
29104         * lib/timespec.h: Likewise.
29105         * lib/tls.c: Likewise.
29106         * lib/tls.h: Likewise.
29107         * lib/tmpdir.c: Likewise.
29108         * lib/tmpdir.h: Likewise.
29109         * lib/tmpfile-safer.c: Likewise.
29110         * lib/tmpfile.c: Likewise.
29111         * lib/trigl.c: Likewise.
29112         * lib/trigl.h: Likewise.
29113         * lib/trim.c: Likewise.
29114         * lib/trim.h: Likewise.
29115         * lib/trunc.c: Likewise.
29116         * lib/truncf.c: Likewise.
29117         * lib/truncl.c: Likewise.
29118         * lib/tsearch.c: Likewise.
29119         * lib/unicodeio.c: Likewise.
29120         * lib/unicodeio.h: Likewise.
29121         * lib/unistd--.h: Likewise.
29122         * lib/unistd-safer.h: Likewise.
29123         * lib/unistdio/ulc-fprintf.c: Likewise.
29124         * lib/unistdio/ulc-vfprintf.c: Likewise.
29125         * lib/unlinkdir.c: Likewise.
29126         * lib/unlinkdir.h: Likewise.
29127         * lib/unlocked-io.h: Likewise.
29128         * lib/unsetenv.c: Likewise.
29129         * lib/userspec.c: Likewise.
29130         * lib/utime.c: Likewise.
29131         * lib/utimecmp.c: Likewise.
29132         * lib/utimecmp.h: Likewise.
29133         * lib/utimens.c: Likewise.
29134         * lib/verify.h: Likewise.
29135         * lib/verror.c: Likewise.
29136         * lib/verror.h: Likewise.
29137         * lib/version-etc-fsf.c: Likewise.
29138         * lib/version-etc.c: Likewise.
29139         * lib/version-etc.h: Likewise.
29140         * lib/vfprintf.c: Likewise.
29141         * lib/vprintf.c: Likewise.
29142         * lib/vsprintf.c: Likewise.
29143         * lib/w32spawn.h: Likewise.
29144         * lib/wait-process.c: Likewise.
29145         * lib/wait-process.h: Likewise.
29146         * lib/wcwidth.c: Likewise.
29147         * lib/write-any-file.c: Likewise.
29148         * lib/xalloc-die.c: Likewise.
29149         * lib/xalloc.h: Likewise.
29150         * lib/xasprintf.c: Likewise.
29151         * lib/xgetcwd.c: Likewise.
29152         * lib/xgetcwd.h: Likewise.
29153         * lib/xgetdomainname.c: Likewise.
29154         * lib/xgetdomainname.h: Likewise.
29155         * lib/xgethostname.c: Likewise.
29156         * lib/xmalloc.c: Likewise.
29157         * lib/xmalloca.c: Likewise.
29158         * lib/xmalloca.h: Likewise.
29159         * lib/xmemcoll.c: Likewise.
29160         * lib/xnanosleep.c: Likewise.
29161         * lib/xreadlink.c: Likewise.
29162         * lib/xreadlink.h: Likewise.
29163         * lib/xsetenv.c: Likewise.
29164         * lib/xsetenv.h: Likewise.
29165         * lib/xstriconv.c: Likewise.
29166         * lib/xstriconv.h: Likewise.
29167         * lib/xstrndup.c: Likewise.
29168         * lib/xstrndup.h: Likewise.
29169         * lib/xstrtod.c: Likewise.
29170         * lib/xstrtod.h: Likewise.
29171         * lib/xstrtol-error.c: Likewise.
29172         * lib/xstrtol.c: Likewise.
29173         * lib/xstrtol.h: Likewise.
29174         * lib/xtime.h: Likewise.
29175         * lib/xvasprintf.c: Likewise.
29176         * lib/xvasprintf.h: Likewise.
29177         * lib/yesno.c: Likewise.
29178         * lib/yesno.h: Likewise.
29179         * posix-modules: Likewise.
29180         * tests/test-alloca-opt.c: Likewise.
29181         * tests/test-arcfour.c: Likewise.
29182         * tests/test-arctwo.c: Likewise.
29183         * tests/test-argmatch.c: Likewise.
29184         * tests/test-argp-2.sh: Likewise.
29185         * tests/test-argp.c: Likewise.
29186         * tests/test-arpa_inet.c: Likewise.
29187         * tests/test-array_list.c: Likewise.
29188         * tests/test-array_oset.c: Likewise.
29189         * tests/test-atexit.c: Likewise.
29190         * tests/test-avltree_list.c: Likewise.
29191         * tests/test-avltree_oset.c: Likewise.
29192         * tests/test-avltreehash_list.c: Likewise.
29193         * tests/test-base64.c: Likewise.
29194         * tests/test-binary-io.c: Likewise.
29195         * tests/test-byteswap.c: Likewise.
29196         * tests/test-c-ctype.c: Likewise.
29197         * tests/test-c-strcasecmp.c: Likewise.
29198         * tests/test-c-strcasestr.c: Likewise.
29199         * tests/test-c-strncasecmp.c: Likewise.
29200         * tests/test-c-strstr.c: Likewise.
29201         * tests/test-canonicalize-lgpl.c: Likewise.
29202         * tests/test-canonicalize.c: Likewise.
29203         * tests/test-carray_list.c: Likewise.
29204         * tests/test-ceilf.c: Likewise.
29205         * tests/test-ceill.c: Likewise.
29206         * tests/test-count-one-bits.c: Likewise.
29207         * tests/test-crc.c: Likewise.
29208         * tests/test-dirname.c: Likewise.
29209         * tests/test-fbufmode.c: Likewise.
29210         * tests/test-fcntl.c: Likewise.
29211         * tests/test-fflush.c: Likewise.
29212         * tests/test-floorf.c: Likewise.
29213         * tests/test-floorl.c: Likewise.
29214         * tests/test-fopen.c: Likewise.
29215         * tests/test-fprintf-posix.c: Likewise.
29216         * tests/test-fprintf-posix.h: Likewise.
29217         * tests/test-fpurge.c: Likewise.
29218         * tests/test-freadable.c: Likewise.
29219         * tests/test-freadahead.c: Likewise.
29220         * tests/test-freading.c: Likewise.
29221         * tests/test-freopen.c: Likewise.
29222         * tests/test-frexp.c: Likewise.
29223         * tests/test-frexpl.c: Likewise.
29224         * tests/test-fseek.c: Likewise.
29225         * tests/test-fseeko.c: Likewise.
29226         * tests/test-fseterr.c: Likewise.
29227         * tests/test-fstrcmp.c: Likewise.
29228         * tests/test-ftell.c: Likewise.
29229         * tests/test-ftello.c: Likewise.
29230         * tests/test-fwritable.c: Likewise.
29231         * tests/test-fwriting.c: Likewise.
29232         * tests/test-getaddrinfo.c: Likewise.
29233         * tests/test-getpass.c: Likewise.
29234         * tests/test-gettimeofday.c: Likewise.
29235         * tests/test-hmac-md5.c: Likewise.
29236         * tests/test-hmac-sha1.c: Likewise.
29237         * tests/test-iconv.c: Likewise.
29238         * tests/test-iconvme.c: Likewise.
29239         * tests/test-inttypes.c: Likewise.
29240         * tests/test-isnan.c: Likewise.
29241         * tests/test-isnanf.c: Likewise.
29242         * tests/test-isnanl-nolibm.c: Likewise.
29243         * tests/test-isnanl.c: Likewise.
29244         * tests/test-isnanl.h: Likewise.
29245         * tests/test-ldexpl.c: Likewise.
29246         * tests/test-linked_list.c: Likewise.
29247         * tests/test-linkedhash_list.c: Likewise.
29248         * tests/test-locale.c: Likewise.
29249         * tests/test-localename.c: Likewise.
29250         * tests/test-lock.c: Likewise.
29251         * tests/test-lseek.c: Likewise.
29252         * tests/test-malloca.c: Likewise.
29253         * tests/test-math.c: Likewise.
29254         * tests/test-mbscasecmp.c: Likewise.
29255         * tests/test-mbscasestr1.c: Likewise.
29256         * tests/test-mbscasestr2.c: Likewise.
29257         * tests/test-mbscasestr3.c: Likewise.
29258         * tests/test-mbscasestr4.c: Likewise.
29259         * tests/test-mbschr.c: Likewise.
29260         * tests/test-mbscspn.c: Likewise.
29261         * tests/test-mbsncasecmp.c: Likewise.
29262         * tests/test-mbspbrk.c: Likewise.
29263         * tests/test-mbspcasecmp.c: Likewise.
29264         * tests/test-mbsrchr.c: Likewise.
29265         * tests/test-mbsspn.c: Likewise.
29266         * tests/test-mbsstr1.c: Likewise.
29267         * tests/test-mbsstr2.c: Likewise.
29268         * tests/test-mbsstr3.c: Likewise.
29269         * tests/test-md5.c: Likewise.
29270         * tests/test-memmem.c: Likewise.
29271         * tests/test-netinet_in.c: Likewise.
29272         * tests/test-open.c: Likewise.
29273         * tests/test-printf-frexp.c: Likewise.
29274         * tests/test-printf-frexpl.c: Likewise.
29275         * tests/test-printf-posix.c: Likewise.
29276         * tests/test-printf-posix.h: Likewise.
29277         * tests/test-rbtree_list.c: Likewise.
29278         * tests/test-rbtree_oset.c: Likewise.
29279         * tests/test-rbtreehash_list.c: Likewise.
29280         * tests/test-read-file.c: Likewise.
29281         * tests/test-rijndael.c: Likewise.
29282         * tests/test-search.c: Likewise.
29283         * tests/test-signbit.c: Likewise.
29284         * tests/test-sleep.c: Likewise.
29285         * tests/test-snprintf-posix.c: Likewise.
29286         * tests/test-snprintf-posix.h: Likewise.
29287         * tests/test-snprintf.c: Likewise.
29288         * tests/test-sprintf-posix.c: Likewise.
29289         * tests/test-sprintf-posix.h: Likewise.
29290         * tests/test-stat-time.c: Likewise.
29291         * tests/test-stdbool.c: Likewise.
29292         * tests/test-stdint.c: Likewise.
29293         * tests/test-stdio.c: Likewise.
29294         * tests/test-stdlib.c: Likewise.
29295         * tests/test-stpncpy.c: Likewise.
29296         * tests/test-strcasestr.c: Likewise.
29297         * tests/test-striconv.c: Likewise.
29298         * tests/test-striconveh.c: Likewise.
29299         * tests/test-striconveha.c: Likewise.
29300         * tests/test-string.c: Likewise.
29301         * tests/test-sys_select.c: Likewise.
29302         * tests/test-sys_socket.c: Likewise.
29303         * tests/test-sys_stat.c: Likewise.
29304         * tests/test-sys_time.c: Likewise.
29305         * tests/test-sysexits.c: Likewise.
29306         * tests/test-time.c: Likewise.
29307         * tests/test-tls.c: Likewise.
29308         * tests/test-trunc.c: Likewise.
29309         * tests/test-truncf.c: Likewise.
29310         * tests/test-truncl.c: Likewise.
29311         * tests/test-unistd.c: Likewise.
29312         * tests/test-vasnprintf-posix.c: Likewise.
29313         * tests/test-vasnprintf-posix2.c: Likewise.
29314         * tests/test-vasnprintf.c: Likewise.
29315         * tests/test-vasprintf-posix.c: Likewise.
29316         * tests/test-vasprintf.c: Likewise.
29317         * tests/test-verify.c: Likewise.
29318         * tests/test-vfprintf-posix.c: Likewise.
29319         * tests/test-vprintf-posix.c: Likewise.
29320         * tests/test-vsnprintf-posix.c: Likewise.
29321         * tests/test-vsnprintf.c: Likewise.
29322         * tests/test-vsprintf-posix.c: Likewise.
29323         * tests/test-wchar.c: Likewise.
29324         * tests/test-wctype.c: Likewise.
29325         * tests/test-wcwidth.c: Likewise.
29326         * tests/test-xstrtol.c: Likewise.
29327         * tests/test-xvasprintf.c: Likewise.
29328         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29329         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29330         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29331         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29332         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29333         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
29334         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29335         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29336         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29337         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
29338         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29339         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29340         * tests/uniname/test-uninames.c: Likewise.
29341         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29342         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
29343         * tests/unistdio/test-u16-printf1.h: Likewise.
29344         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29345         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29346         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29347         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29348         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29349         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29350         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29351         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
29352         * tests/unistdio/test-u32-printf1.h: Likewise.
29353         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29354         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
29355         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
29356         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
29357         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
29358         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
29359         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
29360         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
29361         * tests/unistdio/test-u8-printf1.h: Likewise.
29362         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
29363         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
29364         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
29365         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
29366         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
29367         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
29368         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
29369         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
29370         * tests/unistdio/test-ulc-printf1.h: Likewise.
29371         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
29372         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
29373         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
29374         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
29375         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
29376         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
29377         * tests/uniwidth/test-u16-strwidth.c: Likewise.
29378         * tests/uniwidth/test-u16-width.c: Likewise.
29379         * tests/uniwidth/test-u32-strwidth.c: Likewise.
29380         * tests/uniwidth/test-u32-width.c: Likewise.
29381         * tests/uniwidth/test-u8-strwidth.c: Likewise.
29382         * tests/uniwidth/test-u8-width.c: Likewise.
29383         * tests/uniwidth/test-uc_width.c: Likewise.
29384         * config/srclist-update: Likewise.
29385         (fixlicense): Update to GPLv3+.
29386
29387         Change copyright notice from LGPLv2.1+ to LGPLv3+.
29388         * tests/test-tsearch.c: Change copyright notice.
29389
29390         Change copyright notice from LGPLv2.0+ to LGPLv3+.
29391         * lib/c-strcaseeq.h: Change copyright notice.
29392         * lib/streq.h: Likewise.
29393         * lib/uniconv.h: Likewise.
29394         * lib/uniconv/u-conv-from-enc.h: Likewise.
29395         * lib/uniconv/u-conv-to-enc.h: Likewise.
29396         * lib/uniconv/u-strconv-from-enc.h: Likewise.
29397         * lib/uniconv/u-strconv-to-enc.h: Likewise.
29398         * lib/uniconv/u16-conv-from-enc.c: Likewise.
29399         * lib/uniconv/u16-conv-to-enc.c: Likewise.
29400         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
29401         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
29402         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
29403         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
29404         * lib/uniconv/u32-conv-from-enc.c: Likewise.
29405         * lib/uniconv/u32-conv-to-enc.c: Likewise.
29406         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
29407         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
29408         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
29409         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
29410         * lib/uniconv/u8-conv-from-enc.c: Likewise.
29411         * lib/uniconv/u8-conv-to-enc.c: Likewise.
29412         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
29413         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
29414         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
29415         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
29416         * lib/uniname.h: Likewise.
29417         * lib/uniname/uniname.c: Likewise.
29418         * lib/unistdio.h: Likewise.
29419         * lib/unistdio/u-asnprintf.h: Likewise.
29420         * lib/unistdio/u-asprintf.h: Likewise.
29421         * lib/unistdio/u-printf-args.c: Likewise.
29422         * lib/unistdio/u-printf-args.h: Likewise.
29423         * lib/unistdio/u-printf-parse.h: Likewise.
29424         * lib/unistdio/u-snprintf.h: Likewise.
29425         * lib/unistdio/u-sprintf.h: Likewise.
29426         * lib/unistdio/u-vasprintf.h: Likewise.
29427         * lib/unistdio/u-vsnprintf.h: Likewise.
29428         * lib/unistdio/u-vsprintf.h: Likewise.
29429         * lib/unistdio/u16-asnprintf.c: Likewise.
29430         * lib/unistdio/u16-asprintf.c: Likewise.
29431         * lib/unistdio/u16-printf-parse.c: Likewise.
29432         * lib/unistdio/u16-snprintf.c: Likewise.
29433         * lib/unistdio/u16-sprintf.c: Likewise.
29434         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
29435         * lib/unistdio/u16-u16-asprintf.c: Likewise.
29436         * lib/unistdio/u16-u16-snprintf.c: Likewise.
29437         * lib/unistdio/u16-u16-sprintf.c: Likewise.
29438         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
29439         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
29440         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
29441         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
29442         * lib/unistdio/u16-vasnprintf.c: Likewise.
29443         * lib/unistdio/u16-vasprintf.c: Likewise.
29444         * lib/unistdio/u16-vsnprintf.c: Likewise.
29445         * lib/unistdio/u16-vsprintf.c: Likewise.
29446         * lib/unistdio/u32-asnprintf.c: Likewise.
29447         * lib/unistdio/u32-asprintf.c: Likewise.
29448         * lib/unistdio/u32-printf-parse.c: Likewise.
29449         * lib/unistdio/u32-snprintf.c: Likewise.
29450         * lib/unistdio/u32-sprintf.c: Likewise.
29451         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
29452         * lib/unistdio/u32-u32-asprintf.c: Likewise.
29453         * lib/unistdio/u32-u32-snprintf.c: Likewise.
29454         * lib/unistdio/u32-u32-sprintf.c: Likewise.
29455         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
29456         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
29457         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
29458         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
29459         * lib/unistdio/u32-vasnprintf.c: Likewise.
29460         * lib/unistdio/u32-vasprintf.c: Likewise.
29461         * lib/unistdio/u32-vsnprintf.c: Likewise.
29462         * lib/unistdio/u32-vsprintf.c: Likewise.
29463         * lib/unistdio/u8-asnprintf.c: Likewise.
29464         * lib/unistdio/u8-asprintf.c: Likewise.
29465         * lib/unistdio/u8-printf-parse.c: Likewise.
29466         * lib/unistdio/u8-snprintf.c: Likewise.
29467         * lib/unistdio/u8-sprintf.c: Likewise.
29468         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
29469         * lib/unistdio/u8-u8-asprintf.c: Likewise.
29470         * lib/unistdio/u8-u8-snprintf.c: Likewise.
29471         * lib/unistdio/u8-u8-sprintf.c: Likewise.
29472         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
29473         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
29474         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
29475         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
29476         * lib/unistdio/u8-vasnprintf.c: Likewise.
29477         * lib/unistdio/u8-vasprintf.c: Likewise.
29478         * lib/unistdio/u8-vsnprintf.c: Likewise.
29479         * lib/unistdio/u8-vsprintf.c: Likewise.
29480         * lib/unistdio/ulc-asnprintf.c: Likewise.
29481         * lib/unistdio/ulc-asprintf.c: Likewise.
29482         * lib/unistdio/ulc-printf-parse.c: Likewise.
29483         * lib/unistdio/ulc-snprintf.c: Likewise.
29484         * lib/unistdio/ulc-sprintf.c: Likewise.
29485         * lib/unistdio/ulc-vasnprintf.c: Likewise.
29486         * lib/unistdio/ulc-vasprintf.c: Likewise.
29487         * lib/unistdio/ulc-vsnprintf.c: Likewise.
29488         * lib/unistdio/ulc-vsprintf.c: Likewise.
29489         * lib/unistr.h: Likewise.
29490         * lib/unistr/u-cpy-alloc.h: Likewise.
29491         * lib/unistr/u-cpy.h: Likewise.
29492         * lib/unistr/u-endswith.h: Likewise.
29493         * lib/unistr/u-move.h: Likewise.
29494         * lib/unistr/u-set.h: Likewise.
29495         * lib/unistr/u-startswith.h: Likewise.
29496         * lib/unistr/u-stpcpy.h: Likewise.
29497         * lib/unistr/u-stpncpy.h: Likewise.
29498         * lib/unistr/u-strcat.h: Likewise.
29499         * lib/unistr/u-strcpy.h: Likewise.
29500         * lib/unistr/u-strcspn.h: Likewise.
29501         * lib/unistr/u-strdup.h: Likewise.
29502         * lib/unistr/u-strlen.h: Likewise.
29503         * lib/unistr/u-strncat.h: Likewise.
29504         * lib/unistr/u-strncpy.h: Likewise.
29505         * lib/unistr/u-strnlen.h: Likewise.
29506         * lib/unistr/u-strpbrk.h: Likewise.
29507         * lib/unistr/u-strspn.h: Likewise.
29508         * lib/unistr/u-strstr.h: Likewise.
29509         * lib/unistr/u-strtok.h: Likewise.
29510         * lib/unistr/u16-check.c: Likewise.
29511         * lib/unistr/u16-chr.c: Likewise.
29512         * lib/unistr/u16-cmp.c: Likewise.
29513         * lib/unistr/u16-cpy-alloc.c: Likewise.
29514         * lib/unistr/u16-cpy.c: Likewise.
29515         * lib/unistr/u16-endswith.c: Likewise.
29516         * lib/unistr/u16-mblen.c: Likewise.
29517         * lib/unistr/u16-mbsnlen.c: Likewise.
29518         * lib/unistr/u16-mbtouc-aux.c: Likewise.
29519         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
29520         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
29521         * lib/unistr/u16-mbtouc.c: Likewise.
29522         * lib/unistr/u16-mbtoucr.c: Likewise.
29523         * lib/unistr/u16-move.c: Likewise.
29524         * lib/unistr/u16-next.c: Likewise.
29525         * lib/unistr/u16-prev.c: Likewise.
29526         * lib/unistr/u16-set.c: Likewise.
29527         * lib/unistr/u16-startswith.c: Likewise.
29528         * lib/unistr/u16-stpcpy.c: Likewise.
29529         * lib/unistr/u16-stpncpy.c: Likewise.
29530         * lib/unistr/u16-strcat.c: Likewise.
29531         * lib/unistr/u16-strchr.c: Likewise.
29532         * lib/unistr/u16-strcmp.c: Likewise.
29533         * lib/unistr/u16-strcpy.c: Likewise.
29534         * lib/unistr/u16-strcspn.c: Likewise.
29535         * lib/unistr/u16-strdup.c: Likewise.
29536         * lib/unistr/u16-strlen.c: Likewise.
29537         * lib/unistr/u16-strmblen.c: Likewise.
29538         * lib/unistr/u16-strmbtouc.c: Likewise.
29539         * lib/unistr/u16-strncat.c: Likewise.
29540         * lib/unistr/u16-strncmp.c: Likewise.
29541         * lib/unistr/u16-strncpy.c: Likewise.
29542         * lib/unistr/u16-strnlen.c: Likewise.
29543         * lib/unistr/u16-strpbrk.c: Likewise.
29544         * lib/unistr/u16-strrchr.c: Likewise.
29545         * lib/unistr/u16-strspn.c: Likewise.
29546         * lib/unistr/u16-strstr.c: Likewise.
29547         * lib/unistr/u16-strtok.c: Likewise.
29548         * lib/unistr/u16-to-u32.c: Likewise.
29549         * lib/unistr/u16-to-u8.c: Likewise.
29550         * lib/unistr/u16-uctomb-aux.c: Likewise.
29551         * lib/unistr/u16-uctomb.c: Likewise.
29552         * lib/unistr/u32-check.c: Likewise.
29553         * lib/unistr/u32-chr.c: Likewise.
29554         * lib/unistr/u32-cmp.c: Likewise.
29555         * lib/unistr/u32-cpy-alloc.c: Likewise.
29556         * lib/unistr/u32-cpy.c: Likewise.
29557         * lib/unistr/u32-endswith.c: Likewise.
29558         * lib/unistr/u32-mblen.c: Likewise.
29559         * lib/unistr/u32-mbsnlen.c: Likewise.
29560         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
29561         * lib/unistr/u32-mbtouc.c: Likewise.
29562         * lib/unistr/u32-mbtoucr.c: Likewise.
29563         * lib/unistr/u32-move.c: Likewise.
29564         * lib/unistr/u32-next.c: Likewise.
29565         * lib/unistr/u32-prev.c: Likewise.
29566         * lib/unistr/u32-set.c: Likewise.
29567         * lib/unistr/u32-startswith.c: Likewise.
29568         * lib/unistr/u32-stpcpy.c: Likewise.
29569         * lib/unistr/u32-stpncpy.c: Likewise.
29570         * lib/unistr/u32-strcat.c: Likewise.
29571         * lib/unistr/u32-strchr.c: Likewise.
29572         * lib/unistr/u32-strcmp.c: Likewise.
29573         * lib/unistr/u32-strcpy.c: Likewise.
29574         * lib/unistr/u32-strcspn.c: Likewise.
29575         * lib/unistr/u32-strdup.c: Likewise.
29576         * lib/unistr/u32-strlen.c: Likewise.
29577         * lib/unistr/u32-strmblen.c: Likewise.
29578         * lib/unistr/u32-strmbtouc.c: Likewise.
29579         * lib/unistr/u32-strncat.c: Likewise.
29580         * lib/unistr/u32-strncmp.c: Likewise.
29581         * lib/unistr/u32-strncpy.c: Likewise.
29582         * lib/unistr/u32-strnlen.c: Likewise.
29583         * lib/unistr/u32-strpbrk.c: Likewise.
29584         * lib/unistr/u32-strrchr.c: Likewise.
29585         * lib/unistr/u32-strspn.c: Likewise.
29586         * lib/unistr/u32-strstr.c: Likewise.
29587         * lib/unistr/u32-strtok.c: Likewise.
29588         * lib/unistr/u32-to-u16.c: Likewise.
29589         * lib/unistr/u32-to-u8.c: Likewise.
29590         * lib/unistr/u32-uctomb.c: Likewise.
29591         * lib/unistr/u8-check.c: Likewise.
29592         * lib/unistr/u8-chr.c: Likewise.
29593         * lib/unistr/u8-cmp.c: Likewise.
29594         * lib/unistr/u8-cpy-alloc.c: Likewise.
29595         * lib/unistr/u8-cpy.c: Likewise.
29596         * lib/unistr/u8-endswith.c: Likewise.
29597         * lib/unistr/u8-mblen.c: Likewise.
29598         * lib/unistr/u8-mbsnlen.c: Likewise.
29599         * lib/unistr/u8-mbtouc-aux.c: Likewise.
29600         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
29601         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
29602         * lib/unistr/u8-mbtouc.c: Likewise.
29603         * lib/unistr/u8-mbtoucr.c: Likewise.
29604         * lib/unistr/u8-move.c: Likewise.
29605         * lib/unistr/u8-next.c: Likewise.
29606         * lib/unistr/u8-prev.c: Likewise.
29607         * lib/unistr/u8-set.c: Likewise.
29608         * lib/unistr/u8-startswith.c: Likewise.
29609         * lib/unistr/u8-stpcpy.c: Likewise.
29610         * lib/unistr/u8-stpncpy.c: Likewise.
29611         * lib/unistr/u8-strcat.c: Likewise.
29612         * lib/unistr/u8-strchr.c: Likewise.
29613         * lib/unistr/u8-strcmp.c: Likewise.
29614         * lib/unistr/u8-strcpy.c: Likewise.
29615         * lib/unistr/u8-strcspn.c: Likewise.
29616         * lib/unistr/u8-strdup.c: Likewise.
29617         * lib/unistr/u8-strlen.c: Likewise.
29618         * lib/unistr/u8-strmblen.c: Likewise.
29619         * lib/unistr/u8-strmbtouc.c: Likewise.
29620         * lib/unistr/u8-strncat.c: Likewise.
29621         * lib/unistr/u8-strncmp.c: Likewise.
29622         * lib/unistr/u8-strncpy.c: Likewise.
29623         * lib/unistr/u8-strnlen.c: Likewise.
29624         * lib/unistr/u8-strpbrk.c: Likewise.
29625         * lib/unistr/u8-strrchr.c: Likewise.
29626         * lib/unistr/u8-strspn.c: Likewise.
29627         * lib/unistr/u8-strstr.c: Likewise.
29628         * lib/unistr/u8-strtok.c: Likewise.
29629         * lib/unistr/u8-to-u16.c: Likewise.
29630         * lib/unistr/u8-to-u32.c: Likewise.
29631         * lib/unistr/u8-uctomb-aux.c: Likewise.
29632         * lib/unistr/u8-uctomb.c: Likewise.
29633         * lib/unitypes.h: Likewise.
29634         * lib/uniwidth.h: Likewise.
29635         * lib/uniwidth/cjk.h: Likewise.
29636         * lib/uniwidth/u16-strwidth.c: Likewise.
29637         * lib/uniwidth/u16-width.c: Likewise.
29638         * lib/uniwidth/u32-strwidth.c: Likewise.
29639         * lib/uniwidth/u32-width.c: Likewise.
29640         * lib/uniwidth/u8-strwidth.c: Likewise.
29641         * lib/uniwidth/u8-width.c: Likewise.
29642         * lib/uniwidth/width.c: Likewise.
29643
29644 2007-10-07  Bruno Haible  <bruno@clisp.org>
29645
29646         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
29647         The file is still under LGPL (see modules/inttypes).
29648
29649 2007-10-06  Bruno Haible  <bruno@clisp.org>
29650
29651         * modules/trunc (Dependencies): Add 'extensions'.
29652         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
29653         Reported by Ben Pfaff <blp@gnu.org>.
29654
29655 2007-10-06  Bruno Haible  <bruno@clisp.org>
29656
29657         * modules/freopen-tests: New file.
29658         * tests/test-freopen.c: New file.
29659
29660         * modules/fopen-tests: New file.
29661         * tests/test-fopen.c: New file.
29662
29663         * modules/fopen: New file.
29664         * lib/fopen.c: New file.
29665         * m4/fopen.m4: New file.
29666         * modules/freopen: New file.
29667         * lib/freopen.c: New file.
29668         * m4/freopen.m4: New file.
29669         * lib/stdio.in.h (fopen, freopen): New declarations.
29670         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
29671         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
29672         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
29673         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
29674         * doc/functions/fopen.texi: Mention the 'fopen' module.
29675         * doc/functions/freopen.texi: Mention the 'freopen' module.
29676
29677 2007-10-06  Bruno Haible  <bruno@clisp.org>
29678
29679         * modules/open-tests: New file.
29680         * tests/test-open.c: New file.
29681
29682         * modules/open: New file.
29683         * lib/open.c: New file.
29684         * m4/open.m4: New file.
29685         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
29686         lib/open.c does.
29687         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
29688         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
29689         macros.
29690         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
29691         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
29692         REPLACE_OPEN.
29693         * doc/functions/open.texi: Mention the 'open' module.
29694
29695 2007-10-04  Bruno Haible  <bruno@clisp.org>
29696
29697         * modules/ceill-tests: New file.
29698         * tests/test-ceill.c: New file.
29699
29700         * modules/ceill: New file.
29701         * lib/ceill.c: Replace entire file.
29702         * m4/ceill.m4: New file.
29703         * lib/math.in.h (ceill): Replace declaration.
29704         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
29705         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
29706         * doc/functions/ceill.texi: Mention the 'ceill' module.
29707         * modules/mathl (Files): Remove lib/ceill.c.
29708         (Depends-on): Add ceill.
29709
29710 2007-10-04  Bruno Haible  <bruno@clisp.org>
29711
29712         * modules/ceilf-tests: New file.
29713         * tests/test-ceilf.c: New file.
29714
29715         * modules/ceilf: New file.
29716         * lib/ceil.c: New file.
29717         * lib/ceilf.c: New file.
29718         * m4/ceilf.m4: New file.
29719         * lib/math.in.h (ceilf): New declaration.
29720         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
29721         HAVE_DECL_CEILF.
29722         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
29723         HAVE_DECL_CEILF.
29724         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
29725
29726 2007-10-04  Bruno Haible  <bruno@clisp.org>
29727
29728         * modules/floorl-tests: New file.
29729         * tests/test-floorl.c: New file.
29730
29731         * modules/floorl: New file.
29732         * lib/floorl.c: Replace entire file.
29733         * m4/floorl.m4: New file.
29734         * lib/math.in.h (floorl): Replace declaration.
29735         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
29736         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
29737         * doc/functions/floorl.texi: Mention the 'floorl' module.
29738         * modules/mathl (Files): Remove lib/floorl.c.
29739         (Depends-on): Add floorl.
29740
29741 2007-10-04  Bruno Haible  <bruno@clisp.org>
29742
29743         * modules/floorf-tests: New file.
29744         * tests/test-floorf.c: New file.
29745
29746         * modules/floorf: New file.
29747         * lib/floor.c: New file.
29748         * lib/floorf.c: New file.
29749         * m4/floorf.m4: New file.
29750         * lib/math.in.h (floorf): New declaration.
29751         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
29752         HAVE_DECL_FLOORF.
29753         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
29754         HAVE_DECL_FLOORF.
29755         * doc/functions/floorf.texi: Mention the 'floorf' module.
29756
29757 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
29758             Bruno Haible  <bruno@clisp.org>
29759
29760         Advertise for the Git server instead of the CVS server.
29761         * doc/gnulib-intro.texi (Steady Development): Mention the Git
29762         repository instead of the CVS one.
29763         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
29764         about all VCS systems generically.
29765         * doc/gnulib.texi (Introduction): Capitalize `Git'.
29766
29767 2007-10-04  Bruno Haible  <bruno@clisp.org>
29768
29769         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
29770         means.
29771         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
29772
29773 2007-10-04  Bruno Haible  <bruno@clisp.org>
29774
29775         * modules/truncl-tests: New file.
29776         * tests/test-truncl.c: New file.
29777
29778         * modules/truncl: New file.
29779         * lib/truncl.c: New file.
29780         * m4/truncl.m4: New file.
29781         * lib/math.in.h (truncl): New declaration.
29782         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
29783         HAVE_DECL_TRUNCL.
29784         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
29785         HAVE_DECL_TRUNCL.
29786         * doc/functions/truncl.texi: Mention the 'truncl' module.
29787
29788 2007-10-04  Bruno Haible  <bruno@clisp.org>
29789
29790         * modules/truncf-tests: New file.
29791         * tests/test-truncf.c: New file.
29792
29793         * modules/truncf: New file.
29794         * lib/trunc.c: Make paramerizable through USE_* macros.
29795         * lib/truncf.c: New file.
29796         * m4/truncf.m4: New file.
29797         * lib/math.in.h (truncf): New declaration.
29798         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
29799         HAVE_DECL_TRUNCF.
29800         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
29801         HAVE_DECL_TRUNCF.
29802         * doc/functions/truncf.texi: Mention the 'truncf' module.
29803
29804 2007-10-03  Bruno Haible  <bruno@clisp.org>
29805
29806         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
29807         augmentation also for tests modules.
29808         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
29809         * modules/atexit-tests (Makefile.am): Likewise.
29810         * modules/binary-io-tests (Makefile.am): Likewise.
29811         * modules/c-strcase-tests (Makefile.am): Likewise.
29812         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
29813         * modules/canonicalize-tests (Makefile.am): Likewise.
29814         * modules/closein-tests (Makefile.am): Likewise.
29815         * modules/fprintf-posix-tests (Makefile.am): Likewise.
29816         * modules/freadahead-tests (Makefile.am): Likewise.
29817         * modules/fseek-tests (Makefile.am): Likewise.
29818         * modules/fseeko-tests (Makefile.am): Likewise.
29819         * modules/ftell-tests (Makefile.am): Likewise.
29820         * modules/ftello-tests (Makefile.am): Likewise.
29821         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
29822         * modules/isnanl-tests (Makefile.am): Likewise.
29823         * modules/lseek-tests (Makefile.am): Likewise.
29824         * modules/mbscasecmp-tests (Makefile.am): Likewise.
29825         * modules/mbscasestr-tests (Makefile.am): Likewise.
29826         * modules/mbschr-tests (Makefile.am): Likewise.
29827         * modules/mbscspn-tests (Makefile.am): Likewise.
29828         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
29829         * modules/mbspbrk-tests (Makefile.am): Likewise.
29830         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
29831         * modules/mbsrchr-tests (Makefile.am): Likewise.
29832         * modules/mbsspn-tests (Makefile.am): Likewise.
29833         * modules/mbsstr-tests (Makefile.am): Likewise.
29834         * modules/printf-posix-tests (Makefile.am): Likewise.
29835         * modules/snprintf-posix-tests (Makefile.am): Likewise.
29836         * modules/sprintf-posix-tests (Makefile.am): Likewise.
29837         * modules/tsearch-tests (Makefile.am): Likewise.
29838         * modules/uniname/uniname-tests (Makefile.am): Likewise.
29839         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
29840         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
29841         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
29842         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
29843         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
29844         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
29845         * modules/vprintf-posix-tests (Makefile.am): Likewise.
29846         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
29847         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
29848         * modules/xstrtoimax-tests (Makefile.am): Likewise.
29849         * modules/xstrtol-tests (Makefile.am): Likewise.
29850         * modules/xstrtoumax-tests (Makefile.am): Likewise.
29851         * modules/yesno-tests (Makefile.am): Likewise.
29852
29853 2007-10-03  Bruno Haible  <bruno@clisp.org>
29854
29855         * modules/trunc-tests: New file.
29856         * tests/test-trunc.c: New file.
29857
29858         * modules/trunc: New file.
29859         * lib/trunc.c: New file.
29860         * m4/trunc.m4: New file.
29861         * lib/math.in.h (trunc): New declaration.
29862         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
29863         HAVE_DECL_TRUNC.
29864         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
29865         HAVE_DECL_TRUNC.
29866         * doc/functions/trunc.texi: Mention the 'trunc' module.
29867
29868 2007-10-03  Bruno Haible  <bruno@clisp.org>
29869
29870         * tests/test-fpending.c: New file, mostly copied
29871         from coreutils/lib/t-fpending.c.
29872         * modules/fpending-tests: New file.
29873
29874 2007-10-03  Bruno Haible  <bruno@clisp.org>
29875
29876         Port the stdio extensions to QNX (untested).
29877         * lib/fseterr.c (fseterr): Add support for QNX.
29878         * lib/fbufmode.c (fbufmode): Likewise.
29879         * lib/freadable.c (freadable): Likewise.
29880         * lib/fwritable.c (fwritable): Likewise.
29881         * lib/freading.c (freading): Likewise.
29882         * lib/fwriting.c (fwriting): Likewise.
29883         * lib/freadahead.c (freadahed): Likewise.
29884         * lib/fpurge.c (fpurge): Likewise.
29885         * lib/fseeko.c (rpl_fseeko): Likewise.
29886
29887 2007-10-03  Bruno Haible  <bruno@clisp.org>
29888             Jim Meyering  <jim@meyering.net>
29889             Eric Blake  <ebb9@byu.net>
29890
29891         * doc/relocatable.texi: Use @command instead of @program.
29892
29893 2007-10-02  Jim Meyering  <jim@meyering.net>
29894
29895         Perform one more "_.h" -> ".in.h" substitution.
29896         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
29897         instead of unistd_.h here, too.
29898
29899 2007-10-01  Bruno Haible  <bruno@clisp.org>
29900
29901         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
29902         Needed for the alloca-opt module.
29903
29904 2007-09-30  Bruno Haible  <bruno@clisp.org>
29905
29906         * lib/alloca.in.h: Renamed from lib/alloca_.h.
29907         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
29908         alloca_.h.
29909         * lib/argz.in.h: Renamed from lib/argz_.h.
29910         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
29911         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
29912         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
29913         byteswap_.h.
29914         * lib/dirent.in.h: Renamed from lib/dirent_.h.
29915         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
29916         dirent_.h.
29917         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
29918         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
29919         fcntl_.h.
29920         * lib/float.in.h: Renamed from lib/float_.h.
29921         * modules/float (Files, Makefile.am): Use float.in.h instead of
29922         float_.h.
29923         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
29924         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
29925         fnmatch_.h.
29926         * lib/getopt.in.h: Renamed from lib/getopt_.h.
29927         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
29928         getopt_.h.
29929         * lib/glob.in.h: Renamed from lib/glob_.h.
29930         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
29931         * lib/iconv.in.h: Renamed from lib/iconv_.h.
29932         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
29933         iconv_.h.
29934         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
29935         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
29936         inttypes_.h.
29937         * lib/locale.in.h: Renamed from lib/locale_.h.
29938         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
29939         locale_.h.
29940         * lib/math.in.h: Renamed from lib/math_.h.
29941         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
29942         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
29943         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
29944         of netinet_in_.h. Add dependency.
29945         * lib/poll.in.h: Renamed from lib/poll_.h.
29946         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
29947         * lib/search.in.h: Renamed from lib/search_.h.
29948         * modules/search (Files, Makefile.am): Use search.in.h instead of
29949         search_.h.
29950         * lib/signal.in.h: Renamed from lib/signal_.h.
29951         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
29952         _signal.h.
29953         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
29954         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
29955         stdbool_.h.
29956         * lib/stdint.in.h: Renamed from lib/stdint_.h.
29957         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
29958         stdint_.h.
29959         * lib/stdio.in.h: Renamed from lib/stdio_.h.
29960         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
29961         stdio_.h.
29962         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
29963         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
29964         stdlib_.h.
29965         * lib/string.in.h: Renamed from lib/string_.h.
29966         * modules/string (Files, Makefile.am): Use string.in.h instead of
29967         string_.h.
29968         * doc/gnulib-tool.texi (Initial import): Update.
29969         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
29970         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
29971         of sys_select_.h. Add dependency.
29972         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
29973         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
29974         of sys_socket_.h.
29975         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
29976         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
29977         sys_stat_.h.
29978         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
29979         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
29980         sys_time_.h.
29981         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
29982         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
29983         sysexits_.h.
29984         * lib/time.in.h: Renamed from lib/time_.h.
29985         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
29986         * lib/unistd.in.h: Renamed from lib/unistd_.h.
29987         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
29988         unistd_.h.
29989         * lib/wchar.in.h: Renamed from lib/wchar_.h.
29990         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
29991         wchar_.h.
29992         * lib/wctype.in.h: Renamed from lib/wctype_.h.
29993         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
29994         wctype_.h.
29995         * build-aux/bootstrap (slurp): Update.
29996         * lib/.cppi-disable: Update.
29997
29998 2007-09-30  Bruno Haible  <bruno@clisp.org>
29999
30000         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
30001         Needed on BeOS.
30002
30003 2007-09-30  Bruno Haible  <bruno@clisp.org>
30004
30005         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
30006
30007 2007-09-29  Bruno Haible  <bruno@clisp.org>
30008
30009         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
30010
30011 2007-09-29  Bruno Haible  <bruno@clisp.org>
30012
30013         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
30014         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
30015         * build-aux/install-reloc: Compile also areadlink.c.
30016         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
30017
30018 2007-09-29  Bruno Haible  <bruno@clisp.org>
30019
30020         * gnulib-tool (func_emit_initmacro_done): Indentation.
30021
30022 2007-09-29  Bruno Haible  <bruno@clisp.org>
30023
30024         * README: Add CVS checkout update instructions.
30025         Info from Bob Proulx <bob@proulx.com>.
30026
30027 2007-09-28  Eric Blake  <ebb9@byu.net>
30028
30029         Provide move-if-change.
30030         * build-aux/move-if-change: New file, based on best practice
30031         rather than any canonical upstream location.
30032
30033 2007-09-28  Jim Meyering  <jim@meyering.net>
30034
30035         Fix canonicalize loop-detection corner case.
30036         Do not attempt to stat the symlink values stored via seen_triple.
30037         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
30038         on linux-2.6.18, (but not 2.6.22).
30039         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
30040         triple_compare.  The former compares dev,ino,filename, while the latter
30041         would actually stat dirname(filename) when dev and ino were equal.
30042         * lib/hash-triple.c: Install <string.h>.
30043         (STREQ): Define.
30044         (triple_compare_ino_str): New function.
30045         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
30046
30047 2007-09-28  Eric Blake  <ebb9@byu.net>
30048
30049         Enforce that AC_REPLACE_FUNCS files exist.
30050         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
30051         override check for typos.
30052
30053         Fix test-closein on Solaris 10.
30054         * tests/test-closein.c (main): Don't assume stdin can be inherited
30055         closed on all systems.
30056         * tests/test-closein.sh: Likewise.
30057         Reported by Piotr Tarnowski.
30058
30059 2007-09-28  Jim Meyering  <jim@meyering.net>
30060
30061         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
30062
30063 2007-09-27  Jim Meyering  <jim@meyering.net>
30064
30065         canonicalize: Avoid a false-positive cycle failure.
30066         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
30067         Sort.  Remove cycle-check.
30068         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
30069         not cycle-check.h.
30070         (seen_triple): New function.
30071         (canonicalize_filename_mode): Use it instead of cycle-check.
30072         * tests/test-canonicalize.c: Add a test for this bug.
30073         * tests/test-canonicalize.sh: Set up and run the test.
30074
30075         New module, file-set, from coreutils.
30076         * modules/file-set: Define it.
30077         * lib/file-set.c, lib/file-set.h: Implement.
30078
30079         New module, hash-triple, from coreutils.
30080         * modules/hash-triple: Define it.
30081         * lib/hash-triple.c, lib/hash-triple.h: Implement.
30082
30083 2007-09-25  Eric Blake  <ebb9@byu.net>
30084
30085         Fix strerror on Interix.
30086         * lib/string_.h (strerror): Declare replacement.
30087         * doc/functions/strerror.texi (strerror): Document the Interix
30088         shortcoming.
30089         * modules/string (Makefile.am): Support new hooks.
30090         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
30091         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
30092         gl_FUNC_STRERROR_SEPARATE.
30093         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
30094         * lib/strerror.c (rpl_strerror): Provide replacement.
30095         * modules/strerror (Depends-on): Add string.
30096         (configure.ac): Detect use of module.
30097         * tests/test-strerror.c: New file.
30098         * modules/strerror-tests: New test module.
30099         * modules/argp (Depends-on): Add strerror.
30100         * modules/error (Depends-on): Likewise.
30101         Reported by Martin Koeppe.
30102
30103 2007-09-24  Bruno Haible  <bruno@clisp.org>
30104
30105         * README: Update git instructions.
30106
30107 2007-09-24  Eric Blake  <ebb9@byu.net>
30108
30109         Revert fpending breakage from 2007-09-08.
30110         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
30111         __fpending.c.
30112
30113 2007-09-24  Jim Meyering  <jim@meyering.net>
30114
30115         filenamecat.c: Add a test.
30116         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
30117         showing how the function works when DIR is the empty string.
30118
30119 2007-09-21  Simon Josefsson  <simon@josefsson.org>
30120
30121         * tests/test-canonicalize.sh: Turn on executable bit.
30122
30123 2007-09-19  Eric Blake  <ebb9@byu.net>
30124
30125         * README: Update CVS instructions.
30126
30127 2007-09-18  Bruno Haible  <bruno@clisp.org>
30128
30129         * modules/areadlink: New file.
30130         * lib/areadlink.h (areadlink): New declaration.
30131         * lib/areadlink.c: New file, based on lib/xreadlink.c.
30132
30133 2007-09-17  Jim Meyering  <jim@meyering.net>
30134
30135         * lib/savewd.c (ESTALE) [!defined]: Define.
30136         Reported to be required on Interix by Martin Koeppe.
30137
30138 2007-09-17  Bruno Haible  <bruno@clisp.org>
30139
30140         * gnulib-tool (func_version): Use $version.
30141
30142 2007-09-16  Bruno Haible  <bruno@clisp.org>
30143
30144         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
30145         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
30146         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
30147         Reported by Greg Schafer <gschafer@zip.com.au>.
30148
30149 2007-09-15  Bruno Haible  <bruno@clisp.org>
30150
30151         * gnulib-tool (sed): Try a little harder to make bash understand the
30152         alias.
30153         Reported by Bruce Korb <bruce.korb@gmail.com>.
30154
30155 2007-09-13  Eric Blake  <ebb9@byu.net>
30156
30157         * ChangeLog: Remove conflict markers.
30158
30159 2007-09-13  Simon Josefsson  <simon@josefsson.org>
30160
30161         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
30162         Reported by Bruno Haible <bruno@clisp.org>.
30163
30164 2007-09-12  Bruno Haible  <bruno@clisp.org>
30165
30166         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
30167         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
30168         is not defined.
30169
30170 2007-09-12  Eric Blake  <ebb9@byu.net>
30171
30172         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
30173         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
30174         Autoconf definition.
30175         * modules/euidaccess (Depends-on): Add extensions, for
30176         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
30177         * modules/fnmatch (Depends-on): Likewise.
30178         * modules/getaddrinfo (Depends-on): Likewise.
30179         * modules/getdelim (Depends-on): Likewise.
30180         * modules/getline (Depends-on): Likewise.
30181         * modules/getsubopt (Depends-on): Likewise.
30182         * modules/gettext (Depends-on): Likewise.
30183         * modules/group-member (Depends-on): Likewise.
30184         * modules/mbchar (Depends-on): Likewise.
30185         * modules/memmem (Depends-on): Likewise.
30186         * modules/mempcpy (Depends-on): Likewise.
30187         * modules/memrchr (Depends-on): Likewise.
30188         * modules/pagealign_alloc (Depends-on): Likewise.
30189         * modules/readutmp (Depends-on): Likewise.
30190         * modules/stpcpy (Depends-on): Likewise.
30191         * modules/stpncpy (Depends-on): Likewise.
30192         * modules/strchrnul (Depends-on): Likewise.
30193         * modules/strndup (Depends-on): Likewise.
30194         * modules/strsep (Depends-on): Likewise.
30195         * modules/strverscmp (Depends-on): Likewise.
30196         * modules/vasprintf (Depends-on): Likewise.
30197         * modules/wcwidth (Depends-on): Likewise.
30198         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
30199         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
30200         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
30201         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
30202         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
30203         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30204         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
30205         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
30206         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
30207         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30208         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30209         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
30210         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
30211         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
30212         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
30213         * m4/readutmp.m4 (gl_READUTMP): Likewise.
30214         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30215         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
30216         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30217         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
30218         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
30219         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
30220         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
30221         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
30222         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
30223         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30224         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
30225         so that lock.m4 can be used in gettext without extensions module.
30226
30227 2007-09-11  Bruno Haible  <bruno@clisp.org>
30228
30229         * m4/isc-posix.m4: Remove file.
30230         Suggested by Eric Blake.
30231
30232 2007-09-11  Eric Blake  <ebb9@byu.net>
30233
30234         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
30235
30236 2007-09-10  Bruno Haible  <bruno@clisp.org>
30237
30238         * posix-modules: Fix typo in error message.
30239         Reported by Matt <mkraai@beckman.com>.
30240
30241 2007-09-09  Bruno Haible  <bruno@clisp.org>
30242
30243         * doc/functions/getdelim.texi: Update list of platforms lacking the
30244         function.
30245         * doc/functions/getline.texi: Likewise.
30246
30247 2007-09-09  Jim Meyering  <jim@meyering.net>
30248
30249         * lib/hash.c (hash_initialize): Detect calloc failure.
30250         Reported by Bruno Haible.
30251
30252 2007-09-09  Bruno Haible  <bruno@clisp.org>
30253
30254         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
30255         malloc or realloc fails.
30256
30257 2007-09-09  Bruno Haible  <bruno@clisp.org>
30258
30259         * modules/getcwd (Depends-on): Add malloc-posix.
30260         * modules/glob (Depends-on): Likewise.
30261         * modules/putenv (Depends-on): Likewise.
30262         * modules/strdup (Depends-on): Likewise.
30263         * modules/getdelim (Depends-on): Add realloc-posix.
30264         * modules/read-file (Depends-on): Likewise.
30265
30266 2007-09-09  Bruno Haible  <bruno@clisp.org>
30267
30268         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
30269         (gl_FUNC_MALLOC_POSIX): Require it.
30270         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
30271         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
30272         * modules/realloc (Files): Add m4/malloc.m4.
30273         * modules/calloc (Files): Likewise.
30274
30275 2007-09-09  Bruno Haible  <bruno@clisp.org>
30276
30277         * modules/malloc-posix: New file.
30278         * modules/malloc (Depends-on): Add malloc-posix.
30279         * lib/malloc.c: Include errno.h.
30280         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
30281         and a POSIX-compatible malloc into a single function. Set ENOMEM
30282         when returning NULL.
30283         * m4/malloc.m4: New file.
30284         * doc/functions/malloc.texi: Mention the malloc-posix module.
30285         * lib/stdlib_.h (malloc): New declaration.
30286         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30287         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
30288         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
30289         and HAVE_MALLOC_POSIX.
30290
30291 2007-09-09  Bruno Haible  <bruno@clisp.org>
30292
30293         * modules/realloc-posix: New file.
30294         * modules/realloc (Depends-on): Add realloc-posix.
30295         * lib/realloc.c: Include errno.h.
30296         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
30297         and a POSIX-compatible realloc into a single function. Set ENOMEM
30298         when returning NULL.
30299         * m4/realloc.m4: New file.
30300         * doc/functions/realloc.texi: Mention the realloc-posix module.
30301         * lib/stdlib_.h (realloc): New declaration.
30302         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30303         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
30304         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
30305         and HAVE_REALLOC_POSIX.
30306
30307 2007-09-09  Bruno Haible  <bruno@clisp.org>
30308
30309         * modules/calloc-posix: New file.
30310         * modules/calloc (Depends-on): Add calloc-posix.
30311         * lib/calloc.c: Include errno.h.
30312         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
30313         and a POSIX-compatible calloc into a single function. Set ENOMEM
30314         when returning NULL.
30315         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
30316         * doc/functions/calloc.texi: Mention the calloc-posix module.
30317         * lib/stdlib_.h (calloc): New declaration.
30318         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30319         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
30320         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
30321         and HAVE_CALLOC_POSIX.
30322
30323 2007-09-09  Bruno Haible  <bruno@clisp.org>
30324
30325         Allow for modules to show an arbitrary notice.
30326         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
30327         * gnulib-tool: New option --extract-notice.
30328         (func_usage): Document it.
30329         (sed_extract_prog): Update.
30330         (func_get_notice): New function.
30331         (func_modules_notice): New function.
30332         (func_import, func_create_testdir): Invoke it.
30333         Suggested by Jim Meyering.
30334
30335 2007-09-09  Bruno Haible  <bruno@clisp.org>
30336
30337         * gnulib-tool: New options --verbose, --quiet.
30338         (func_usage): Document them.
30339         (verbose): New variable.
30340         (func_execute_command): New function.
30341         (func_import): Don't show the module list and the file list if
30342         $verbose < 0.
30343         (func_create_testdir): Likewise. Use func_execute_command.
30344         (func_create_megatestdir): Use func_execute_command.
30345
30346 2007-09-08  Bruno Haible  <bruno@clisp.org>
30347
30348         * gnulib-tool (func_import): Prefer rsync over wget when available,
30349         for fetching the PO files.
30350
30351 2007-09-08  Bruno Haible  <bruno@clisp.org>
30352
30353         * posix-modules: New file. Portions copied from gnulib-tool.
30354         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
30355
30356 2007-09-08  Jim Meyering  <jim@meyering.net>
30357
30358         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
30359         * lib/fpending.h: Rename from __fpending.h.
30360         * lib/fpending.c: Rename from __fpending.c.
30361         Include "fpending.h", not "__fpending.h".
30362         * lib/__fpending.h, lib/__fpending.c: Remove files.
30363         * modules/fpending (Files): Reflect new file names.
30364         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
30365
30366 2007-09-08  Bruno Haible  <bruno@clisp.org>
30367
30368         * m4/inttypes-h.m4: Remove stub file.
30369
30370 2007-09-07  Simon Josefsson  <simon@josefsson.org>
30371
30372         * doc/headers/stdint.texi: Discuss #include_next issue.
30373
30374 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
30375
30376         * build-aux/bootstrap: Remove obsolete comment about wget --help.
30377
30378 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30379
30380         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
30381         in variable name.
30382
30383 2007-09-03  Jim Meyering  <jim@meyering.net>
30384
30385         New module: git-version-gen.
30386         * modules/git-version-gen: New file.
30387
30388         Import changes from coreutils for bootstrap script.
30389
30390         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
30391
30392         bootstrap: uses rsync to download the .po files
30393         * build-aux/bootstrap (po_download_command_format): New global.
30394         (download_po_files): Use rsync.
30395         (update_po_files): Don't remove .po files after download,
30396         so future rsync runs can take advantage of the copies.
30397
30398         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
30399
30400         Solve the unnecessary-.po-file-regeneration problem once and for all.
30401         * build-aux/bootstrap (download_po_files): New function, renamed from
30402         get_translations.  Now, downloads, but doesn't update LINGUAS.
30403         (update_po_files): New function.
30404
30405         bootstrap: Ignore more.
30406         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
30407         uniwidth to e.g., lib/.gitignore.
30408         (slurp): Handle the sys_stat_.h -> sys mapping, too.
30409
30410         * build-aux/bootstrap: New setting: vc_ignore.
30411         (insert_sorted_if_absent): Create $file if absent.
30412         Adapt to new, possibly empty, list: $vc_ignore.
30413
30414         bootstrap: generate more ignorable names
30415         * build-aux/bootstrap (slurp): When generating ignorable names,
30416         also map .sin to .sed, .gperf to .c, and .y to .c.
30417
30418 2007-09-03  Jim Meyering  <jim@meyering.net>
30419
30420         * build-aux/git-version-gen: New file, from coreutils.  For details, see
30421         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
30422
30423 2007-09-02  Bruno Haible  <bruno@clisp.org>
30424
30425         Fix mis-recognition of 'mcs' on QNX 6.
30426         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
30427         output contains the string "Mono".
30428         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
30429         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
30430
30431 2007-09-01  Bruno Haible  <bruno@clisp.org>
30432
30433         Fix collision between uniwidth/* and linebreak modules.
30434         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
30435         u32_width): Remove declarations.
30436         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
30437         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
30438         streq3, streq2, streq1, streq0): Remove functions.
30439         (STREQ): Remove macro.
30440         (is_cjk_encoding): Remove function.
30441         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
30442         (uc_width, u8_width, u16_width, u32_width): Remove functions.
30443         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
30444         * NEWS: Document the change.
30445
30446 2007-09-01  Bruno Haible  <bruno@clisp.org>
30447
30448         * lib/streq.h: Add double-inclusion guard.
30449
30450 2007-09-01  Karl Berry  <karl@gnu.org>
30451
30452         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
30453
30454 2007-08-28  Jim Meyering  <jim@meyering.net>
30455
30456         Rename mreadlink_with_size to areadlink_with_size.
30457         * NEWS: Document the change.
30458         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
30459         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
30460         * lib/mreadlink.h: Rename this to...
30461         * lib/areadlink.h: ...this.
30462         * modules/mreadlink-with-size: Rename this to...
30463         * modules/areadlink-with-size: ...this.
30464         * lib/canonicalize.c: Reflect the renaming.
30465         * modules/canonicalize: Likewise.
30466
30467 2007-08-26  Bruno Haible  <bruno@clisp.org>
30468
30469         * gnulib-tool (func_import): When deciding which files to remove,
30470         consider also dangling symbolic links.
30471         Reported by Eric Blake.
30472
30473 2007-08-26  Bruno Haible  <bruno@clisp.org>
30474
30475         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
30476
30477 2007-08-23  Simon Josefsson  <simon@josefsson.org>
30478
30479         * lib/readline.c: Don't include getline.h, the prototype is now
30480         found in stdio.h.
30481
30482 2007-08-23  Jim Meyering  <jim@meyering.net>
30483
30484         Getdelim touchup.
30485         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
30486         around the funlockfile call, since funlockfile never sets errno.
30487         Don't set errno upon failed realloc.
30488
30489 2007-08-22  Eric Blake  <ebb9@byu.net>
30490
30491         Getline touchups.
30492         * lib/getdelim.c (getdelim): Revert regression that required *n to
30493         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
30494         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
30495         getdelim, rather than whether implementation is missing.
30496         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
30497         * lib/stdio_.h (getline): Also declare if replacement is
30498         required.
30499         * doc/functions/getdelim.texi: New file.
30500         * doc/functions/getline.texi: Likewise.
30501         * doc/gnulib.texi (Function Substitutes): Add new files.
30502         Reported by Bruno Haible.
30503
30504 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
30505
30506         * users.txt: Add Guile.
30507
30508 2007-08-22  Eric Blake  <ebb9@byu.net>
30509
30510         * tests/test-getdelim.c (main): Use remove, not unlink.
30511         * tests/test-getline.c (main): Likewise.
30512
30513         Move getline and getdelim into stdio.h, per POSIX 200x.
30514         * modules/getline (Files): Remove getline.h.
30515         (Depends-on): Add stdio.
30516         (configure.ac): Add module indicator.
30517         * modules/getdelim (Files): Remove getdelim.h.
30518         (Depends-on): Add stdio.
30519         (configure.ac): Add module indicator.
30520         * modules/stdio (Makefile.am): Work with new indicators.
30521         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
30522         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
30523         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30524         * lib/getdelim.h: Delete.
30525         * lib/getline.h: Delete.
30526         * lib/stdio_.h (getdelim, getline): Declare.
30527         * modules/getdelim-tests: New module.
30528         * modules/getline-tests: Likewise.
30529         * tests/test-getdelim.c: New file.
30530         * tests/test-getline.c: Likewise.
30531         * NEWS: Document the change.
30532         * lib/getline.c: Update choice of header.
30533         * lib/csharpcomp.c: Likewise.
30534         * lib/getpass.c: Likewise.
30535         * lib/javacomp.c: Likewise.
30536         * lib/javaversion.c: Likewise.
30537         * lib/yesno.c: Likewise.
30538         * lib/getdelim.c: Likewise.
30539         (getdelim): Set errno on failure, and avoid memory leak.
30540
30541 2007-08-19  Bruno Haible  <bruno@clisp.org>
30542
30543         * modules/closein (Depends-on): Add freadahead.
30544         * lib/closein.c: Include freadahead.h.
30545         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
30546         is zero.
30547
30548 2007-08-19  Bruno Haible  <bruno@clisp.org>
30549
30550         * modules/freadahead-tests: New file.
30551         * tests/test-freadahead.sh: New file.
30552         * tests/test-freadahead.c: New file.
30553
30554         * modules/freadahead: New file.
30555         * lib/freadahead.h: New file.
30556         * lib/freadahead.c: New file.
30557         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
30558         fbufmode, fpurge, freadable, fwritable.
30559
30560 2007-08-19  Eric Blake  <ebb9@byu.net>
30561
30562         Test yesno in combination with closein.
30563         * lib/yesno.c (yesno): Document use of stdin.
30564         * modules/yesno-tests (Files): New module.
30565         * tests/test-yesno.c (main): New file.
30566         * tests/test-yesno.sh: Likewise.
30567
30568 2007-08-19  Bruno Haible  <bruno@clisp.org>
30569
30570         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
30571         * lib/fseeko.c (rpl_fseeko): Likewise.
30572         * lib/fseterr.c (fseterr): Likewise.
30573
30574 2007-08-19  Bruno Haible  <bruno@clisp.org>
30575
30576         * tests/test-lseek.c (main): Disable a test for BeOS.
30577         * doc/functions/lseek.texi: Document the BeOS bug.
30578
30579 2007-08-19  Bruno Haible  <bruno@clisp.org>
30580             Eric Blake  <ebb9@byu.net>
30581
30582         * lib/lseek.c: Include <sys/stat.h>.
30583         (rpl_lseek): Add workaround code also for Unix platforms.
30584         Needed for BeOS.
30585         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
30586         * doc/functions/lseek.texi: Document BeOS definiency.
30587
30588 2007-08-18  Bruno Haible  <bruno@clisp.org>
30589
30590         * modules/fstrcmp-tests: New file.
30591         * tests/test-fstrcmp.c: New file.
30592
30593 2007-08-18  Bruno Haible  <bruno@clisp.org>
30594
30595         * modules/fstrcmp: New file, from GNU gettext with modifications.
30596         * lib/fstrcmp.h: New file, from GNU gettext.
30597         * lib/fstrcmp.c: New file, from GNU gettext.
30598         * MODULES.html.sh (String handling): Add fstrcmp.
30599
30600 2007-08-18  Bruno Haible  <bruno@clisp.org>
30601
30602         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
30603         'bool'.
30604         (diag, compareseq): Remove const from the ctxt argument.
30605         (USE_HEURISTIC): Undefine at the end.
30606
30607 2007-08-18  Jim Meyering  <jim@meyering.net>
30608
30609         New file: lib/idcache.h
30610         * NEWS: Mention the addition.
30611         * modules/idcache (Files): Add lib/idcache.h
30612         * lib/idcache.c: Include "idcache.h".
30613         Don't include <sys/types.h>.
30614         Add a FIXME comment.
30615         Move file-scoped "static" declarations to the top.
30616         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
30617
30618 2007-08-17  Bruno Haible  <bruno@clisp.org>
30619         and Paul Eggert  <eggert@cs.ucla.edu>
30620
30621         * MODULES.html.sh: Add diffseq.
30622         * modules/diffseq: New file.
30623         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
30624         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
30625
30626 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30627
30628         Import changes from coreutils for bootstrap script.
30629
30630         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
30631
30632         * build-aux/bootstrap (slurp): Work even in environments where
30633         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
30634         current code does not slurp files whose names start with ".", and
30635         this looks like it might be a troublesome area.
30636
30637         2007-07-11  Jim Meyering  <jim@meyering.net>
30638
30639         If there's a GPL vN copyright comment, require that N == 3.
30640
30641         2007-07-08  Jim Meyering  <jim@meyering.net>
30642
30643         Run the coreutils-specific code only if tests/Makefile.am.in exists.
30644         * build-aux/bootstrap (mam_template): Move definition out of loop.
30645
30646         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
30647
30648         * build-aux/bootstrap (symlink_to_dir): Rename function from
30649         symlink_to_gnulib.  Add a directory parameter.  Update all
30650         callers.
30651         (cp_mark_as_generated): Also check for -- and link to -- files in
30652         gl/.
30653
30654         2007-07-08  Jim Meyering  <jim@meyering.net>
30655
30656         Adapt to deeper hierarchy in gnulib.
30657         * build-aux/bootstrap (symlink_to_dir): If the destination
30658         directory doesn't exist, create it. This is required at least for
30659         "lib/uniwidth/cjk.h".
30660
30661         2007-05-15  Jim Meyering  <jim@meyering.net>
30662
30663         * build-aux/bootstrap: Now that generated Makefile.am files
30664         are no longer under version control, they must be created at
30665         bootstrap time.
30666
30667 2007-08-14  Ben Pfaff  <blp@gnu.org>
30668
30669         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
30670
30671 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30672
30673         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
30674         given the changes below.
30675         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
30676         even on hosts that have padding bits beyond the supported 64.
30677
30678 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30679
30680         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
30681         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
30682         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
30683         depends on it.
30684         (xstrtol_error): Remove.
30685         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
30686         but with a different signature.
30687         (ATTRIBUTE_NORETURN, __attribute__): New macros.
30688         * lib/xstrtol-error.c: Include exitfail.h.
30689         (xstrtol_fatal): New function, with a different signature from the
30690         old xstrtol_error, so that the caller need not worry about passing
30691         in an exit status, or about storage management of the option argument.
30692         (xstrtol_error): Now a static function.  Redo signature to
30693         implement xstrtol_fatal.  Output the correct number of hyphens in
30694         front of the option so that the caller need not worry about
30695         storage management.
30696         (N_): New macro.
30697         (_): Remove; not used now.
30698         * modules/xstrtol: Depend on getopt.
30699         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
30700         of old STRTOL_FATAL_ERROR macro.
30701         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
30702         of test program.
30703         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
30704         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
30705
30706 2007-08-08  Eric Blake  <ebb9@byu.net>
30707
30708         * lib/xstrtol-error.c: Add missing include.
30709
30710         Move xstrtol messages into gnulib domain, when --pobase is used.
30711         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
30712         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
30713         * modules/xstrtol (Files): Distribute new file.
30714         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
30715         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
30716         * tests/test-xstrtol.c: ...into new file.
30717         * tests/test-xstrtoul.c: Also test xstrtoul.
30718         * tests/test-xstrtoimax.c: Also test xstrtoimax.
30719         * tests/test-xstrtoumax.c: Also test xstrtoumax.
30720         * tests/test-xstrtol.sh: Drive the tests.
30721         * tests/test-xstrtoimax.sh: Likewise.
30722         * tests/test-xstrtoumax.sh: Likewise.
30723         * modules/xstrtol-tests: New module.
30724         * modules/xstrtoimax-tests: Likewise.
30725         * modules/xstrtoumax-tests: Likewise.
30726
30727 2007-08-08  Jim Meyering  <jim@meyering.net>
30728
30729         New function: mfile_name_concat.
30730         * lib/filenamecat.c (mfile_name_concat): New function, just like
30731         file_name_concat, but return NULL upon failure rather than exiting
30732         with a diagnostic.
30733         * lib/filenamecat.h: Declare it.
30734
30735 2007-08-07  Bruno Haible  <bruno@clisp.org>
30736
30737         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
30738         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
30739         warning from gcc.
30740         Reported by Eric Blake.
30741
30742 2007-08-07  Simon Josefsson  <simon@josefsson.org>
30743
30744         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
30745         * modules/crypto/arcfour (License): Likewise.
30746         * modules/crypto/des-tests (License): Likewise.
30747         * modules/crypto/gc-arctwo-tests (License): Likewise.
30748         * modules/crypto/gc-des-tests (License): Likewise.
30749         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
30750         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
30751         * modules/crypto/gc-md2-tests (License): Likewise.
30752         * modules/crypto/gc-md4-tests (License): Likewise.
30753         * modules/crypto/gc-md5-tests (License): Likewise.
30754         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
30755         * modules/crypto/gc-rijndael-tests (License): Likewise.
30756         * modules/crypto/gc-sha1-tests (License): Likewise.
30757         * modules/crypto/gc-tests (License): Likewise.
30758         * modules/crypto/hmac-md5 (License): Likewise.
30759         * modules/crypto/hmac-sha1 (License): Likewise.
30760         * modules/crypto/md2-tests (License): Likewise.
30761         * modules/crypto/md4-tests (License): Likewise.
30762         * modules/crypto/md5 (License): Likewise.
30763         * modules/crypto/rijndael (License): Likewise.
30764         * modules/crypto/sha1 (License): Likewise.
30765         * modules/memxor (License): Likewise.
30766
30767 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
30768         and Bruno Haible  <bruno@clisp.org>
30769
30770         * NEWS: Describe interface changes to human, xstrtol.
30771         * lib/human.h: Include <xstrtol.h>.
30772         (human_options): Return enum strtol_error, not int.  Remove
30773         bool arg; take int * instead.
30774         * lib/human.c: Don't include "gettext.h".
30775         (_): Remove; no longer used.
30776         Don't include <xstrtol.h>, since human.h does it.
30777         (human_options): Adjust to abovementioned interface changes.
30778         Do not report error to stderr; that's now the caller's
30779         responsibility.
30780         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
30781         interface change.
30782         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
30783         Str, Argument_type_string.  All uses changed.  Put " argument"
30784         in diagnostics to make them clearer.  Change wording of suffix
30785         message for clarity.
30786         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
30787         Argument_type_string.
30788         (STRTOL_FATAL_WARN): Remove; no longer used.
30789         * modules/human (Depends-on): Remove gettext-h.
30790
30791 2007-08-06  Simon Josefsson  <simon@josefsson.org>
30792
30793         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
30794
30795 2007-07-31  Bruno Haible  <bruno@clisp.org>
30796
30797         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
30798         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
30799         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
30800
30801 2007-07-31  Bruno Haible  <bruno@clisp.org>
30802
30803         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
30804         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
30805
30806 2007-07-30  Bruno Haible  <bruno@clisp.org>
30807
30808         * modules/base64 (License): Use the synonymous term "LGPLv2+".
30809         * modules/c-ctype (License): Likewise.
30810         * modules/c-strcase (License): Likewise.
30811         * modules/check-version (License): Likewise.
30812         * modules/iconv (License): Likewise.
30813         * modules/iconv_open (License): Likewise.
30814         * modules/read-file (License): Likewise.
30815         * modules/striconv (License): Likewise.
30816         * modules/strverscmp (License): Likewise.
30817         * modules/vasprintf (License): Likewise.
30818         * modules/crypto/des (License): Likewise.
30819         * modules/crypto/gc (License): Likewise.
30820         * modules/crypto/gc-arcfour (License): Likewise.
30821         * modules/crypto/gc-arctwo (License): Likewise.
30822         * modules/crypto/gc-des (License): Likewise.
30823         * modules/crypto/gc-hmac-md5 (License): Likewise.
30824         * modules/crypto/gc-hmac-sha1 (License): Likewise.
30825         * modules/crypto/gc-md2 (License): Likewise.
30826         * modules/crypto/gc-md4 (License): Likewise.
30827         * modules/crypto/gc-md5 (License): Likewise.
30828         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
30829         * modules/crypto/gc-random (License): Likewise.
30830         * modules/crypto/gc-rijndael (License): Likewise.
30831         * modules/crypto/gc-sha1 (License): Likewise.
30832         * modules/crypto/md2 (License): Likewise.
30833         * modules/crypto/md4 (License): Likewise.
30834
30835 2007-07-30  Jim Meyering  <jim@meyering.net>
30836
30837         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
30838         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
30839         it has valid stat data.  This bug would cause du not to count the
30840         sizes of inaccessible directories.
30841         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
30842         in <http://bugzilla.redhat.com/250077>.
30843
30844 2007-07-25  Peter O'Gorman  <peter@pogma.com>
30845             Bruno Haible  <bruno@clisp.org>
30846
30847         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
30848         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
30849         #include_next, gives a diagnostic about it, but reports no error in
30850         the exit code.
30851         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
30852
30853 2007-07-24  Ben Pfaff  <blp@gnu.org>
30854
30855         Improve name: "count-one-bits" is better than "popcount".
30856         * MODULES.html.sh: Update name.
30857         * lib/popcount.h: Renamed lib/count-one-bits.h.
30858         (popcount): Renamed count_one_bits.
30859         (popcountl): Renamed count_one_bits_l.
30860         (popcountll): Renamed count_one_bits_ll.
30861         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
30862         * modules/popcount: Renamed module/count-one-bits.
30863         * modules/popcount-tests: Renamed module/count-one-bits-tests.
30864         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
30865
30866 2007-07-23  Ben Pfaff  <blp@gnu.org>
30867
30868         * lib/popcount.h (popcount32): Reduce size of constants, to allow
30869         better code generation, and add U to large constants to avoid
30870         warnings, in non-GCC case.
30871         Suggested by Bruno Haible.
30872
30873 2007-07-23  Ben Pfaff  <blp@gnu.org>
30874
30875         * lib/popcount.h: Use verify_true instead of if...abort.
30876         * modules/popcount: Depend on verify module.
30877         Suggested by Jim Meyering.
30878
30879 2007-07-23  Bruno Haible  <bruno@clisp.org>
30880
30881         * gnulib-tool (func_import): Create a .cvsignore file also when the
30882         directory is not yet in CVS but the toplevel directory is. When
30883         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
30884         Reported by Karl Berry.
30885
30886 2007-07-22  Ben Pfaff  <blp@gnu.org>
30887
30888         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
30889         case.
30890         Suggested by Eric Blake.
30891
30892 2007-07-22  Ben Pfaff  <blp@gnu.org>
30893
30894         New module: popcount.
30895         * MODULES.html.sh: Add popcount.
30896         * modules/popcount: New file.
30897         * modules/popcount-tests: New file.
30898         * tests/test-popcount.c: New file.
30899         * lib/popcount.h: New file.
30900         * m4/popcount.m4: New file.
30901
30902 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
30903
30904         * build-aux/announce-gen: Update to GPLv3.
30905
30906         * build-aux/config.guess: Update from config.
30907
30908 2007-07-21  Bruno Haible  <bruno@clisp.org>
30909
30910         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
30911         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
30912
30913 2007-07-20  Jim Meyering  <jim@meyering.net>
30914
30915         * check-module: Diagnose a self-dependency.
30916
30917 2007-07-19  Bruno Haible  <bruno@clisp.org>
30918
30919         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
30920         empty.
30921         Reported by Eric Blake.
30922
30923 2007-07-18  Bruno Haible  <bruno@clisp.org>
30924
30925         * gnulib-tool: New options --po-base, --po-domain.
30926         (func_usage): Document them.
30927         (pobase, po_domain): New variables.
30928         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
30929         DEFAULT_TEXT_DOMAIN.
30930         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
30931         (func_import): Consider pobase and po_domain. Create a po/ directory.
30932         (func_create_testdir): Set pobase and po_domain to empty.
30933         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
30934         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
30935
30936 2007-07-18  Bruno Haible  <bruno@clisp.org>
30937
30938         * gnulib-tool (func_get_automake_snippet): Synthesize also an
30939         EXTRA_DIST augmentation for files in build-aux/.
30940
30941 2007-07-16  Bruno Haible  <bruno@clisp.org>
30942
30943         * modules/lseek (License): Use the synonymous term "LGPLv2+".
30944         * modules/getdelim (License): Likewise.
30945
30946 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30947
30948         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
30949         * modules/d-type (License): Likewise.
30950         * modules/extensions (License): Likewise.
30951         * modules/fnmatch (License): Likewise.
30952         * modules/fseeko (License): Likewise.
30953         * modules/getaddrinfo (License): Likewise.
30954         * modules/getline (License): Likewise.
30955         * modules/getlogin_r (License): Likewise.
30956         * modules/getpass (License): Likewise.
30957         * modules/gettimeofday (License): Likewise.
30958         * modules/glob (License): Likewise.
30959         * modules/inet_ntop (License): Likewise.
30960         * modules/malloc (License): Likewise.
30961         * modules/malloca (License): Likewise.
30962         * modules/memmem (License): Likewise.
30963         * modules/mempcpy (License): Likewise.
30964         * modules/memset (License): Likewise.
30965         * modules/minmax (License): Likewise.
30966         * modules/mktime (License): Likewise.
30967         * modules/netinet_in (License): Likewise.
30968         * modules/pathmax (License): Likewise.
30969         * modules/poll (License): Likewise.
30970         * modules/regex (License): Likewise.
30971         * modules/snprintf (License): Likewise.
30972         * modules/stdbool (License): Likewise.
30973         * modules/stdint (License): Likewise.
30974         * modules/stdio (License): Likewise.
30975         * modules/strcase (License): Likewise.
30976         * modules/strcasestr (License): Likewise.
30977         * modules/strdup (License): Likewise.
30978         * modules/string (License): Likewise.
30979         * modules/strndup (License): Likewise.
30980         * modules/strnlen (License): Likewise.
30981         * modules/strpbrk (License): Likewise.
30982         * modules/strptime (License): Likewise.
30983         * modules/strsep (License): Likewise.
30984         * modules/sys_select (License): Likewise.
30985         * modules/sys_socket (License): Likewise.
30986         * modules/sys_stat (License): Likewise.
30987         * modules/sys_time (License): Likewise.
30988         * modules/time (License): Likewise.
30989         * modules/time_r (License): Likewise.
30990         * modules/timegm (License): Likewise.
30991         * modules/unistd (License): Likewise.
30992         * modules/vsnprintf (License): Likewise.
30993         * modules/wctype (License): Likewise.
30994
30995 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30996
30997         * modules/argz (License): LGPLv2+.
30998
30999 2007-07-15  Karl Berry  <karl@gnu.org>
31000
31001         * doc/gnulib.texi: revise node structure per new fdl.texi.
31002
31003 2007-07-14  Bruno Haible  <bruno@clisp.org>
31004
31005         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
31006         the output file.
31007         * lib/uniname/uninames.h: Regenerated.
31008
31009 2007-07-14  Karl Berry  <karl@gnu.org>
31010
31011         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
31012         omitting sectioning and index commands.
31013
31014 2007-07-13  Bruno Haible  <bruno@clisp.org>
31015
31016         New gnulib-tool option --more-symlinks.
31017         * gnulib-tool (func_usage): Document --more-symlinks.
31018         (do_copyrights): New variable.
31019         Recognize option --more-symlinks.
31020         (func_import): Don't add a copyright notice transform to
31021         sed_transform_lib_file if do_copyrights is empty.
31022
31023 2007-07-13  Bruno Haible  <bruno@clisp.org>
31024
31025         * lib/vasnprintf.c (decimal_point_char): Define also if
31026         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
31027         && !NEED_PRINTF_DIRECTIVE_A.
31028         Reported by Clemens Koller <clemens.koller@anagramm.de> via
31029         Gary V. Vaughan <gary@gnu.org>.
31030
31031 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
31032
31033         * lib/inttypes_.h: Undo previous change, since it was fixed
31034         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
31035
31036 2007-07-13  Bruno Haible  <bruno@clisp.org>
31037
31038         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
31039         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
31040
31041 2007-07-13  Jim Meyering  <jim@meyering.net>
31042
31043         df: Don't fail for Tru64's "file-on-file mount".
31044         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
31045         so we fall through and use statfs instead.  Details here:
31046         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
31047         Reported by Albert Chin.
31048
31049 2007-07-13  Bruno Haible  <bruno@clisp.org>
31050
31051         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
31052         * modules/configmake (License): Likewise.
31053         * modules/gettext (License): Likewise.
31054         * modules/gettext-h (License): Likewise.
31055         * modules/include_next (License): Likewise.
31056         * modules/link-warning (License): Likewise.
31057         * modules/localcharset (License): Likewise.
31058         * modules/localename (License): Likewise.
31059         * modules/lock (License): Likewise.
31060         * modules/relocatable-lib-lgpl (License): Likewise.
31061         * modules/size_max (License): Likewise.
31062         * modules/vasnprintf (License): Likewise.
31063         * modules/wchar (License): Likewise.
31064         * modules/xsize (License): Likewise.
31065
31066 2007-07-13  Bruno Haible  <bruno@clisp.org>
31067
31068         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
31069         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
31070
31071 2007-07-12  Bruno Haible  <bruno@clisp.org>
31072
31073         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
31074         in the modules files.
31075
31076 2007-07-11  Karl Berry  <karl@gnu.org>
31077
31078         * MODULES.html.sh (func_module): use
31079          sed -e '\|^'"${includefile}"'$|d'
31080          instead of /.../d, to avoid errors on $includefile's containing /.
31081
31082 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
31083
31084         * gnulib-tool (func_import): Avoid duplication of --avoid
31085         statements
31086         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
31087         names to `_' in variable names.
31088
31089 2007-07-10  Eric Blake  <ebb9@byu.net>
31090
31091         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
31092         * NEWS: Document this change.
31093
31094 2007-07-08  Bruno Haible  <bruno@clisp.org>
31095
31096         Update to Unicode 5.0.
31097         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
31098         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
31099         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
31100         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
31101         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
31102         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
31103         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
31104         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
31105         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
31106         U+10A3F, U+1D242..U+1D244.
31107         (nonspacing_table_ind): Update.
31108         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
31109         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
31110
31111 2007-07-08  Bruno Haible  <bruno@clisp.org>
31112
31113         Update to Unicode 5.0.
31114         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
31115         code transform. Extend the name index field of unicode_name_to_code and
31116         unicode_code_to_name from 16 to 24 bits.
31117         * lib/uniname/uniname.c (unicode_character_name,
31118         unicode_name_character): Add the range 0x12xxx to the code transform.
31119         * lib/uniname/uninames.h: Regenerated.
31120         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
31121
31122 2007-07-07  Bruno Haible  <bruno@clisp.org>
31123
31124         * modules/wcwidth-tests: New file.
31125         * tests/test-wcwidth.c: New file.
31126
31127         Work around MacOS X wcwidth() bug.
31128         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
31129         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
31130         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
31131         original wcwidth in non-UTF-8 locales.
31132         * modules/wcwidth (Depends-on): Add localcharset, streq,
31133         uniwidth/width.
31134         * doc/functions/wcwidth.texi: Update.
31135
31136 2007-07-07  Bruno Haible  <bruno@clisp.org>
31137
31138         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
31139         (wcwidth): New declaration.
31140         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
31141         macros.
31142         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
31143         here. Prepare for creating <wchar.h> unconditionally.
31144         * modules/wchar (Depends-on): Add link-warning.
31145         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
31146         REPLACE_WCWIDTH, and GL_LINK_WARNING.
31147         * lib/wcwidth.h: Remove file.
31148         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
31149         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
31150         * modules/wcwidth (Files): Remove lib/wcwidth.h.
31151         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
31152         (Include): Replace wcwidth.h with <wchar.h>.
31153         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
31154         * lib/mbchar.h: Don't include wcwidth.h.
31155         * lib/mbswidth.c: Likewise.
31156         * NEWS: Mention the change.
31157
31158 2007-07-07  Bruno Haible  <bruno@clisp.org>
31159
31160         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
31161         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
31162         definition with an external declaration.
31163         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
31164         defined as a function. Remove AC_C_INLINE requirement.
31165         * modules/wcwidth (Files): Add lib/wcwidth.c.
31166         (Makefile.am): Remove redundant statement.
31167
31168 2007-07-07  Bruno Haible  <bruno@clisp.org>
31169
31170         * MODULES.html.sh (Unicode string functions): Add the new modules.
31171
31172         * tests/uniwidth/test-u32-strwidth.c: New file.
31173         * modules/uniwidth/u32-strwidth-tests: New file.
31174
31175         * lib/uniwidth/u32-strwidth.c: New file.
31176         * modules/uniwidth/u32-strwidth: New file.
31177
31178         * tests/uniwidth/test-u16-strwidth.c: New file.
31179         * modules/uniwidth/u16-strwidth-tests: New file.
31180
31181         * lib/uniwidth/u16-strwidth.c: New file.
31182         * modules/uniwidth/u16-strwidth: New file.
31183
31184         * tests/uniwidth/test-u8-strwidth.c: New file.
31185         * modules/uniwidth/u8-strwidth-tests: New file.
31186
31187         * lib/uniwidth/u8-strwidth.c: New file.
31188         * modules/uniwidth/u8-strwidth: New file.
31189
31190         * tests/uniwidth/test-u32-width.c: New file.
31191         * modules/uniwidth/u32-width-tests: New file.
31192
31193         * lib/uniwidth/u32-width.c: New file.
31194         * modules/uniwidth/u32-width: New file.
31195
31196         * tests/uniwidth/test-u16-width.c: New file.
31197         * modules/uniwidth/u16-width-tests: New file.
31198
31199         * lib/uniwidth/u16-width.c: New file.
31200         * modules/uniwidth/u16-width: New file.
31201
31202         * tests/uniwidth/test-u8-width.c: New file.
31203         * modules/uniwidth/u8-width-tests: New file.
31204
31205         * lib/uniwidth/u8-width.c: New file.
31206         * modules/uniwidth/u8-width: New file.
31207
31208         * tests/uniwidth/test-uc_width.c: New file.
31209         * modules/uniwidth/width-tests: New file.
31210
31211         * lib/uniwidth/width.c: New file, from GNU libiconv.
31212         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
31213         * modules/uniwidth/width: New file.
31214
31215         * lib/uniwidth.h: New file, from GNU libiconv.
31216         * modules/uniwidth/base: New file.
31217
31218 2007-07-07  Bruno Haible  <bruno@clisp.org>
31219
31220         * lib/uniname.h: New file, from GNU gettext.
31221         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
31222         * lib/uniname/uninames.h: New file, from GNU gettext.
31223         * lib/uniname/uniname.c: New file, from GNU gettext.
31224         * tests/uniname/test-uninames.sh: New file.
31225         * tests/uniname/test-uninames.c: New file, from GNU gettext.
31226         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
31227         * modules/uniname/base: New file.
31228         * modules/uniname/uniname: New file.
31229         * modules/uniname/uniname-tests: New file.
31230         * MODULES.html.sh (Unicode string functions): Add the new modules.
31231
31232 2007-07-06  Bruno Haible  <bruno@clisp.org>
31233
31234         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
31235
31236 2007-07-06  Bruno Haible  <bruno@clisp.org>
31237
31238         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
31239         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
31240         includes <cygwin/sys_time.h> which includes <sys/select.h> which
31241         include <sys/time.h>.
31242         Reported by Eric Blake.
31243
31244 2007-07-06  Eric Blake  <ebb9@byu.net>
31245
31246         Fix testing canonicalize on cygwin.
31247         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
31248         Revert patch from 2007-06-19.
31249         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
31250         canonicalize module is also in use.
31251         * tests/test-canonicalize.c: New file.
31252         * tests/test-canonicalize.sh: Likewise.
31253         * modules/canonicalize-tests: Likewise.
31254
31255 2007-07-06  Jim Meyering  <jim@meyering.net>
31256
31257         * lib/getugroups.c (getugroups): Detect getgrent failure.
31258         Adjust comment to reflect reality: this function may return -1.
31259
31260 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
31261
31262         * build-aux/bootstrap (TP_URL,get_translations): Update to use
31263         the new TP address.
31264         (usage): Fix typo
31265         (gnulib_mk): New variable.
31266
31267 2007-07-05  Jim Meyering  <jim@meyering.net>
31268
31269         Don't let endgrent clobber errno, no matter how improbable.
31270         * lib/getugroups.c (getugroups): Save and restore errno around
31271         endgrent call.
31272
31273         Close the group DB even when failing with 2^31 or more members.
31274         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
31275
31276 2007-07-04  Jim Meyering  <jim@meyering.net>
31277
31278         * lib/getugroups.h: New file.
31279         * lib/getugroups.c: Include "getugroups.h".
31280         Remove uses of "register" keyword.
31281         Move local variable, "cp", down into scope where used.
31282         Give "username" parameter the "const" attribute.
31283         * modules/getugroups (Files): Add lib/getugroups.h
31284
31285 2007-07-04  Karl Berry  <karl@gnu.org>
31286
31287         * MODULES.html.sh (func_all_modules): Complete rename of
31288         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
31289
31290 2007-07-02  Bruno Haible  <bruno@clisp.org>
31291
31292         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
31293         mode, when inttypes.h comes from gnulib.
31294         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
31295
31296 2007-07-02  Simon Josefsson  <simon@josefsson.org>
31297
31298         * NEWS: Mention lgpl module name change.
31299
31300         * modules/lgpl-2.1: Renamed from lgpl.
31301
31302         * NEWS: Mention gpl module name change.
31303
31304         * modules/gpl-3.0: New file, based on gpl-2.0.
31305
31306         * modules/gpl-2.0: Renamed from gpl.
31307
31308         * modules/gpl: Fix filename, doc/gpl.texi is now found at
31309         doc/gpl-2.0.texi.
31310
31311 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
31312
31313         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
31314         #define __STDC_LIMIT_MACROS temporarily while including
31315         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
31316         Problem reported by Joel E. Denny in
31317         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
31318
31319 2007-07-01  Bruno Haible  <bruno@clisp.org>
31320
31321         * lib/unistdio.h: New file.
31322         * lib/unistdio/u-asnprintf.h: New file.
31323         * lib/unistdio/u-asprintf.h: New file.
31324         * lib/unistdio/u-printf-args.c: New file.
31325         * lib/unistdio/u-printf-args.h: New file.
31326         * lib/unistdio/u-printf-parse.h: New file.
31327         * lib/unistdio/u-snprintf.h: New file.
31328         * lib/unistdio/u-sprintf.h: New file.
31329         * lib/unistdio/u-vasprintf.h: New file.
31330         * lib/unistdio/u-vsnprintf.h: New file.
31331         * lib/unistdio/u-vsprintf.h: New file.
31332         * lib/unistdio/ulc-asnprintf.c: New file.
31333         * lib/unistdio/ulc-asprintf.c: New file.
31334         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
31335         * lib/unistdio/ulc-printf-parse.c: New file.
31336         * lib/unistdio/ulc-snprintf.c: New file.
31337         * lib/unistdio/ulc-sprintf.c: New file.
31338         * lib/unistdio/ulc-vasnprintf.c: New file.
31339         * lib/unistdio/ulc-vasprintf.c: New file.
31340         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
31341         * lib/unistdio/ulc-vsnprintf.c: New file.
31342         * lib/unistdio/ulc-vsprintf.c: New file.
31343         * lib/unistdio/u8-asnprintf.c: New file.
31344         * lib/unistdio/u8-asprintf.c: New file.
31345         * lib/unistdio/u8-printf-parse.c: New file.
31346         * lib/unistdio/u8-snprintf.c: New file.
31347         * lib/unistdio/u8-sprintf.c: New file.
31348         * lib/unistdio/u8-vasnprintf.c: New file.
31349         * lib/unistdio/u8-vasprintf.c: New file.
31350         * lib/unistdio/u8-vsnprintf.c: New file.
31351         * lib/unistdio/u8-vsprintf.c: New file.
31352         * lib/unistdio/u8-u8-asnprintf.c: New file.
31353         * lib/unistdio/u8-u8-asprintf.c: New file.
31354         * lib/unistdio/u8-u8-snprintf.c: New file.
31355         * lib/unistdio/u8-u8-sprintf.c: New file.
31356         * lib/unistdio/u8-u8-vasnprintf.c: New file.
31357         * lib/unistdio/u8-u8-vasprintf.c: New file.
31358         * lib/unistdio/u8-u8-vsnprintf.c: New file.
31359         * lib/unistdio/u8-u8-vsprintf.c: New file.
31360         * lib/unistdio/u16-asnprintf.c: New file.
31361         * lib/unistdio/u16-asprintf.c: New file.
31362         * lib/unistdio/u16-printf-parse.c: New file.
31363         * lib/unistdio/u16-snprintf.c: New file.
31364         * lib/unistdio/u16-sprintf.c: New file.
31365         * lib/unistdio/u16-vasnprintf.c: New file.
31366         * lib/unistdio/u16-vasprintf.c: New file.
31367         * lib/unistdio/u16-vsnprintf.c: New file.
31368         * lib/unistdio/u16-vsprintf.c: New file.
31369         * lib/unistdio/u16-u16-asnprintf.c: New file.
31370         * lib/unistdio/u16-u16-asprintf.c: New file.
31371         * lib/unistdio/u16-u16-snprintf.c: New file.
31372         * lib/unistdio/u16-u16-sprintf.c: New file.
31373         * lib/unistdio/u16-u16-vasnprintf.c: New file.
31374         * lib/unistdio/u16-u16-vasprintf.c: New file.
31375         * lib/unistdio/u16-u16-vsnprintf.c: New file.
31376         * lib/unistdio/u16-u16-vsprintf.c: New file.
31377         * lib/unistdio/u32-asnprintf.c: New file.
31378         * lib/unistdio/u32-asprintf.c: New file.
31379         * lib/unistdio/u32-printf-parse.c: New file.
31380         * lib/unistdio/u32-snprintf.c: New file.
31381         * lib/unistdio/u32-sprintf.c: New file.
31382         * lib/unistdio/u32-vasnprintf.c: New file.
31383         * lib/unistdio/u32-vasprintf.c: New file.
31384         * lib/unistdio/u32-vsnprintf.c: New file.
31385         * lib/unistdio/u32-vsprintf.c: New file.
31386         * lib/unistdio/u32-u32-asnprintf.c: New file.
31387         * lib/unistdio/u32-u32-asprintf.c: New file.
31388         * lib/unistdio/u32-u32-snprintf.c: New file.
31389         * lib/unistdio/u32-u32-sprintf.c: New file.
31390         * lib/unistdio/u32-u32-vasnprintf.c: New file.
31391         * lib/unistdio/u32-u32-vasprintf.c: New file.
31392         * lib/unistdio/u32-u32-vsnprintf.c: New file.
31393         * lib/unistdio/u32-u32-vsprintf.c: New file.
31394         * tests/unistdio/test-ulc-asnprintf1.c: New file.
31395         * tests/unistdio/test-ulc-asnprintf1.h: New file.
31396         * tests/unistdio/test-ulc-printf1.h: New file.
31397         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
31398         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
31399         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
31400         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
31401         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
31402         * tests/unistdio/test-ulc-vasprintf1.c: New file.
31403         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
31404         * tests/unistdio/test-ulc-vsprintf1.c: New file.
31405         * tests/unistdio/test-u8-asnprintf1.c: New file.
31406         * tests/unistdio/test-u8-asnprintf1.h: New file.
31407         * tests/unistdio/test-u8-printf1.h: New file.
31408         * tests/unistdio/test-u8-vasnprintf1.c: New file.
31409         * tests/unistdio/test-u8-vasnprintf2.c: New file.
31410         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
31411         * tests/unistdio/test-u8-vasnprintf3.c: New file.
31412         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
31413         * tests/unistdio/test-u8-vasprintf1.c: New file.
31414         * tests/unistdio/test-u8-vsnprintf1.c: New file.
31415         * tests/unistdio/test-u8-vsprintf1.c: New file.
31416         * tests/unistdio/test-u16-asnprintf1.c: New file.
31417         * tests/unistdio/test-u16-asnprintf1.h: New file.
31418         * tests/unistdio/test-u16-printf1.h: New file.
31419         * tests/unistdio/test-u16-vasnprintf1.c: New file.
31420         * tests/unistdio/test-u16-vasnprintf2.c: New file.
31421         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
31422         * tests/unistdio/test-u16-vasnprintf3.c: New file.
31423         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
31424         * tests/unistdio/test-u16-vasprintf1.c: New file.
31425         * tests/unistdio/test-u16-vsnprintf1.c: New file.
31426         * tests/unistdio/test-u16-vsprintf1.c: New file.
31427         * tests/unistdio/test-u32-asnprintf1.c: New file.
31428         * tests/unistdio/test-u32-asnprintf1.h: New file.
31429         * tests/unistdio/test-u32-printf1.h: New file.
31430         * tests/unistdio/test-u32-vasnprintf1.c: New file.
31431         * tests/unistdio/test-u32-vasnprintf2.c: New file.
31432         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
31433         * tests/unistdio/test-u32-vasnprintf3.c: New file.
31434         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
31435         * tests/unistdio/test-u32-vasprintf1.c: New file.
31436         * tests/unistdio/test-u32-vsnprintf1.c: New file.
31437         * tests/unistdio/test-u32-vsprintf1.c: New file.
31438         * modules/unistdio/base: New file.
31439         * modules/unistdio/u-printf-args: New file.
31440         * modules/unistdio/ulc-asnprintf: New file.
31441         * modules/unistdio/ulc-asprintf: New file.
31442         * modules/unistdio/ulc-fprintf: New file.
31443         * modules/unistdio/ulc-printf-parse: New file.
31444         * modules/unistdio/ulc-snprintf: New file.
31445         * modules/unistdio/ulc-sprintf: New file.
31446         * modules/unistdio/ulc-vasnprintf: New file.
31447         * modules/unistdio/ulc-vasprintf: New file.
31448         * modules/unistdio/ulc-vfprintf: New file.
31449         * modules/unistdio/ulc-vsnprintf: New file.
31450         * modules/unistdio/ulc-vsprintf: New file.
31451         * modules/unistdio/u8-asnprintf: New file.
31452         * modules/unistdio/u8-asprintf: New file.
31453         * modules/unistdio/u8-printf-parse: New file.
31454         * modules/unistdio/u8-snprintf: New file.
31455         * modules/unistdio/u8-sprintf: New file.
31456         * modules/unistdio/u8-vasnprintf: New file.
31457         * modules/unistdio/u8-vasprintf: New file.
31458         * modules/unistdio/u8-vsnprintf: New file.
31459         * modules/unistdio/u8-vsprintf: New file.
31460         * modules/unistdio/u8-u8-asnprintf: New file.
31461         * modules/unistdio/u8-u8-asprintf: New file.
31462         * modules/unistdio/u8-u8-snprintf: New file.
31463         * modules/unistdio/u8-u8-sprintf: New file.
31464         * modules/unistdio/u8-u8-vasnprintf: New file.
31465         * modules/unistdio/u8-u8-vasprintf: New file.
31466         * modules/unistdio/u8-u8-vsnprintf: New file.
31467         * modules/unistdio/u8-u8-vsprintf: New file.
31468         * modules/unistdio/u16-asnprintf: New file.
31469         * modules/unistdio/u16-asprintf: New file.
31470         * modules/unistdio/u16-printf-parse: New file.
31471         * modules/unistdio/u16-snprintf: New file.
31472         * modules/unistdio/u16-sprintf: New file.
31473         * modules/unistdio/u16-vasnprintf: New file.
31474         * modules/unistdio/u16-vasprintf: New file.
31475         * modules/unistdio/u16-vsnprintf: New file.
31476         * modules/unistdio/u16-vsprintf: New file.
31477         * modules/unistdio/u16-u16-asnprintf: New file.
31478         * modules/unistdio/u16-u16-asprintf: New file.
31479         * modules/unistdio/u16-u16-snprintf: New file.
31480         * modules/unistdio/u16-u16-sprintf: New file.
31481         * modules/unistdio/u16-u16-vasnprintf: New file.
31482         * modules/unistdio/u16-u16-vasprintf: New file.
31483         * modules/unistdio/u16-u16-vsnprintf: New file.
31484         * modules/unistdio/u16-u16-vsprintf: New file.
31485         * modules/unistdio/u32-asnprintf: New file.
31486         * modules/unistdio/u32-asprintf: New file.
31487         * modules/unistdio/u32-printf-parse: New file.
31488         * modules/unistdio/u32-snprintf: New file.
31489         * modules/unistdio/u32-sprintf: New file.
31490         * modules/unistdio/u32-vasnprintf: New file.
31491         * modules/unistdio/u32-vasprintf: New file.
31492         * modules/unistdio/u32-vsnprintf: New file.
31493         * modules/unistdio/u32-vsprintf: New file.
31494         * modules/unistdio/u32-u32-asnprintf: New file.
31495         * modules/unistdio/u32-u32-asprintf: New file.
31496         * modules/unistdio/u32-u32-snprintf: New file.
31497         * modules/unistdio/u32-u32-sprintf: New file.
31498         * modules/unistdio/u32-u32-vasnprintf: New file.
31499         * modules/unistdio/u32-u32-vasprintf: New file.
31500         * modules/unistdio/u32-u32-vsnprintf: New file.
31501         * modules/unistdio/u32-u32-vsprintf: New file.
31502         * modules/unistdio/ulc-asnprintf-tests: New file.
31503         * modules/unistdio/ulc-vasnprintf-tests: New file.
31504         * modules/unistdio/ulc-vasprintf-tests: New file.
31505         * modules/unistdio/ulc-vsnprintf-tests: New file.
31506         * modules/unistdio/ulc-vsprintf-tests: New file.
31507         * modules/unistdio/u8-asnprintf-tests: New file.
31508         * modules/unistdio/u8-vasnprintf-tests: New file.
31509         * modules/unistdio/u8-vasprintf-tests: New file.
31510         * modules/unistdio/u8-vsnprintf-tests: New file.
31511         * modules/unistdio/u8-vsprintf-tests: New file.
31512         * modules/unistdio/u16-asnprintf-tests: New file.
31513         * modules/unistdio/u16-vasnprintf-tests: New file.
31514         * modules/unistdio/u16-vasprintf-tests: New file.
31515         * modules/unistdio/u16-vsnprintf-tests: New file.
31516         * modules/unistdio/u16-vsprintf-tests: New file.
31517         * modules/unistdio/u32-asnprintf-tests: New file.
31518         * modules/unistdio/u32-vasnprintf-tests: New file.
31519         * modules/unistdio/u32-vasprintf-tests: New file.
31520         * modules/unistdio/u32-vsnprintf-tests: New file.
31521         * modules/unistdio/u32-vsprintf-tests: New file.
31522         * MODULES.html.sh (Unicode string functions): Add the new modules.
31523
31524 2007-07-01  Bruno Haible  <bruno@clisp.org>
31525
31526         * lib/sprintf.c (sprintf): Limit the available length estimation,
31527         to avoid address wraparound.
31528         * lib/vsprintf.c (vsprintf): Likewise.
31529         * modules/sprintf-posix (Dependencies): Add stdint.
31530         * modules/vsprintf-posix (Dependencies): Likewise.
31531
31532 2007-07-01  Bruno Haible  <bruno@clisp.org>
31533
31534         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
31535         Windows PATH as well. Conservative double-quoting. Comments.
31536
31537 2007-07-01  Bruno Haible  <bruno@clisp.org>
31538             Eric Blake  <ebb9@byu.net>
31539             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31540
31541         * gnulib-tool (self_abspathname): Fix algorithm to cope with
31542         empty components in $PATH, denoting '.'.
31543
31544 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31545
31546         * gnulib-tool: Fix indentation.
31547         (func_create_megatestdir): Likewise.
31548         Report by Bruno Haible.
31549
31550 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31551
31552         Sync from Automake.
31553         * build-aux/gnupload: Fix shell portability issues with for loops.
31554         Report by Karl Berry.
31555
31556 2007-06-29  Simon Josefsson  <simon@josefsson.org>
31557
31558         * build-aux/maint.mk (POURL): Use translationproject.org.
31559
31560 2007-06-27  Simon Josefsson  <simon@josefsson.org>
31561             Bruno Haible  <bruno@clisp.org>
31562
31563         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
31564         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
31565         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
31566         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
31567         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
31568
31569 2007-06-27  Bruno Haible  <bruno@clisp.org>
31570
31571         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
31572         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
31573
31574 2007-06-26  Karl Berry  <karl@gnu.org>
31575
31576         * MODULES.html.sh: remove xreadlink-with-size.
31577
31578 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
31579
31580         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
31581         method that I hope also handles the double-include problem noted
31582         by Bruno Haible in
31583         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
31584
31585 2007-06-23  Bruno Haible  <bruno@clisp.org>
31586
31587         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31588         Don't let the 'mostlyclean' target fail if the last subdirectory could
31589         not be removed.
31590         Reported by Karl Berry.
31591
31592 2007-06-23  Bruno Haible  <bruno@clisp.org>
31593
31594         * gnulib-tool (echo): Add a speedier workaround for ksh.
31595         * tests/test-echo.sh: Likewise.
31596
31597 2007-06-23  Bruno Haible  <bruno@clisp.org>
31598
31599         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
31600         * tests/test-echo.sh: Likewise.
31601
31602 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31603
31604         * gnulib-tool (IFS): Initialize early, so we don't set it to
31605         empty later.
31606         (self_abspathname): Rewrite algorithm to set it, reindent.
31607         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
31608         (func_create_megatestdir): Merge some sed scripts.
31609
31610 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
31611
31612         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
31613         exposed by Sun Studio 11 cc on Solaris 8.
31614
31615 2007-06-22  Bruno Haible  <bruno@clisp.org>
31616
31617         * gnulib-tool (echo): Ensure the echo primitive does not interpret
31618         backslashes.
31619         * tests/test-echo.sh: New file.
31620
31621 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31622
31623         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
31624         simplify `sed_replace_build_aux' scripts, they are portable but
31625         echoing them with `echo' is not.
31626         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
31627
31628 2007-06-21  Karl Berry  <karl@gnu.org>
31629
31630         * config/srclist.txt: guess we can't handle the licenses via
31631         srclist at the moment.
31632
31633 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
31634
31635         * MODULES.html.sh: Add include_next.
31636         * modules/include_next: New file.
31637
31638 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
31639
31640         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
31641         INCLUDE_NEXT.
31642         (gl_CHECK_NEXT_HEADERS): New macro.
31643         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
31644         the obsolescent gl_ABSOLUTE_HEADER.
31645         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
31646         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
31647         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
31648         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31649         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
31650         * m4/math_h.m4 (gl_MATH_H): Likewise.
31651         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
31652         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
31653         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
31654         * m4/stdint.m4 (gl_STDINT_H): Likewise.
31655         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
31656         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
31657         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
31658         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31659         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
31660         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
31661         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
31662         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
31663         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
31664         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
31665         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31666         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
31667         * m4/inttypes.m4 (gl_INTTYPES_H): Define
31668         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
31669         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
31670         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
31671         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
31672         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
31673         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
31674         * lib/float_.h: Likewise.
31675         * lib/inttypes_.h: Likewise.
31676         * lib/math_.h: Likewise.
31677         * lib/search_.h: Likewise.
31678         * lib/signal_.h: Likewise.
31679         * lib/stdint_.h: Likewise.
31680         * lib/stdio_.h: Likewise.
31681         * lib/stdlib_.h: Likewise.
31682         * lib/string_.h: Likewise.
31683         * lib/sys_stat_.h: Likewise.
31684         * lib/sys_time_.h: Likewise.
31685         * lib/time_.h: Likewise.
31686         * lib/unistd_.h: Likewise.
31687         * lib/wchar_.h: Likewise.
31688         * lib/wctype_.h: Likewise.
31689         * lib/dirent_.h: Likewise.
31690         * lib/iconv_.h: Likewise.
31691         * lib/locale_.h: Likewise.
31692         * lib/netinet_in_.h: Likewise.
31693         * lib/sys_select_.h: Likewise.
31694         * lib/sys_socket_.h: Likewise.
31695         * lib/sysexits_.h: Likewise.
31696         * modules/fcntl (Depends-on): Depend on include_next, not
31697         absolute_header.
31698         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
31699         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
31700         * modules/fchdir: Likewise.
31701         * modules/float: Likewise.
31702         * modules/iconv_open: Likewise.
31703         * modules/inttypes: Likewise.
31704         * modules/locale: Likewise.
31705         * modules/math: Likewise.
31706         * modules/netinet_in: Likewise.
31707         * modules/search: Likewise.
31708         * modules/signal: Likewise.
31709         * modules/stdint: Likewise.
31710         * modules/stdio: Likewise.
31711         * modules/stdlib: Likewise.
31712         * modules/string: Likewise.
31713         * modules/sys_select: Likewise.
31714         * modules/sys_socket: Likewise.
31715         * modules/sys_stat: Likewise.
31716         * modules/sys_time: Likewise.
31717         * modules/sysexits: Likewise.
31718         * modules/time: Likewise.
31719         * modules/unistd: Likewise.
31720         * modules/wchar: Likewise.
31721         * modules/wctype: Likewise.
31722         * modules/sys_stat: Change maintainer to "all".
31723         * modules/unistd: Likewise.
31724
31725 2007-06-20  Karl Berry  <karl@gnu.org>
31726
31727         * config/srclist.txt: track www changes in license files.
31728
31729 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
31730
31731         * build-aux/bootstrap: Remove stray dot.
31732         Make sure build_aux settings are honored when linking
31733         gnulib_extra_files.
31734
31735 2007-06-19  Eric Blake  <ebb9@byu.net>
31736
31737         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
31738         Allow compilation on cygwin.
31739
31740 2007-06-19  Jim Meyering  <jim@meyering.net>
31741
31742         xreadlink-with-size: Remove module.  No longer used.
31743         Ex-callers now use xreadlink or mreadlink-with-size.
31744         * modules/xreadlink-with-size: Remove module.
31745         * lib/xreadlink-with-size.c: Remove file.
31746         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
31747         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
31748         just before the function definition *is* accurate.
31749
31750         Eliminate one way canonicalize_filename_mode could exit.
31751         * lib/canonicalize.c (canonicalize_filename_mode):
31752         Use mreadlink_with_size, not xreadlink_with_size.
31753
31754 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
31755
31756         Detect porting problems to FreeBSD/arm, which has time_t wider than
31757         long int.  Original problem reported for GNU diff by Xin Li in
31758         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
31759         * modules/getdate (Depends-on): Add intprops, verify.
31760         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
31761         is an integer type no wider than long int.
31762
31763 2007-06-18  Jim Meyering  <jim@meyering.net>
31764
31765         New module: mreadlink-with-size.
31766         * MODULES.html.sh: Add mreadlink-with-size.
31767         * modules/mreadlink-with-size: New module
31768         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
31769         not xreadlink-with-size.
31770         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
31771
31772 2007-06-16  Bruno Haible  <bruno@clisp.org>
31773
31774         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
31775         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
31776         Reported by Gary V. Vaughan <gary@gnu.org>.
31777
31778 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
31779
31780         Revamp lchown so that it lives in unistd.h where it belongs.
31781         * lib/lchown.h: Remove.
31782         * lib/dirchownmod.c: Don't include lib/lchown.h.
31783         * lib/fchownat.c: Likewise.
31784         * lib/openat.c: Likewise.
31785         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
31786         does not follow symlinks.
31787         (EOPNOTSUPP): Define if not defined.
31788         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
31789         is defined to 0.
31790         (lchown): New decl.
31791         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
31792         Do not check for lchown decl.
31793         Set REPLACE_LCHOWN.
31794         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
31795         REPLACE_LCHOWN.
31796         * modules/chown: Make it clear it follows symlinks.
31797         * modules/lchown: Make it clear it doesn't follow symlinks.
31798         (Files): Remove lib/lchown.h
31799         (Depends-on): Add unistd.
31800         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
31801         (Include): Include <unistd.h>, not "lchown.h".
31802         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
31803         REPLACE_LCHOWN.
31804
31805 2007-06-15  Jim Meyering  <jim@meyering.net>
31806
31807         Change license (GPL to LGPL) of fsusage and dependents.
31808         * modules/fsusage (License): Change to LGPL.
31809         * modules/full-read (License): Likewise.
31810         * modules/full-write (License): Likewise.
31811         * modules/safe-read (License): Likewise.
31812         * modules/safe-write (License): Likewise.
31813
31814 2007-06-14  Ben Pfaff  <blp@gnu.org>
31815
31816         Missing part of allocsa -> malloca transition.
31817         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
31818         gl_MALLOCA.
31819
31820 2007-06-12  Bruno Haible  <bruno@clisp.org>
31821
31822         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
31823         to ia64, x86_64, i386.
31824         Reported by Eric Blake.
31825
31826 2007-06-12  Bruno Haible  <bruno@clisp.org>
31827
31828         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
31829         cross-compiling to x86_64.
31830
31831 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
31832
31833         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
31834         glitch reported by Ralf Wildenhues in
31835         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
31836
31837         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
31838         Vin Shelton.
31839
31840 2007-06-11  Bruno Haible  <bruno@clisp.org>
31841
31842         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
31843         replacement string.
31844         Reported by Eric Blake.
31845
31846 2007-06-10  Bruno Haible  <bruno@clisp.org>
31847
31848         Prepare vasnprintf code for use with Unicode strings.
31849         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
31850         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
31851         TYPE_U32_STRING.
31852         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
31853         a_u32_string variants.
31854         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
31855         * lib/printf-args.c: Don't include config.h and the specification
31856         header if PRINTF_FETCHARGS is already defined.
31857         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
31858         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
31859         TYPE_U16_STRING, TYPE_U32_STRING.
31860         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
31861         u16_directive, u16_directives, u32_directive, u32_directives): New
31862         types.
31863         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
31864         New declarations.
31865         * lib/printf-parse.c: Don't include config.h and the specification
31866         header if PRINTF_PARSE is already defined. Eliminate the set of
31867         parameters for WIDE_CHAR_VERSION; the user of this file must provide
31868         them now. Include c-ctype.h.
31869         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
31870         directive and CHAR_T_ONLY_ASCII.
31871         * lib/vasnprintf.c: Don't include config.h and the specification header
31872         if VASNPRINTF is already defined.
31873         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
31874         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
31875         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
31876         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
31877         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
31878         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
31879         code accordingly.
31880         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
31881         pad_ourselves also in this case, with the 'c' and 's' directives, and
31882         with a different notion of "width".
31883         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
31884
31885 2007-06-10  Bruno Haible  <bruno@clisp.org>
31886
31887         * modules/unistr/u32-mbsnlen: New file.
31888         * lib/unistr/u32-mbsnlen.c: New file.
31889
31890         * modules/unistr/u16-mbsnlen: New file.
31891         * lib/unistr/u16-mbsnlen.c: New file.
31892
31893         * modules/unistr/u8-mbsnlen: New file.
31894         * lib/unistr/u8-mbsnlen.c: New file.
31895
31896         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
31897         declarations.
31898
31899 2007-06-10  Bruno Haible  <bruno@clisp.org>
31900
31901         * lib/string_.h (mbsnlen): New declaration.
31902         * lib/mbsnlen.c: New file.
31903         * m4/mbsnlen.m4: New file.
31904         * modules/mbsnlen: New file.
31905         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
31906         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
31907         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
31908
31909 2007-06-10  Bruno Haible  <bruno@clisp.org>
31910
31911         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
31912
31913 2007-06-10  Bruno Haible  <bruno@clisp.org>
31914
31915         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
31916         * lib/mbuiter.h: Likewise.
31917
31918 2007-06-10  Bruno Haible  <bruno@clisp.org>
31919
31920         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
31921         declaration.
31922
31923 2007-06-10  Karl Berry  <karl@gnu.org>
31924
31925         * config/srclist.txt: remove gettext entries, Bruno prefers
31926         to update individually.
31927
31928 2007-06-10  Bruno Haible  <bruno@clisp.org>
31929
31930         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
31931         'maxlen'. Ensure only length + width bytes are allocated, not
31932         length + 1 + width.
31933
31934 2007-06-09  Bruno Haible  <bruno@clisp.org>
31935
31936         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
31937         (CHAR_T): Remove macro.
31938         (VASNPRINTF): Update.
31939
31940 2007-06-09  Bruno Haible  <bruno@clisp.org>
31941
31942         * MODULES.html.sh (Unicode string functions): Add the new modules.
31943
31944         * modules/uniconv/u32-conv-to-enc: New file.
31945         * lib/uniconv/u32-conv-to-enc.c: New file.
31946         * modules/uniconv/u32-conv-to-enc-tests: New file.
31947         * tests/uniconv/test-u32-conv-to-enc.c: New file.
31948
31949         * modules/uniconv/u16-conv-to-enc: New file.
31950         * lib/uniconv/u16-conv-to-enc.c: New file.
31951         * lib/uniconv/u-conv-to-enc.h: New file.
31952         * modules/uniconv/u16-conv-to-enc-tests: New file.
31953         * tests/uniconv/test-u16-conv-to-enc.c: New file.
31954
31955         * modules/uniconv/u8-conv-to-enc: New file.
31956         * lib/uniconv/u8-conv-to-enc.c: New file.
31957         * modules/uniconv/u8-conv-to-enc-tests: New file.
31958         * tests/uniconv/test-u8-conv-to-enc.c: New file.
31959
31960         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
31961         u32_conv_to_encoding): New declarations.
31962
31963 2007-06-09  Bruno Haible  <bruno@clisp.org>
31964
31965         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
31966
31967 2007-06-09  Bruno Haible  <bruno@clisp.org>
31968
31969         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
31970         * modules/malloca: Renamed from modules/allocsa, updated.
31971         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
31972         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
31973         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
31974         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
31975         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
31976         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
31977         * modules/xmalloca: Renamed from modules/xallocsa, updated.
31978         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
31979         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
31980         * modules/c-strcasestr (Depends-on): Update.
31981         * lib/c-strcasestr.c: Update.
31982         * modules/c-strstr (Depends-on): Update.
31983         * lib/c-strstr.c: Update.
31984         * modules/canonicalize-lgpl (Depends-on): Update.
31985         * lib/canonicalize-lgpl.c: Update.
31986         * modules/clean-temp (Depends-on): Update.
31987         * lib/clean-temp.c: Update.
31988         * modules/csharpcomp (Depends-on): Update.
31989         * lib/csharpcomp.c: Update.
31990         * modules/csharpexec (Depends-on): Update.
31991         * lib/csharpexec.c: Update.
31992         * modules/javacomp (Depends-on): Update.
31993         * lib/javacomp.c: Update.
31994         * modules/javaexec (Depends-on): Update.
31995         * lib/javaexec.c: Update.
31996         * modules/mbscasestr (Depends-on): Update.
31997         * lib/mbscasestr.c: Update.
31998         * modules/mbsstr (Depends-on): Update.
31999         * lib/mbsstr.c: Update.
32000         * modules/setenv (Depends-on): Update.
32001         * lib/setenv.c: Update.
32002         * modules/strcasestr (Depends-on): Update.
32003         * lib/strcasestr.c: Update.
32004         * modules/striconveha (Depends-on): Update.
32005         * lib/striconveha.c: Update.
32006         * modules/relocatable-prog-wrapper (Files): Update.
32007         * lib/relocwrapper.c: Update.
32008         * build-aux/install-reloc: Update.
32009         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
32010
32011 2007-06-08  Bruno Haible  <bruno@clisp.org>
32012
32013         Port to uClibc.
32014         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
32015         * lib/fpurge.c (fpurge): Likewise.
32016         * lib/freading.c (freading): Likewise.
32017         * lib/fseeko.c (rpl_fseeko): Likewise.
32018         * lib/fseterr.c (fseterr): Likewise.
32019         * lib/fwriting.c (fwriting): Likewise.
32020         * tests/test-fflush.c (main): Avoid a failure on uClibc.
32021
32022 2007-06-08  Bruno Haible  <bruno@clisp.org>
32023
32024         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
32025         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
32026         * modules/gettext (Files): Add m4/intlmacosx.m4.
32027
32028 2007-06-07  Bruno Haible  <bruno@clisp.org>
32029
32030         * modules/localename-tests: New file.
32031         * tests/test-localename.c: New file.
32032
32033         New module 'localename'.
32034         * lib/localename.h: New file.
32035         * lib/localename.c: New file, from GNU gettext.
32036         * m4/localename.m4: New file.
32037         * modules/localename: New file.
32038
32039 2007-06-07  Bruno Haible  <bruno@clisp.org>
32040
32041         Work around the lack of <wchar.h> on some builds of uClibc.
32042         * doc/headers/wchar.texi: Update.
32043         * lib/wchar_.h: Include <wchar.h> only if it exists.
32044         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
32045         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
32046         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
32047         doesn't exist.
32048         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
32049         * modules/mbfile (Depends-on): Add wchar.
32050         * modules/mbiter (Depends-on): Likewise.
32051         * modules/mbuiter (Depends-on): Likewise.
32052         Reported by Simon Josefsson.
32053
32054 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
32055
32056         Work around problem reported by Steven M. Schweda in
32057         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
32058         Tru64 5.1B with the Compaq compiler environment installed declares
32059         an 'isblank' function but does not define it in the C library.
32060         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
32061         * lib/regex_internal.h (isblank): Likewise.
32062         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
32063         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32064
32065 2007-06-05  Bruno Haible  <bruno@clisp.org>
32066
32067         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
32068         ia64.
32069         * modules/printf-safe: New file.
32070         * modules/fprintf-posix (Depends-on): Add printf-safe.
32071         * modules/printf-posix (Depends-on): Likewise.
32072         * modules/snprintf-posix (Depends-on): Likewise.
32073         * modules/sprintf-posix (Depends-on): Likewise.
32074         * modules/vasnprintf-posix (Depends-on): Likewise.
32075         * modules/vasprintf-posix (Depends-on): Likewise.
32076         * modules/vfprintf-posix (Depends-on): Likewise.
32077         * modules/vprintf-posix (Depends-on): Likewise.
32078         * modules/vsnprintf-posix (Depends-on): Likewise.
32079         * modules/vsprintf-posix (Depends-on): Likewise.
32080         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
32081         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
32082         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
32083         "no" on i386, x86_64, ia64.
32084         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
32085         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32086         on i386, x86_64, ia64.
32087         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
32088         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32089         on i386, x86_64, ia64.
32090         * tests/test-vasnprintf-posix.c: Include float.h.
32091         (LDBL80_WORDS): New macro.
32092         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32093         on i386, x86_64, ia64.
32094         * tests/test-vasprintf-posix.c: Include float.h.
32095         (LDBL80_WORDS): New macro.
32096         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32097         on i386, x86_64, ia64.
32098         * tests/test-snprintf-posix.c: Include float.h.
32099         * tests/test-sprintf-posix.c: Likewise.
32100         * tests/test-vsnprintf-posix.c: Likewise.
32101         * tests/test-vsprintf-posix.c: Likewise.
32102
32103 2007-06-05  Bruno Haible  <bruno@clisp.org>
32104
32105         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
32106         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
32107         non-IEEE numbers on i386, x86_64, ia64.
32108         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
32109         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
32110         * tests/test-isnanl.h: Include float.h.
32111         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
32112
32113 2007-06-05  Bruno Haible  <bruno@clisp.org>
32114
32115         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
32116         also the %a / %A. Handle the %a / %A code before this extra handling.
32117
32118 2007-06-05  Bruno Haible  <bruno@clisp.org>
32119
32120         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
32121         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
32122
32123 2007-06-05  Bruno Haible  <bruno@clisp.org>
32124
32125         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
32126         typo in variable name.
32127
32128 2007-06-05  Eric Blake  <ebb9@byu.net>
32129
32130         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
32131         Reported by Simon Josefsson.
32132
32133 2007-06-04  Bruno Haible  <bruno@clisp.org>
32134
32135         Avoid test failures on some PowerPC platforms.
32136         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
32137         Define differently for PowerPC.
32138         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
32139         Reported by Gary V. Vaughan <gary@gnu.org>.
32140
32141 2007-06-02  Bruno Haible  <bruno@clisp.org>
32142
32143         Fix test-stdint failure on FreeBSD/ia64.
32144         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
32145         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
32146         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
32147         * doc/headers/stdint.texi: Update.
32148
32149 2007-06-01  Bruno Haible  <bruno@clisp.org>
32150
32151         * tests/test-binary-io.c (main): Pass a third argument to open().
32152         Reported by Gary V. Vaughan <gary@gnu.org>.
32153
32154 2007-06-01  Bruno Haible  <bruno@clisp.org>
32155
32156         * doc/functions/frexpl.texi: Update for mingw.
32157
32158 2007-06-01  Bruno Haible  <bruno@clisp.org>
32159
32160         * tests/test-lseek.c (main): Disable test of errno for invalid third
32161         argument.
32162         * doc/functions/lseek.texi: Update.
32163         Reported by Gary V. Vaughan <gary@gnu.org>.
32164
32165 2007-05-28  Bruno Haible  <bruno@clisp.org>
32166
32167         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
32168
32169 2007-05-31  Eric Blake  <ebb9@byu.net>
32170
32171         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
32172         cross compiling.
32173
32174 2007-05-30  Eric Blake  <ebb9@byu.net>
32175         and Bruno Haible  <bruno@clisp.org>
32176
32177         Work around mingw test failures exposed by m4-1.4.9b.
32178         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
32179         * tests/test-unistd.c: Disable uid_t and git_t tests for the
32180         moment.
32181
32182 2007-05-30  Bruno Haible  <bruno@clisp.org>
32183
32184         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
32185         assuming that they are closed. Needed on HP-UX 11.
32186
32187 2007-05-29  Bruno Haible  <bruno@clisp.org>
32188
32189         Fix a problem with #include_next.
32190         * lib/dirent_.h: Split the double-inclusion guard.
32191         * lib/fcntl_.h: Likewise.
32192         * lib/float_.h: Likewise.
32193         * lib/iconv_.h: Likewise.
32194         * lib/inttypes_.h: Likewise.
32195         * lib/locale_.h: Likewise.
32196         * lib/math_.h: Likewise.
32197         * lib/netinet_in_.h: Likewise.
32198         * lib/search_.h: Likewise.
32199         * lib/signal_.h: Likewise.
32200         * lib/stdint_.h: Likewise.
32201         * lib/stdio_.h: Likewise.
32202         * lib/stdlib_.h: Likewise.
32203         * lib/string_.h: Likewise.
32204         * lib/sys_select_.h: Likewise.
32205         * lib/sys_socket_.h: Likewise.
32206         * lib/sys_stat_.h: Likewise.
32207         * lib/sys_time_.h: Likewise.
32208         * lib/sysexits_.h: Likewise.
32209         * lib/time_.h: Likewise.
32210         * lib/unistd_.h: Likewise.
32211         * lib/wchar_.h: Likewise.
32212         * lib/wctype_.h: Likewise.
32213
32214 2007-05-29  Bruno Haible  <bruno@clisp.org>
32215
32216         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
32217         for the moment.
32218
32219 2007-05-29  Bruno Haible  <bruno@clisp.org>
32220
32221         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
32222         invocation.
32223         Reported by Eric Blake.
32224
32225 2007-05-29  Bruno Haible  <bruno@clisp.org>
32226
32227         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
32228         compiling case.
32229
32230 2007-05-29  Eric Blake  <ebb9@byu.net>
32231             Bruno Haible  <bruno@clisp.org>
32232
32233         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
32234         cross compiles.
32235
32236 2007-05-28  Eric Blake  <ebb9@byu.net>
32237
32238         * modules/closein-tests (test_closein_LDADD): Support test on
32239         cygwin with libtool.
32240
32241 2007-05-28  Bruno Haible  <bruno@clisp.org>
32242
32243         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
32244         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
32245         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
32246         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
32247         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
32248         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
32249         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
32250         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
32251         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
32252
32253 2007-05-28  Eric Blake  <ebb9@byu.net>
32254
32255         Unconditionally include <config.h> in unit tests.
32256         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
32257         * tests/test-allocsa.c, tests/test-arcfour.c,
32258         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
32259         tests/test-array_list.c, tests/test-array_oset.c,
32260         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
32261         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
32262         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
32263         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
32264         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
32265         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
32266         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
32267         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
32268         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
32269         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
32270         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
32271         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
32272         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
32273         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
32274         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
32275         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
32276         test-md5.c, test-memmem.c, test-printf-posix.c,
32277         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
32278         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
32279         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
32280         test-strcasestr.c, test-striconv.c, test-striconveh.c,
32281         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
32282         test-vasnprintf-posix2.c, test-vasnprintf.c,
32283         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
32284         test-vfprintf-posix.c, test-vprintf-posix.c,
32285         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
32286         test-xvasprintf.c: Likewise.
32287
32288 2007-05-28  Bruno Haible  <bruno@clisp.org>
32289
32290         * gnulib-tool (func_import): Remember the --with-tests command-line
32291         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
32292         Reported by Eric Blake.
32293
32294 2007-05-28  Bruno Haible  <bruno@clisp.org>
32295
32296         * modules/ftell-tests: New file.
32297         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
32298         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
32299
32300         * lib/ftell.c: New file.
32301         * modules/ftell: New file.
32302         * m4/ftell.m4: New file.
32303         * doc/functions/ftell.texi: Update.
32304         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
32305         REPLACE_FTELL.
32306         * lib/stdio_.h (rpl_ftell): New declaration.
32307         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
32308         REPLACE_FTELL.
32309
32310 2007-05-28  Eric Blake  <ebb9@byu.net>
32311
32312         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
32313
32314 2007-05-28  Bruno Haible  <bruno@clisp.org>
32315
32316         * modules/fseek-tests: New file.
32317         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
32318         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
32319
32320         * lib/fseek.c: New file.
32321         * modules/fseek: New file.
32322         * m4/fseek.m4: New file.
32323         * doc/functions/fseek.texi: Update.
32324         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
32325         REPLACE_FSEEK.
32326         * lib/stdio_.h (rpl_fseek): New declaration.
32327         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
32328         REPLACE_FSEEK.
32329
32330 2007-05-28  Bruno Haible  <bruno@clisp.org>
32331
32332         * lib/stdio_.h (fflush): More comments.
32333
32334 2007-05-28  Bruno Haible  <bruno@clisp.org>
32335
32336         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
32337         runtime test.
32338
32339 2007-05-28  Eric Blake  <ebb9@byu.net>
32340
32341         Improve lseek module.
32342         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
32343         * lib/unistd_.h (lseek): Scale back link warning message.
32344         * tests/test-lseek.c: Beef up test.
32345         * tests/test-lseek.sh: Exercise more facets of lseek.
32346         Reported by Bruno Haible.
32347
32348 2007-05-28  Bruno Haible  <bruno@clisp.org>
32349
32350         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
32351         to define.
32352
32353 2007-05-27  Bruno Haible  <bruno@clisp.org>
32354
32355         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
32356
32357 2007-05-27  Bruno Haible  <bruno@clisp.org>
32358
32359         * modules/openmp: New file.
32360         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
32361         Noah Misch.
32362
32363 2007-05-26  Bruno Haible  <bruno@clisp.org>
32364
32365         * modules/chdir-long (Depends-on): Add fchdir.
32366         * modules/chdir-safer (Depends-on): Likewise.
32367         * modules/fts (Depends-on): Likewise.
32368         * modules/fts-lgpl (Depends-on): Likewise.
32369         * modules/openat (Depends-on): Likewise.
32370         * modules/savewd (Depends-on): Likewise.
32371
32372 2007-05-24  Eric Blake  <ebb9@byu.net>
32373
32374         Fix lseek on mingw.
32375         * modules/lseek: New module.
32376         * m4/lseek.m4: New file.
32377         * lib/lseek.c: New file.
32378         * modules/lseek-tests: New file.
32379         * tests/test-lseek.c: New file.
32380         * tests/test-lseek.sh: New file.
32381         * MODULES.html.sh: Document lseek module.
32382         * modules/fflush (Depends-on): Add lseek, fseeko.
32383         * modules/fseeko (Depends-on): Likewise.
32384         * modules/ftello (Depends-on): Likewise.
32385         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
32386         broken.
32387         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
32388         broken.
32389         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
32390         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
32391         * lib/ftello.c (rpl_ftello): Likewise.
32392         * tests/test-fseeko.c (main): Test this.
32393         * tests/test-fseeko.sh: Likewise.
32394         * tests/test-ftello.c (main): Likewise.
32395         * tests/test-ftello.sh: Likewise.
32396         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
32397         implies replacing fseek.
32398         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
32399         HAVE_FTELLO.
32400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
32401         * modules/unistd (Makefile.am): Likewise.
32402         * lib/unistd_.h (lseek): Declare a replacement.
32403         * doc/functions/lseek.texi (lseek): Document this fix.
32404         * doc/functions/fseek.texi (fseek): Likewise.
32405         * doc/functions/ftell.texi (ftell): Likewise.
32406
32407 2007-05-24  Bruno Haible  <bruno@clisp.org>
32408
32409         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
32410         in the printed representation of a NaN.
32411         * tests/test-vasprintf-posix.c (test_function): Likewise.
32412         * tests/test-snprintf-posix.h (test_function): Likewise.
32413         * tests/test-sprintf-posix.h (test_function): Likewise.
32414         Reported by Eric Blake.
32415
32416 2007-05-23  Eric Blake  <ebb9@byu.net>
32417
32418         Fix fseeko/ftello on cygwin 1.5.24.
32419         * doc/functions/fseeko.texi (fseeko): Document the fix.
32420         * doc/functions/ftello.texi (ftello): Document the fix.
32421         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
32422         * doc/functions/stdout.text (stdout): New file.
32423         * doc/functions/stderr.text (stderr): New file.
32424         * doc/gnulib.texi (Function Substitutes): Use new files.
32425         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
32426         prior to 1.7.0.
32427         * tests/test-ftello.c (main): Likewise for ftello.
32428         * tests/test-fseeko.sh: New file.
32429         * tests/test-ftello.sh: New file.
32430         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
32431         with seekable stdin.
32432         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
32433         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
32434         (gl_REPLACE_FSEEKO): New macro.
32435         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
32436         * modules/fseeko (Files): Distribute fseeko.c.
32437         * modules/ftello (Files): Distribute ftello.c.
32438         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
32439         mode.
32440         * lib/ftello.c (rpl_ftello): New file.
32441         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
32442         fseeko, ftello.
32443         (gl_STDIN_LARGE_OFFSET): New macro.
32444         * modules/stdio (Makefile.am): Perform the replacement.
32445         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
32446
32447 2007-05-23  Bruno Haible  <bruno@clisp.org>
32448
32449         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
32450         GNULIB_POSIXCHECK is defined.
32451
32452 2007-05-21  Bruno Haible  <bruno@clisp.org>
32453
32454         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
32455         Check also the output for NaN arguments. When cross-compiling, guess
32456         no on IRIX.
32457         * lib/vasnprintf.c: Update comments.
32458         * tests/test-vasnprintf-posix.c (strisnan): New function.
32459         (test_function): Use it.
32460         * tests/test-vasprintf-posix.c (strisnan): New function.
32461         (test_function): Use it.
32462         * tests/test-snprintf-posix.h (strisnan): New function.
32463         (test_function): Use it.
32464         * tests/test-sprintf-posix.h (strisnan): New function.
32465         (test_function): Use it.
32466         Reported by Eric Blake.
32467
32468 2007-05-20  Bruno Haible  <bruno@clisp.org>
32469
32470         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
32471         numbers that fails on BeOS.
32472         * doc/functions/frexpl.texi: Update.
32473
32474 2007-05-20  Jim Meyering  <jim@meyering.net>
32475
32476         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
32477         forced upon us by glibc-2.6.
32478
32479 2007-05-20  Bruno Haible  <bruno@clisp.org>
32480
32481         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
32482         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
32483         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
32484         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
32485         NEED_PRINTF_INFINITE.
32486         (is_infinitel): New function.
32487         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
32488         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
32489         gl_PREREQ_VASNPRINTF_INFINITE.
32490         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
32491         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32492         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
32493         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
32494         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
32495         gl_PREREQ_VASNPRINTF_INFINITE.
32496         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32497         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32498         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32499         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32500         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32501         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32502         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32503         * doc/functions/fprintf.texi: Update.
32504         * doc/functions/printf.texi: Update.
32505         * doc/functions/snprintf.texi: Update.
32506         * doc/functions/sprintf.texi: Update.
32507         * doc/functions/vfprintf.texi: Update.
32508         * doc/functions/vprintf.texi: Update.
32509         * doc/functions/vsnprintf.texi: Update.
32510         * doc/functions/vsprintf.texi: Update.
32511
32512 2007-05-20  Bruno Haible  <bruno@clisp.org>
32513
32514         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
32515         was not found in libc.
32516         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32517
32518 2007-05-20  Bruno Haible  <bruno@clisp.org>
32519
32520         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
32521         printed as "-nan" instead of "nan".
32522         * tests/test-vasprintf-posix.c (test_function): Likewise.
32523         * tests/test-snprintf-posix.h (test_function): Likewise.
32524         * tests/test-sprintf-posix.h (test_function): Likewise.
32525         Needed for HP-UX 11.
32526
32527 2007-05-20  Jim Meyering  <jim@meyering.net>
32528
32529         Fix buggy test for the fchownat-deref bug.
32530         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
32531         symlink required for the run-test.  Without it, this test would
32532         always declare that fchownat doesn't work, and client code would
32533         unnecessarily use the replacement function with fixed libc.
32534         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
32535         Reported by Greg Schafer.
32536
32537 2007-05-19  Bruno Haible  <bruno@clisp.org>
32538
32539         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
32540         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
32541         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
32542         Needed for IRIX 6.5 and Solaris 2.5.1.
32543
32544 2007-05-19  Bruno Haible  <bruno@clisp.org>
32545
32546         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
32547         (test_function): Skip tests involving -0.0 on platforms where
32548         -0.0 = 0.0.
32549         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
32550         (test_function): Skip tests involving -0.0 on platforms where
32551         -0.0 = 0.0.
32552         * tests/test-snprintf-posix.h (have_minus_zero): New function.
32553         (test_function): Skip tests involving -0.0 on platforms where
32554         -0.0 = 0.0.
32555         * tests/test-sprintf-posix.h (have_minus_zero): New function.
32556         (test_function): Skip tests involving -0.0 on platforms where
32557         -0.0 = 0.0.
32558         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
32559         tests.
32560         * tests/test-printf-posix.h (test_function): Likewise.
32561         * tests/test-printf-posix.output: Remove all -0.0 related results.
32562         Needed for IRIX 6.5.
32563
32564 2007-05-19  Bruno Haible  <bruno@clisp.org>
32565
32566         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
32567         printed as "nan0x7fffffff" instead of "nan".
32568         * tests/test-vasprintf-posix.c (test_function): Likewise.
32569         * tests/test-snprintf-posix.h (test_function): Likewise.
32570         * tests/test-sprintf-posix.h (test_function): Likewise.
32571         * tests/test-fprintf-posix.h (NaN): Remove macro.
32572         (test_function): Remove all NaN related tests.
32573         * tests/test-printf-posix.h (NaN): Remove macro.
32574         (test_function): Remove all NaN related tests.
32575         * tests/test-printf-posix.output: Remove all NaN related results.
32576         Needed for IRIX 6.5.
32577
32578 2007-05-19  Bruno Haible  <bruno@clisp.org>
32579
32580         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
32581         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
32582
32583 2007-05-19  Bruno Haible  <bruno@clisp.org>
32584
32585         * lib/float_.h: New file.
32586         * m4/float_h.m4: New file.
32587         * modules/float: New file.
32588         * modules/isnanl (Dependencies): Add float.
32589         * modules/isnanl-nolibm (Dependencies): Likewise.
32590         * modules/mathl (Dependencies): Likewise.
32591         * modules/printf-frexpl (Dependencies): Likewise.
32592         * modules/signbit (Dependencies): Likewise.
32593         * modules/vasnprintf (Dependencies): Likewise.
32594         * doc/headers/float.texi: Update.
32595
32596 2007-05-19  Jim Meyering  <jim@meyering.net>
32597
32598         * lib/utimens.c (gl_futimens): Rename from futimens,
32599         now that glibc-2.6 declares futimens.
32600         * lib/utimens.h: Likewise.
32601
32602 2007-05-19  Bruno Haible  <bruno@clisp.org>
32603
32604         Avoid test failures on mingw.
32605         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
32606         * tests/test-printf-posix.sh: Likewise.
32607         * tests/test-vfprintf-posix.sh: Likewise.
32608         * tests/test-vprintf-posix.sh: Likewise.
32609
32610 2007-05-19  Bruno Haible  <bruno@clisp.org>
32611
32612         Fix *printf result for NaN, Inf, -0.0 on mingw.
32613         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
32614         * lib/vasnprintf.c: Include math.h and isnan.h.
32615         (is_infinite_or_zero): New function.
32616         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
32617         values in the %f, %F, %e, %E, %g, %G directives.
32618         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
32619         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32620         gl_PRINTF_INFINITE and test its result. Invoke
32621         gl_PREREQ_VASNPRINTF_INFINITE.
32622         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32623         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32624         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32625         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32626         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32627         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32628         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32629         * doc/functions/fprintf.texi: Update.
32630         * doc/functions/printf.texi: Update.
32631         * doc/functions/snprintf.texi: Update.
32632         * doc/functions/sprintf.texi: Update.
32633         * doc/functions/vfprintf.texi: Update.
32634         * doc/functions/vprintf.texi: Update.
32635         * doc/functions/vsnprintf.texi: Update.
32636         * doc/functions/vsprintf.texi: Update.
32637
32638 2007-05-19  Bruno Haible  <bruno@clisp.org>
32639
32640         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
32641         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
32642         Instead of multiplying with 10^k, set extra_zeroes to k.
32643         (scale10_round_long_double): Remove function.
32644
32645 2007-05-18  Bruno Haible  <bruno@clisp.org>
32646
32647         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
32648         introduced on 2007-05-06.
32649
32650 2007-05-18  Bruno Haible  <bruno@clisp.org>
32651
32652         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
32653         %g directives.
32654         * tests/test-vasprintf-posix.c (test_function): Likewise.
32655         * tests/test-snprintf-posix.h (test_function): Likewise.
32656         * tests/test-sprintf-posix.h (test_function): Likewise.
32657
32658 2007-05-18  Bruno Haible  <bruno@clisp.org>
32659
32660         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
32661         (strmatch): New function.
32662         (test_function): Test the %f directive on numbers of various exponents.
32663         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
32664         (strmatch): New function.
32665         (test_function): Test the %f directive on numbers of various exponents.
32666         * tests/test-snprintf-posix.h (strmatch): New function.
32667         (test_function): Test the %f directive on numbers of various exponents.
32668         * tests/test-sprintf-posix.h (strmatch): New function.
32669         (test_function): Test the %f directive on numbers of various exponents.
32670         * tests/test-snprintf-posix.c (SIZEOF): New macro.
32671         * tests/test-sprintf-posix.c (SIZEOF): New macro.
32672         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
32673         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
32674
32675 2007-05-18  Bruno Haible  <bruno@clisp.org>
32676
32677         Add support for 'long double' number output.
32678         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
32679         * lib/vasnprintf.c: Include math.h and float+.h.
32680         (mp_limb_t): New type.
32681         (GMP_LIMB_BITS): New macro.
32682         (mp_twolimb_t): New type.
32683         (GMP_TWOLIMB_BITS): New macro.
32684         (mpn_t): New type.
32685         (multiply, divide, convert_to_decimal, decode_long_double,
32686         scale10_round_long_double, scale10_round_decimal_long_double,
32687         floorlog10l): New functions.
32688         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
32689         for the %f, %F, %e, %E, %g, %G directives.
32690         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
32691         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32692         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
32693         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
32694         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32695         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32696         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32697         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32698         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32699         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32700         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32701         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
32702         * modules/snprintf-posix (Depends-on): Likewise.
32703         * modules/sprintf-posix (Depends-on): Likewise.
32704         * modules/vasnprintf-posix (Depends-on): Likewise.
32705         * modules/vasprintf-posix (Depends-on): Likewise.
32706         * modules/vfprintf-posix (Depends-on): Likewise.
32707         * modules/vsnprintf-posix (Depends-on): Likewise.
32708         * modules/vsprintf-posix (Depends-on): Likewise.
32709         * modules/vasnprintf (Files): Add lib/float+.h.
32710         * doc/functions/fprintf.texi: Update.
32711         * doc/functions/printf.texi: Update.
32712         * doc/functions/snprintf.texi: Update.
32713         * doc/functions/sprintf.texi: Update.
32714         * doc/functions/vfprintf.texi: Update.
32715         * doc/functions/vprintf.texi: Update.
32716         * doc/functions/vsnprintf.texi: Update.
32717         * doc/functions/vsprintf.texi: Update.
32718
32719 2007-05-18  Bruno Haible  <bruno@clisp.org>
32720
32721         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
32722
32723 2007-05-18  Bruno Haible  <bruno@clisp.org>
32724
32725         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
32726         for printing 64-bit integers. Needed for mingw.
32727
32728 2007-05-18  Bruno Haible  <bruno@clisp.org>
32729
32730         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
32731         gl_FUNC_FREXPL_WORKS.
32732         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
32733
32734 2007-05-18  Bruno Haible  <bruno@clisp.org>
32735
32736         * modules/frexpl-nolibm-tests: New file.
32737
32738         * modules/frexpl-nolibm: New file.
32739         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
32740
32741 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
32742
32743         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
32744         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
32745         GCC 4.2, which otherwise issues a lot of warnings.
32746         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
32747         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
32748         Likewise.
32749         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
32750         * modules/iconv_open (iconv.h): Likewise.
32751         * modules/locale (locale.h): Likewise.
32752         * modules/netinet_in (netinet/in.h): Likewise.
32753         * modules/sys_select (sys_select.h): Likewise.
32754         * modules/sys_socket (sys/socket.h): Likewise.
32755         * modules/sys_stat (sys/stat.h): Likewise.
32756         * modules/sysexits (sysexits.h): Likewise.
32757         * modules/unistd (unistd.h): Likewise.
32758
32759 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32760
32761         * modules/closein-tests (Makefile.am): Distribute
32762         `test-closein.sh'.
32763
32764 2007-05-17  Bruno Haible  <bruno@clisp.org>
32765
32766         * tests/test-printf-posix.output: Renamed from
32767         tests/test-fprintf-posix.out.
32768         * modules/fprintf-posix-tests: Update.
32769         * modules/printf-posix-tests: Update.
32770         * modules/vfprintf-posix-tests: Update.
32771         * modules/vprintf-posix-tests: Update.
32772         * tests/test-fprintf-posix.sh: Update.
32773         * tests/test-printf-posix.sh: Update.
32774         * tests/test-vfprintf-posix.sh: Update.
32775         * tests/test-vprintf-posix.sh: Update.
32776         Reported by Ralf Wildenhues.
32777
32778 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
32779
32780         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
32781         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
32782         GCC 4.2, which otherwise issues a lot of warnings.
32783         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
32784         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
32785         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
32786         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
32787         it should no longer be needed.
32788         * lib/string_.h: Likewise.
32789         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
32790         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
32791         * modules/inttypes (inttypes.h): Likewise.
32792         * modules/math (math.h): Likewise.
32793         * modules/search (search.h): Likewise.
32794         * modules/signal (signal.h): Likewise.
32795         * modules/stdint (stdint.h): Likewise.
32796         * modules/stdio (stdio.h): Likewise.
32797         * modules/stdlib (stdlib.h): Likewise.
32798         * modules/string (string.h): Likewise.
32799         * modules/sys_time (sys/time.h): Likewise.
32800         * modules/time (time.h): Likewise.
32801         * modules/wchar (wchar.h): Likewise.
32802         * modules/wctype (wtype.h): Likewise.
32803
32804 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
32805
32806         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
32807
32808 2007-05-13  Bruno Haible  <bruno@clisp.org>
32809
32810         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
32811         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32812         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
32813         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
32814         (gl_PREREQ_STRTOK_R): Don't require it here.
32815
32816 2007-05-13  Bruno Haible  <bruno@clisp.org>
32817
32818         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
32819         when used in C++ mode.
32820
32821 2007-05-12  Bruno Haible  <bruno@clisp.org>
32822
32823         * lib/linebuffer.h: Tweak doc.
32824         * lib/linebuffer.c: Likewise.
32825
32826 2007-05-12  James Youngman  <jay@gnu.org>
32827
32828         * lib/linebuffer.c (readlinebuffer_delim): New function,
32829         like readlinebuffer, but use a caller-specified delimiter.
32830         (readlinebuffer): Just call readlinebuffer_delim with '\n'
32831         as the delimiter.
32832         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
32833
32834 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32835
32836         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
32837         * modules/openat (Files): Remove openat-die.c.
32838         (Depends-on): Add openat-die.
32839         * modules/openat-die: New module.
32840
32841 2007-05-06  Bruno Haible  <bruno@clisp.org>
32842
32843         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
32844         Update with info about Cygwin.
32845         * doc/functions/fprintf.texi: Update.
32846         * doc/functions/printf.texi: Update.
32847         * doc/functions/snprintf.texi: Update.
32848         * doc/functions/sprintf.texi: Update.
32849         * doc/functions/vfprintf.texi: Update.
32850         * doc/functions/vprintf.texi: Update.
32851         * doc/functions/vsnprintf.texi: Update.
32852         * doc/functions/vsprintf.texi: Update.
32853         Reported by Eric Blake.
32854
32855 2007-05-06  Bruno Haible  <bruno@clisp.org>
32856
32857         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
32858         padding ourselves for the floating-point directives.
32859         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
32860         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
32861         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32862         gl_PRINTF_FLAG_ZERO and test its result. Invoke
32863         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
32864         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32865         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
32866         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32867         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32868         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32869         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32870         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32871         * tests/test-snprintf-posix.h (test_function): Also check the width
32872         and some flags in the %f directive.
32873         * tests/test-sprintf-posix.h (test_function): Likewise.
32874         * tests/test-vasnprintf-posix.c (test_function): Likewise.
32875         * tests/test-vasprintf-posix.c (test_function): Likewise.
32876         * doc/functions/fprintf.texi: Update.
32877         * doc/functions/printf.texi: Update.
32878         * doc/functions/snprintf.texi: Update.
32879         * doc/functions/sprintf.texi: Update.
32880         * doc/functions/vfprintf.texi: Update.
32881         * doc/functions/vprintf.texi: Update.
32882         * doc/functions/vsnprintf.texi: Update.
32883         * doc/functions/vsprintf.texi: Update.
32884
32885 2007-05-06  Bruno Haible  <bruno@clisp.org>
32886
32887         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
32888         pass the ' flag character to sprintf or snprintf.
32889         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
32890         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
32891         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32892         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
32893         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
32894         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32895         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
32896         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32897         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32898         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32899         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32900         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32901         * tests/test-snprintf-posix.h (test_function): Also check the grouping
32902         flag.
32903         * tests/test-sprintf-posix.h (test_function): Likewise.
32904         * tests/test-vasnprintf-posix.c (test_function): Likewise.
32905         * tests/test-vasprintf-posix.c (test_function): Likewise.
32906         * doc/functions/fprintf.texi: Update.
32907         * doc/functions/printf.texi: Update.
32908         * doc/functions/snprintf.texi: Update.
32909         * doc/functions/sprintf.texi: Update.
32910         * doc/functions/vfprintf.texi: Update.
32911         * doc/functions/vprintf.texi: Update.
32912         * doc/functions/vsnprintf.texi: Update.
32913         * doc/functions/vsprintf.texi: Update.
32914
32915 2007-05-01  Bruno Haible  <bruno@clisp.org>
32916
32917         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
32918
32919 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
32920
32921         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
32922         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
32923
32924 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
32925
32926         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
32927         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
32928         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
32929
32930 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
32931
32932         * lib/argp-help.c (struct hol_entry): New member `ord'.
32933         (HOL_ENTRY_PTRCMP): Use ord for comparison
32934         (hol_sort): Initialize ord.
32935
32936 2007-05-01  Bruno Haible  <bruno@clisp.org>
32937
32938         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
32939         Reported by Eric Blake.
32940         * doc/gnulib.texi (Function Substitutes): Update.
32941
32942 2007-05-01  Bruno Haible  <bruno@clisp.org>
32943
32944         * doc/functions.texi: Remove file, now redundant through
32945         doc/functions/*.texi.
32946
32947 2007-05-01  Bruno Haible  <bruno@clisp.org>
32948
32949         * modules/argp (Depends-on): Add sleep.
32950
32951 2007-05-01  Bruno Haible  <bruno@clisp.org>
32952
32953         * modules/sleep-tests: New file.
32954         * tests/test-sleep.c: New file.
32955
32956         * modules/sleep: New file.
32957         * lib/sleep.c: New file.
32958         * m4/sleep.m4: New file.
32959         * lib/unistd_.h (sleep): New declaration.
32960         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
32961         HAVE_SLEEP.
32962         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
32963         * doc/functions/sleep.texi: Document the sleep module.
32964
32965 2007-05-01  Bruno Haible  <bruno@clisp.org>
32966
32967         * lib/sigprocmask.h: Remove file.
32968         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
32969         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
32970         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
32971         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
32972         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
32973         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
32974         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
32975         HAVE_SIGSET_T as a shell variable.
32976         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
32977         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
32978         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
32979         (Depends-on): Add signal. Remove verify.
32980         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
32981         (Include): Mention <signal.h> instead of sigprocmask.h.
32982         * NEWS: Mention the change.
32983         * lib/fatal-signal.c: Don't include sigprocmask.h.
32984
32985 2007-05-01  Bruno Haible  <bruno@clisp.org>
32986
32987         * modules/signal: New file.
32988         * lib/signal_.h: New file.
32989         * m4/signal_h.m4: New file.
32990
32991 2007-05-01  Bruno Haible  <bruno@clisp.org>
32992
32993         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
32994         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
32995         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
32996         HAVE_WCTYPE_CTMP_BUG into wctype.h.
32997
32998 2007-05-01  Bruno Haible  <bruno@clisp.org>
32999
33000         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
33001         configure time.
33002         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
33003         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
33004         * modules/sys_stat (Makefile.am): Substitute their values into
33005         sys/stat.h.
33006
33007 2007-05-01  Bruno Haible  <bruno@clisp.org>
33008
33009         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
33010         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
33011         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
33012
33013 2007-05-01  Bruno Haible  <bruno@clisp.org>
33014
33015         * doc/header/assert.texi: Undo last change: don't mention the gnulib
33016         'assert' module here.
33017
33018 2007-05-01  Bruno Haible  <bruno@clisp.org>
33019
33020         * doc/functions/*.texi: New files.
33021         * doc/functions/google-ranking.txt: New file.
33022         * doc/gnulib.texi (Function Substitutes): New chapter.
33023         (ctime, inet_ntoa): Remove sections.
33024         * doc/ctime.texi: Remove file.
33025         * doc/inet_ntoa.texi: Remove file.
33026         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
33027         dependencies.
33028         (%.info): New rule, specifying a --reference-limit.
33029
33030 2007-05-01  Bruno Haible  <bruno@clisp.org>
33031
33032         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
33033
33034 2007-05-01  Bruno Haible  <bruno@clisp.org>
33035
33036         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
33037         the portability of 'mkdir' to mingw systems.
33038
33039 2007-05-01  Bruno Haible  <bruno@clisp.org>
33040
33041         * doc/headers/google-ranking.txt: New file.
33042
33043 2007-04-30  Eric Blake  <ebb9@byu.net>
33044
33045         Prefer fseeko to fseek.
33046         * modules/getpass (Depends-on): Add fseeko.
33047         * lib/getpass.c (getpass): Use fseeko, not fseek.
33048
33049 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
33050
33051         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
33052         assumes the sorting is stable, while most qsort implementations
33053         are not.  Use argument addresses to ensure they never compare as
33054         equal.
33055
33056         * tests/test-argp-2.sh (usage-indent test): Fix output
33057         (func_compare): Restore diff options
33058         * tests/test-argp.c: Restore #include "progname.h"
33059
33060 2007-04-29  Bruno Haible  <bruno@clisp.org>
33061
33062         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
33063         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33064         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
33065         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33066         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
33067         (configure.ac): Define CHECK_SNPRINTF_POSIX.
33068         (TESTS, check_PROGRAMS): Add test-snprintf.
33069         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
33070         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
33071         (TESTS, check_PROGRAMS): Add test-vsnprintf.
33072         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
33073         assertions that fail on HP-UX, OSF/1, or IRIX.
33074         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
33075
33076 2007-04-29  Bruno Haible  <bruno@clisp.org>
33077
33078         * MODULES.html.sh (posix_functions): Remove 'contents'.
33079
33080 2007-04-29  Karl Berry  <karl@gnu.org>
33081
33082         * config/srclist.txt (gendocs_template_min): new entry.
33083
33084 2007-04-29  Bruno Haible  <bruno@clisp.org>
33085
33086         Work around fpurge bug on BSD systems.
33087         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
33088         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
33089         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
33090         fpurge to rpl_fpurge if the system already has this function.
33091         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
33092         the case where the system already has this function. Correct invariants
33093         on BSD systems.
33094         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
33095         BSD systems.
33096
33097 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
33098
33099         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
33100         proposed by Sven Verdoolaege.
33101
33102         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
33103         options.
33104         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
33105         (usage and help tests): Update
33106
33107 2007-04-29  Bruno Haible  <bruno@clisp.org>
33108
33109         * tests/test-fflush.c (main): Use a file of size 17, not 10.
33110         Print more information in case of failure. Disable a test on BeOS.
33111
33112 2007-04-29  Bruno Haible  <bruno@clisp.org>
33113
33114         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
33115         This helps debugging on systems on which no gdb is available.
33116
33117 2007-04-29  Bruno Haible  <bruno@clisp.org>
33118
33119         * lib/freading.h: Improve comments.
33120         * lib/fwriting.h: Likewise.
33121         * tests/test-freading.c (main): Don't check freading immediately after
33122         repositioning. Needed for glibc.
33123
33124 2007-04-29  Bruno Haible  <bruno@clisp.org>
33125
33126         * lib/freading.c (freading): Trivial simplification.
33127
33128 2007-04-28  Bruno Haible  <bruno@clisp.org>
33129
33130         * tests/test-fwriting.c (main): Also test the interaction between
33131         fflush and fwriting.
33132         * modules/fwriting-tests (Depends-on): Add fflush.
33133
33134         * tests/test-freading.c (main): Also test the interaction between
33135         fflush and freading.
33136         * modules/freading-tests (Depends-on): Add fflush.
33137
33138 2007-04-28  Bruno Haible  <bruno@clisp.org>
33139
33140         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
33141         fseeko and ftello.
33142         Suggested by Eric Blake.
33143
33144 2007-04-28  Jim Meyering  <jim@meyering.net>
33145
33146         Avoid false-negative in gl_STDINT_H's C99 conformance test.
33147         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
33148         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
33149
33150 2007-04-27  Eric Blake  <ebb9@byu.net>
33151
33152         * doc/headers/assert.texi (assert.h): Document assert module use.
33153
33154 2007-04-27  Bruno Haible  <bruno@clisp.org>
33155
33156         * doc/headers/*.texi: New files.
33157         * doc/gnulib.texi (Header File Substitutes): New chapter.
33158         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
33159         dependencies.
33160         (standards.info ,standards.html, standards.dvi): Update dependencies.
33161         (mostlyclean, clean): New targets.
33162
33163 2007-04-27  Bruno Haible  <bruno@clisp.org>
33164
33165         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
33166         * modules/sysexits (Files, Makefile.am): Update.
33167
33168         * lib/sys_socket_.h: Renamed from lib/socket_.h.
33169         * modules/sys_socket (Files, Makefile.am): Update.
33170
33171         * lib/sys_stat_.h: Renamed from lib/stat_.h.
33172         * modules/sys_stat (Files, Makefile.am): Update.
33173
33174 2007-04-27  Eric Blake  <ebb9@byu.net>
33175
33176         * lib/freading.h: Improve comments.
33177         * lib/fwriting.h: Likewise.
33178         * lib/fflush.c: Likewise.
33179
33180         Fix closein for mingw.
33181         * modules/closein-tests: Add tests for closein.
33182         * tests/test-closein.c: New file.
33183         * tests/test-closein.sh: Likewise.
33184         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
33185         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
33186
33187 2007-04-27  Bruno Haible  <bruno@clisp.org>
33188
33189         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
33190         version is < 6.
33191         * lib/math_.h [__DECC]: Likewise.
33192         * lib/stdio_.h [__DECC]: Likewise.
33193         * lib/stdlib_.h [__DECC]: Likewise.
33194         * lib/string_.h [__DECC]: Likewise.
33195         * lib/time_.h [__DECC]: Likewise.
33196         * lib/wchar_.h [__DECC]: Likewise.
33197         * lib/wctype_.h [__DECC]: Likewise.
33198
33199 2007-04-27  Bruno Haible  <bruno@clisp.org>
33200
33201         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
33202
33203 2007-04-27  Bruno Haible  <bruno@clisp.org>
33204
33205         * lib/fflush.c: Add comments.
33206         * modules/fpurge-tests (Depends-on): Add fflush.
33207         * modules/freadable-tests (Depends-on): Likewise.
33208         * modules/fwritable-tests (Depends-on): Likewise.
33209
33210 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
33211
33212         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
33213         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
33214         Report by Bruno Haible <bruno@clisp.org>.
33215
33216 2007-04-26  Eric Blake  <ebb9@byu.net>
33217
33218         Fix fflush on mingw.
33219         * modules/fflush (Depends-on): Add freading.
33220         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
33221         but unread data.
33222
33223 2007-04-26  Eric Blake  <ebb9@byu.net>
33224         and Bruno Haible  <bruno@clisp.org>
33225
33226         Implement freading and fwriting.
33227         * lib/freading.c: New file.
33228         * lib/freading.h: Likewise.
33229         * m4/freading.m4: Likewise.
33230         * modules/freading: Likewise.
33231         * modules/freading-tests: Likewise.
33232         * tests/test-freading.c: Likewise.
33233         * lib/fwriting.c: New file.
33234         * lib/fwriting.h: Likewise.
33235         * m4/fwriting.m4: Likewise.
33236         * modules/fwriting: Likewise.
33237         * modules/fwriting-tests: Likewise.
33238         * tests/test-fwriting.c: Likewise.
33239         * MODULES.html.sh (File stream based Input/Output): Mention them.
33240
33241 2007-04-26  Bruno Haible  <bruno@clisp.org>
33242
33243         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
33244         'long' when we assume it.
33245         Suggested by Eric Blake.
33246
33247 2007-04-26  Bruno Haible  <bruno@clisp.org>
33248
33249         Ensure fseeko, ftello are declared on glibc systems.
33250         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
33251         * modules/fseeko (configure.ac-early): Likewise.
33252         * modules/ftello (configure.ac-early): Likewise.
33253         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
33254         AC_FUNC_FSEEKO for this.
33255         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
33256         (gl_CHECK_FSEEKO): Remove macro.
33257
33258 2007-04-26  Bruno Haible  <bruno@clisp.org>
33259
33260         * tests/test-fflush.c (main): Also check the ftell result after
33261         fflush and fseek/fseeko.
33262         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
33263         file descriptor position cache in the stream.
33264         * lib/fseeko.c (rpl_fseeko): Likewise.
33265
33266 2007-04-26  Bruno Haible  <bruno@clisp.org>
33267
33268         * modules/fflush-tests (Depends-on): Add fseeko.
33269
33270 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
33271             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33272
33273         * lib/argz_.h: ensure error_t definition is obtained in same
33274         mechanism system argz.h would have.
33275         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
33276         argz facilities are known bad.  Err on the side of caution if
33277         cross-compiling.
33278
33279 2007-04-25  Eric Blake  <ebb9@byu.net>
33280
33281         * lib/fpurge.c (includes): Use stdlib.h for free.
33282         * tests/test-fflush.c (main): Also test fflush-fseeko.
33283
33284 2007-04-25  Bruno Haible  <bruno@clisp.org>
33285
33286         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
33287         * lib/fseeko.c: New file.
33288         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
33289         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
33290         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
33291         gl_FUNC_FSEEKO.
33292         (gl_FUNC_FSEEKO): Invoke it.
33293         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
33294         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
33295         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
33296
33297 2007-04-25  Bruno Haible  <bruno@clisp.org>
33298
33299         * modules/fflush (Depends-on): Add ftello.
33300
33301 2007-04-25  Bruno Haible  <bruno@clisp.org>
33302
33303         * modules/ftello-tests: New file.
33304         * tests/test-ftello.c: New file.
33305
33306         * modules/ftello: New file.
33307         * m4/ftello.m4: New file.
33308         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
33309         HAVE_FTELLO.
33310         * lib/stdio_.h (ftello): New declaration.
33311         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
33312         HAVE_FTELLO.
33313
33314 2007-04-25  Bruno Haible  <bruno@clisp.org>
33315
33316         * modules/fseeko-tests: New file.
33317         * tests/test-fseeko.c: New file.
33318
33319         * modules/fseeko: New file.
33320         * m4/fseeko.m4: New file.
33321         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
33322         HAVE_FSEEKO.
33323         * lib/stdio_.h (fseeko): New declaration.
33324         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
33325         HAVE_FSEEKO.
33326
33327 2007-04-25  Bruno Haible  <bruno@clisp.org>
33328
33329         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
33330
33331 2007-04-25  Bruno Haible  <bruno@clisp.org>
33332
33333         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
33334         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
33335         * tests/test-unistd.c: Likewise.
33336         * tests/test-fcntl.c: Likewise.
33337
33338 2007-04-23  Eric Blake  <ebb9@byu.net>
33339
33340         * lib/fflush.c: Fix missing include.
33341         Reported by Bruno Haible.
33342
33343 2007-04-23  Bruno Haible  <bruno@clisp.org>
33344
33345         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
33346         Reported by Eric Blake.
33347
33348 2007-04-23  Bruno Haible  <bruno@clisp.org>
33349
33350         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
33351
33352 2007-04-23  Bruno Haible  <bruno@clisp.org>
33353
33354         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
33355
33356 2007-04-23  Bruno Haible  <bruno@clisp.org>
33357
33358         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
33359         Needed on HP-UX 11.
33360
33361 2007-04-16  Eric Blake  <ebb9@byu.net>
33362
33363         Make fflush rely on fpurge.
33364         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
33365         open coding all variants.
33366         * modules/fflush (Depends-on): Add fpurge and unistd.
33367         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
33368         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
33369
33370         Fix --with-tests compilation on cygwin.
33371         * modules/argmatch-tests (Makefile.am): List gnulib library first
33372         in LDADD.
33373         * modules/argp-tests (Makefile.am): Likewise.
33374         * modules/array-list-tests (Makefile.am): Likewise.
33375         * modules/array-oset-tests (Makefile.am): Likewise.
33376         * modules/avltree-list-tests (Makefile.am): Likewise.
33377         * modules/avltree-oset-tests (Makefile.am): Likewise.
33378         * modules/avltreehash-list-tests (Makefile.am): Likewise.
33379         * modules/carray-list-tests (Makefile.am): Likewise.
33380         * modules/dirname-tests (Makefile.am): Likewise.
33381         * modules/frexp-tests (Makefile.am): Likewise.
33382         * modules/isnanl-tests (Makefile.am): Likewise.
33383         * modules/linked-list-tests (Makefile.am): Likewise.
33384         * modules/linkedhash-list-tests (Makefile.am): Likewise.
33385         * modules/lock-tests (Makefile.am): Likewise.
33386         * modules/rbtree-list-tests (Makefile.am): Likewise.
33387         * modules/rbtree-oset-tests (Makefile.am): Likewise.
33388         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
33389         * modules/tls-tests (Makefile.am): Likewise.
33390         * modules/tsearch-tests (Makefile.am): Likewise.
33391         * modules/xvasprintf-tests (Makefile.am): Likewise.
33392
33393         Fix fpurge for cygwin.
33394         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
33395         value.
33396         * modules/fpurge-tests (Depends-on): Clean up trash.
33397
33398 2007-04-16  Simon Josefsson  <simon@josefsson.org>
33399
33400         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
33401
33402         * m4/autobuild.m4: Re-indent.
33403
33404 2007-04-13  Bruno Haible  <bruno@clisp.org>
33405
33406         * modules/fpurge-tests: New file.
33407         * tests/test-fpurge.c: New file.
33408
33409         * modules/fpurge: New file.
33410         * lib/fpurge.h: New file.
33411         * lib/fpurge.c: New file.
33412         * m4/fpurge.m4: New file.
33413
33414 2007-04-13  Bruno Haible  <bruno@clisp.org>
33415
33416         * modules/fbufmode-tests: New file.
33417         * tests/test-fbufmode.c: New file.
33418
33419         * modules/fbufmode: New file.
33420         * lib/fbufmode.h: New file.
33421         * lib/fbufmode.c: New file.
33422         * m4/fbufmode.m4: New file.
33423
33424 2007-04-13  Bruno Haible  <bruno@clisp.org>
33425
33426         * modules/fwritable-tests: New file.
33427         * tests/test-fwritable.c: New file.
33428
33429         * modules/fwritable: New file.
33430         * lib/fwritable.h: New file.
33431         * lib/fwritable.c: New file.
33432         * m4/fwritable.m4: New file.
33433
33434 2007-04-13  Bruno Haible  <bruno@clisp.org>
33435
33436         * modules/freadable-tests: New file.
33437         * tests/test-freadable.c: New file.
33438
33439         * modules/freadable: New file.
33440         * lib/freadable.h: New file.
33441         * lib/freadable.c: New file.
33442         * m4/freadable.m4: New file.
33443
33444 2007-04-13  Bruno Haible  <bruno@clisp.org>
33445
33446         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
33447         MOSTLYCLEANFILES.
33448
33449 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
33450
33451         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
33452         gzip bootstrap.conf to avoid dragging in i18n machinery.
33453         (gnulib_tool_option): Use it.
33454
33455 2007-04-13  Bruno Haible  <bruno@clisp.org>
33456
33457         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
33458         %F directives.
33459         * tests/test-vasprintf-posix.c (test_function): Likewise.
33460         * tests/test-snprintf-posix.h (test_function): Likewise.
33461         * tests/test-sprintf-posix.h (test_function): Likewise.
33462         * tests/test-fprintf-posix.h (test_function): Likewise.
33463         * tests/test-printf-posix.h (test_function): Likewise.
33464         * tests/test-fprintf-posix.out: Likewise.
33465
33466 2007-04-13  Bruno Haible  <bruno@clisp.org>
33467
33468         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
33469         * modules/tls-tests (configure.ac): Likewise.
33470         Reported by Arto C. Nirkko <anirkko@insel.ch>.
33471
33472 2007-04-13  Bruno Haible  <bruno@clisp.org>
33473
33474         * lib/tls.c (glthread_tls_get): Fix return type.
33475         Patch by Arto C. Nirkko <anirkko@insel.ch>.
33476
33477 2007-04-12  Eric Blake  <ebb9@byu.net>
33478
33479         * modules/gettime (Depends-on): Remove gettime.
33480         Reported by Dmitry V. Levin.
33481
33482 2007-04-12  Bruno Haible  <bruno@clisp.org>
33483
33484         * modules/fflush (Include): Mention <stdio.h>.
33485         * modules/strtoimax (Include): Mention <inttypes.h>.
33486         * modules/strtoumax (Include): Likewise.
33487
33488 2007-04-12  Eric Blake  <ebb9@byu.net>
33489
33490         * .cvsignore: New file.
33491         * .gitignore: Likewise.
33492
33493 2007-04-12  Bruno Haible  <bruno@clisp.org>
33494
33495         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
33496         not before, since $(LDADD) often contains libgnu.a.
33497         * modules/striconv-tests (test_striconv_LDADD): Likewise.
33498         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
33499         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
33500         Needed on Cygwin.
33501
33502 2007-04-12  Eric Blake  <ebb9@byu.net>
33503
33504         Work around glibc's failure to flush stdin on fclose.
33505         * lib/closein.c (close_stdin): Flush stdin before closing.
33506
33507         Work around glibc's failure to reset seekable stdin on exit.
33508         * modules/closein: New module.
33509         * lib/closein.c: New file.
33510         * lib/closein.h: Likewise.
33511         * m4/closein.m4: Likewise.
33512         * MODULES.html.sh (File stream based Input/Output): Document it.
33513
33514 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33515
33516         * gnulib-tool: Rename generated 'autobuild' script to
33517         'do-autobuild' in --create-megatestdir output.
33518
33519         * doc/gnulib.texi (Build robot for gnulib): Fix.
33520
33521 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33522
33523         * modules/sysexits (Depends-on): Add absolute-header.
33524
33525 2007-04-12  Eric Blake  <ebb9@byu.net>
33526
33527         No need to preserve errno on success.
33528         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
33529         Reported by Bruno Haible.
33530
33531 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33532
33533         * MODULES.html.sh (Support for maintaining and releasing
33534         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
33535
33536 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33537
33538         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
33539
33540 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33541
33542         * modules/autobuild: New module.
33543
33544         * m4/autobuild.m4: New file.
33545
33546 2007-04-11  Bruno Haible  <bruno@clisp.org>
33547
33548         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
33549         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
33550         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
33551         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
33552         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33553         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33554         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33555         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33556         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33557         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33558         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
33559         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33560         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33561         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
33562         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33563         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33564         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
33565         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33566         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33567         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
33568         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33569         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33570         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
33571         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33572         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33573         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
33574         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33575         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33576         Reported by Eric Blake.
33577
33578 2007-04-11  Bruno Haible  <bruno@clisp.org>
33579
33580         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
33581
33582 2007-04-10  Bruno Haible  <bruno@clisp.org>
33583
33584         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
33585         for NaN and Infinity. Needed on FreeBSD 6.1.
33586         * tests/test-vasnprintf-posix.c (test_function): Undo last change
33587         regarding results for "%010a" of Infinity and NaN.
33588         * tests/test-vasprintf-posix.c (test_function): Likewise.
33589         * tests/test-snprintf-posix.h (test_function): Likewise.
33590         * tests/test-sprintf-posix.h (test_function): Likewise.
33591         * tests/test-fprintf-posix.h (test_function): Likewise.
33592         * tests/test-printf-posix.h (test_function): Likewise.
33593         * tests/test-fprintf-posix.out: Likewise.
33594
33595 2007-04-10  Bruno Haible  <bruno@clisp.org>
33596
33597         * modules/locale-tests: New file.
33598         * tests/test-locale.c: New file.
33599
33600         * modules/locale: New file.
33601         * lib/locale_.h: New file.
33602         * m4/locale_h.m4: New file.
33603
33604 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
33605             Bruno Haible  <bruno@clisp.org>
33606
33607         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
33608         be determined, test for availability of the copysignf, copysign,
33609         copysignl functions.
33610         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
33611         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
33612         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
33613
33614 2007-04-09  Eric Blake  <ebb9@byu.net>
33615
33616         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
33617         * modules/stdio (Makefile.am): Support fflush.
33618         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33619         * modules/fflush: New file.
33620         * lib/fflush.c: Likewise.
33621         * m4/fflush.m4: Likewise.
33622         * modules/fflush-tests: New test.
33623         * tests/test-fflush.c: Likewise.
33624         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
33625
33626 2007-04-06  Bruno Haible  <bruno@clisp.org>
33627
33628         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
33629         (VASNPRINTF): Use signbit for faster determination whether to print a
33630         minus sign.
33631         * modules/vasnprintf (Files): Remove lib/float+.h.
33632         * modules/fprintf-posix (Depends-on): Add signbit.
33633         * modules/snprintf-posix (Depends-on): Likewise.
33634         * modules/sprintf-posix (Depends-on): Likewise.
33635         * modules/vasnprintf-posix (Depends-on): Likewise.
33636         * modules/vasprintf-posix (Depends-on): Likewise.
33637         * modules/vfprintf-posix (Depends-on): Likewise.
33638         * modules/vsnprintf-posix (Depends-on): Likewise.
33639         * modules/vsprintf-posix (Depends-on): Likewise.
33640
33641 2007-04-06  Bruno Haible  <bruno@clisp.org>
33642
33643         * tests/test-frexp.c (main): Test also the sign bit of zero results.
33644         * tests/test-frexpl.c (main): Likewise.
33645         * tests/test-ldexpl.c (main): Likewise.
33646         * modules/frexp-tests (Depends-on): Add signbit.
33647         * modules/frexpl-tests (Depdends-on): Likewise.
33648         * modules/ldexpl-tests (Depdends-on): Likewise.
33649
33650 2007-04-06  Bruno Haible  <bruno@clisp.org>
33651
33652         * modules/signbit-tests: New file.
33653         * tests/test-signbit.c: New file.
33654
33655         * modules/signbit: New file.
33656         * lib/signbitf.c: New file.
33657         * lib/signbitd.c: New file.
33658         * lib/signbitl.c: New file.
33659         * m4/signbit.m4: New file.
33660         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
33661         (signbit): New macro.
33662         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
33663         REPLACE_SIGNBIT.
33664         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
33665         REPLACE_FREXPL into math.h.
33666
33667 2007-04-06  Bruno Haible  <bruno@clisp.org>
33668
33669         * modules/isnanf-nolibm-tests: New file.
33670         * tests/test-isnanf.c: New file.
33671
33672         * modules/isnanf-nolibm: New file.
33673         * lib/isnanf.h: New file.
33674         * lib/isnanf.c: New file.
33675         * lib/isnan.c: Consider the USE_FLOAT macro.
33676         * m4/isnanf.m4: New file.
33677
33678 2007-04-06  Bruno Haible  <bruno@clisp.org>
33679
33680         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
33681         (Link): New section.
33682
33683         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
33684
33685 2007-04-06  Bruno Haible  <bruno@clisp.org>
33686
33687         Assume the 'long double' type.
33688         * m4/longdouble.m4: Remove file.
33689         * config/srclist.txt: Don't mention longdouble.m4.
33690         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
33691         * lib/float+.h: Likewise.
33692         * lib/frexp.c: Likewise.
33693         * lib/printf-args.h: Likewise.
33694         * lib/printf-args.c: Likewise.
33695         * lib/printf-frexp.c: Likewise.
33696         * lib/printf-parse.c: Likewise.
33697         * lib/vasnprintf.c: Likewise.
33698         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
33699         * m4/intl.m4: Likewise.
33700         * m4/isnanl.m4: Likewise.
33701         * m4/printf.m4: Likewise.
33702         * m4/printf-frexpl.m4: Likewise.
33703         * m4/vasnprintf.m4: Likewise.
33704         * modules/allocsa (Files): Remove m4/longdouble.m4.
33705         * modules/gettext (Files): Likewise.
33706         * modules/relocatable-prog-wrapper (Files): Likewise.
33707         * modules/vasnprintf (Files): Likewise.
33708         * modules/isnanl (Files): Likewise.
33709         (Include): Simplify.
33710         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
33711         (Include): Simplify.
33712         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
33713         (Include): Simplify.
33714         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
33715         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33716         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
33717         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33718         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
33719         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33720         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
33721         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33722         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
33723         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33724         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
33725         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33726         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
33727         * tests/test-isnanl.c: Likewise.
33728         * tests/test-snprintf-posix.h: Likewise.
33729         * tests/test-sprintf-posix.h: Likewise.
33730         * tests/test-vasnprintf-posix.c: Likewise.
33731         * tests/test-vasnprintf-posix2.c: Likewise.
33732         * tests/test-vasprintf-posix.c: Likewise.
33733
33734 2007-04-06  Bruno Haible  <bruno@clisp.org>
33735
33736         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
33737         * lib/math_.h [__DECC]: Include the overridden include file through
33738         #include_next, outside the double-inclusion guard.
33739         * lib/stdio_.h [__DECC]: Likewise.
33740         * lib/stdlib_.h [__DECC]: Likewise.
33741         * lib/string_.h [__DECC]: Likewise.
33742         * lib/time_.h [__DECC]: Likewise.
33743         * lib/wchar_.h [__DECC]: Likewise.
33744         * lib/wctype_.h [__DECC]: Likewise.
33745         * lib/inttypes_.h [__DECC]: Likewise.
33746         Reported by Albert Chin <china@thewrittenword.com> in
33747         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
33748
33749 2007-04-04  Eric Blake  <ebb9@byu.net>
33750
33751         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
33752         1.5.x.
33753
33754 2007-04-04  Bruno Haible  <bruno@clisp.org>
33755
33756         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
33757         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
33758
33759 2007-04-04  Bruno Haible  <bruno@clisp.org>
33760
33761         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
33762         results for "%010a" of Infinity and NaN.
33763         * tests/test-vasprintf-posix.c (test_function): Likewise.
33764         * tests/test-snprintf-posix.h (test_function): Likewise.
33765         * tests/test-sprintf-posix.h (test_function): Likewise.
33766         * tests/test-fprintf-posix.h (test_function): Remove these tests.
33767         * tests/test-printf-posix.h (test_function): Likewise.
33768         * tests/test-fprintf-posix.out: Update.
33769         Needed for FreeBSD 6.1.
33770
33771 2007-04-04  Bruno Haible  <bruno@clisp.org>
33772
33773         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
33774         directly used by the gnulib modules nor by gnulib-tool.
33775
33776 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
33777
33778         * DEPENDENCIES: Give overall description of version dependency
33779         desirability.  Use more-typical names for apps.
33780         Add shell, coreutils, diffutils, grep, tar, gzip.
33781
33782 2007-04-04  Simon Josefsson  <simon@josefsson.org>
33783
33784         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
33785
33786 2007-04-04  Karl Berry  <karl@gnu.org>
33787
33788         * MODULES.html.sh (func_module): missing '.
33789
33790 2007-04-03  Bruno Haible  <bruno@clisp.org>
33791
33792         * modules/argmatch-tests (Makefile.am): New variable
33793         test_argmatch_LDADD.
33794         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
33795         * modules/array-list-tests (Makefile.am): New variable
33796         test_array_list_LDADD.
33797         * modules/array-oset-tests (Makefile.am): New variable
33798         test_array_oset_LDADD.
33799         * modules/avltree-list-tests (Makefile.am): New variable
33800         test_avltree_list_LDADD.
33801         * modules/avltree-oset-tests (Makefile.am): New variable
33802         test_avltree_oset_LDADD.
33803         * modules/avltreehash-list-tests (Makefile.am): New variable
33804         test_avltreehash_list_LDADD.
33805         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
33806         test_canonicalize_lgpl_LDADD.
33807         * modules/carray-list-tests (Makefile.am): New variable
33808         test_carray_list_LDADD.
33809         * modules/dirname-tests (Makefile.am): New variable
33810         test_dirname_LDADD.
33811         * modules/linked-list-tests (Makefile.am): New variable
33812         test_linked_list_LDADD.
33813         * modules/linkedhash-list-tests (Makefile.am): New variable
33814         test_linkedhash_list_LDADD.
33815         * modules/rbtree-list-tests (Makefile.am): New variable
33816         test_rbtree_list_LDADD.
33817         * modules/rbtree-oset-tests (Makefile.am): New variable
33818         test_rbtree_oset_LDADD.
33819         * modules/rbtreehash-list-tests (Makefile.am): New variable
33820         test_rbtreehash_list_LDADD.
33821         * modules/xvasprintf-tests (Makefile.am): New variable
33822         test_xvasprintf_LDADD.
33823         Reported by Eric Blake.
33824
33825 2007-04-03  Eric Blake  <ebb9@byu.net>
33826
33827         * DEPENDENCIES: Weaken m4 requirements.
33828
33829 2007-04-03  Bruno Haible  <bruno@clisp.org>
33830
33831         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
33832         * modules/isnanl-tests (configure.ac): Likewise.
33833
33834 2007-04-03  Ben Pfaff  <blp@gnu.org>
33835
33836         * modules/iconv_open: Add $(srcdir)/ to source directory
33837         references in Makefile fragments that call gperf, to fix VPATH
33838         builds.
33839
33840 2007-04-03  Bruno Haible  <bruno@clisp.org>
33841
33842         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
33843         * lib/ldexpl.c: Undo last change.
33844
33845 2007-04-03  Bruno Haible  <bruno@clisp.org>
33846
33847         * modules/printf-frexpl (Depends-on): Undo last change.
33848         (Files): Add m4/ldexpl.m4.
33849
33850 2007-04-03  Bruno Haible  <bruno@clisp.org>
33851
33852         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
33853         * modules/isnanl (Link): New section.
33854
33855         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
33856         * modules/frexp (Link): New section.
33857
33858         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
33859         * modules/frexpl (Link): New section.
33860
33861         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
33862         * modules/ldexpl (Link): New section.
33863
33864 2007-04-03  Bruno Haible  <bruno@clisp.org>
33865
33866         * modules/TEMPLATE-EXTENDED: New file.
33867         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
33868
33869 2007-04-03  Bruno Haible  <bruno@clisp.org>
33870
33871         * DEPENDENCIES: New file.
33872         Suggested by Simon Josefsson.
33873
33874 2007-04-03  Bruno Haible  <bruno@clisp.org>
33875
33876         * doc/gnulib.texi: Escape @.
33877
33878 2007-04-03  James Youngman  <jay@gnu.org>
33879         and Paul Eggert  <eggert@cs.ucla.edu>
33880
33881         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
33882         birthtime on all systems that have birthtime, not just those which
33883         use st_birthtimensec rather than st_birthtim.  Putting zero in
33884         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
33885         that the birth time is not available for files on an NFS mount.
33886
33887 2007-04-03  Simon Josefsson  <simon@josefsson.org>
33888
33889         * modules/memxor: Move back from crypto/, suggested by Bruno.
33890         * modules/crypto/hmac-sha1: Fix memxor dependency.
33891
33892         * modules/crypto/gc: Moved from ../.
33893
33894 2007-04-02  Eric Blake  <ebb9@byu.net>
33895
33896         * lib/ldexpl.c (includes): Avoid libm.
33897
33898         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
33899
33900 2007-04-02  Bruno Haible  <bruno@clisp.org>
33901
33902         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
33903         on IRIX.
33904
33905 2007-04-02  Bruno Haible  <bruno@clisp.org>
33906
33907         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
33908         x86 or x86_64 platforms running MacOS X.
33909         Reported by Ryan Schmidt <@ryandesign.com>.
33910
33911 2007-04-02  Bruno Haible  <bruno@clisp.org>
33912
33913         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
33914         i386.
33915
33916 2007-04-01  Simon Josefsson  <simon@josefsson.org>
33917
33918         * modules/crypto/arcfour: Moved from ../.
33919         * modules/crypto/arcfour-tests: Moved from ../.
33920         * modules/crypto/arctwo: Moved from ../.
33921         * modules/crypto/arctwo-tests: Moved from ../.
33922         * modules/crypto/des: Moved from ../.
33923         * modules/crypto/des-tests: Moved from ../.
33924         * modules/crypto/gc-arcfour: Moved from ../.
33925         * modules/crypto/gc-arcfour-tests: Moved from ../.
33926         * modules/crypto/gc-arctwo: Moved from ../.
33927         * modules/crypto/gc-arctwo-tests: Moved from ../.
33928         * modules/crypto/gc-des: Moved from ../.
33929         * modules/crypto/gc-des-tests: Moved from ../.
33930         * modules/crypto/gc-hmac-md5: Moved from ../.
33931         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
33932         * modules/crypto/gc-hmac-sha1: Moved from ../.
33933         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
33934         * modules/crypto/gc-md2: Moved from ../.
33935         * modules/crypto/gc-md2-tests: Moved from ../.
33936         * modules/crypto/gc-md4: Moved from ../.
33937         * modules/crypto/gc-md4-tests: Moved from ../.
33938         * modules/crypto/gc-md5: Moved from ../.
33939         * modules/crypto/gc-md5-tests: Moved from ../.
33940         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
33941         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
33942         * modules/crypto/gc-random: Moved from ../.
33943         * modules/crypto/gc-rijndael: Moved from ../.
33944         * modules/crypto/gc-rijndael-tests: Moved from ../.
33945         * modules/crypto/gc-sha1: Moved from ../.
33946         * modules/crypto/gc-sha1-tests: Moved from ../.
33947         * modules/crypto/gc-tests: Moved from ../.
33948         * modules/crypto/hmac-md5: Moved from ../.
33949         * modules/crypto/hmac-md5-tests: Moved from ../.
33950         * modules/crypto/hmac-sha1: Moved from ../.
33951         * modules/crypto/hmac-sha1-tests: Moved from ../.
33952         * modules/crypto/md2: Moved from ../.
33953         * modules/crypto/md2-tests: Moved from ../.
33954         * modules/crypto/md4: Moved from ../.
33955         * modules/crypto/md4-tests: Moved from ../.
33956         * modules/crypto/md5: Moved from ../.
33957         * modules/crypto/md5-tests: Moved from ../.
33958         * modules/crypto/memxor: Moved from ../.
33959         * modules/crypto/rijndael: Moved from ../.
33960         * modules/crypto/rijndael-tests: Moved from ../.
33961         * modules/crypto/sha1: Moved from ../.
33962
33963 2007-03-30  James Youngman  <jay@gnu.org>
33964
33965         * tests/test-stat-time.c (prepare_test): use chmod() rather than
33966         rename() to change the ctime of a file (because ctime is unaffected
33967         by rename on jfs2 on AIX 5.1).
33968         (main): Start by doing cleanup, in case a previous run failed leaving
33969         test files behind.
33970
33971 2007-03-31  Bruno Haible  <bruno@clisp.org>
33972
33973         Support old proprietary implementations of iconv.
33974         * modules/iconv_open: New file.
33975         * lib/iconv_.h: New file.
33976         * m4/iconv_h.m4: New file.
33977         * lib/iconv_open.c: New file.
33978         * lib/iconv_open-aix.gperf: New file.
33979         * lib/iconv_open-hpux.gperf: New file.
33980         * lib/iconv_open-irix.gperf: New file.
33981         * lib/iconv_open-osf.gperf: New file.
33982         * m4/iconv_open.m4: New file.
33983         * modules/linebreak (Depends-on): Add iconv_open.
33984         * modules/striconv (Depends-on): Likewise.
33985         * modules/striconveh (Depends-on): Likewise.
33986         * modules/unicodeio (Depends-on): Likewise.
33987         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
33988         (iconv_t)(-1).
33989         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
33990         conversion if cd is (iconv_t)(-1).
33991         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
33992         is not possible.
33993
33994 2007-03-31  Bruno Haible  <bruno@clisp.org>
33995
33996         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
33997         work on Solaris either. Protect also second use of "autodetect_jp".
33998
33999 2007-03-31  Bruno Haible  <bruno@clisp.org>
34000
34001         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
34002         the function is not present.
34003
34004 2007-03-31  Bruno Haible  <bruno@clisp.org>
34005
34006         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
34007         the function is not present.
34008
34009 2007-03-31  Bruno Haible  <bruno@clisp.org>
34010
34011         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
34012         a bug in HP-UX iconv_open().
34013
34014 2007-03-31  Bruno Haible  <bruno@clisp.org>
34015
34016         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
34017         (Mathematics <math.h>): New section, add fpieee.
34018         (Input/output <stdio.h>): Add fseterr.
34019         (Mathematics <math.h>): New section, add printf-frexp.
34020         (Container data structures): Add sublist.
34021         (Core language properties): Add fpucw, inline.
34022         (Functions for greatest-width integer types <inttypes.h>): Add
34023         imaxabs, imaxdiv, inttypes.
34024         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
34025         isnanl-nolibm, ldexp.
34026         (Mathematics <math.h>): New section, add printf-frexpl.
34027         (Support for systems lacking POSIX:2001): Add fprintf-posix,
34028         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
34029         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
34030         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
34031         (Unicode string functions): Add unistr/u*-mbtoucr.
34032         (Java): Add javacomp-script, javaexec-script.
34033         (C#): Add csharpcomp-script, csharpexec-script.
34034         (Support for building libraries and executables): Add havelib,
34035         relocatable-*.
34036         (Support for maintaining and releasing projects): Renamed from
34037         'Support for maintaining and release projects'. Add announce-gen.
34038
34039 2007-03-31  Bruno Haible  <bruno@clisp.org>
34040
34041         * README: Talk primarily about git.
34042         (git and CVS): Renamed from CVS.
34043         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
34044         gnulib is available through git.
34045         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
34046
34047 2007-03-30  Bruno Haible  <bruno@clisp.org>
34048
34049         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
34050         * lib/poll_.h: Likewise.
34051         * lib/stat_.h: Likewise.
34052         * lib/sys_time_.h: Likewise.
34053         * lib/sysexit_.h: Likewise.
34054         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
34055         * lib/stdbool_.h: Likewise.
34056         * lib/byteswap_.h: Add double-inclusion guard.
34057
34058 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
34059
34060         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
34061
34062 2007-03-30  Karl Berry  <karl@gnu.org>
34063
34064         * config/srclist-update: double space after USA in the license
34065         substitution, since that's how it's usually (?) written.
34066
34067 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
34068
34069         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
34070         reported by Bruno Haible.
34071
34072 2007-03-29  Bruno Haible  <bruno@clisp.org>
34073
34074         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
34075         a bug in AIX iconv().
34076
34077 2007-03-29  Bruno Haible  <bruno@clisp.org>
34078
34079         * modules/ldexpl-tests: New file.
34080         * tests/test-ldexpl.c: New file.
34081
34082 2007-03-29  Bruno Haible  <bruno@clisp.org>
34083
34084         * lib/ldexpl.c: Include fpucw.h.
34085         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
34086         multiplication.
34087         * modules/ldexpl (Depends-on): Add fpucw.
34088
34089 2007-03-29  Bruno Haible  <bruno@clisp.org>
34090
34091         * modules/ldexpl: New file.
34092         * m4/ldexpl.m4: New file.
34093         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
34094         set.
34095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
34096         REPLACE_LDEXPL.
34097         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
34098         REPLACE_LDEXPL.
34099         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34100         gl_FUNC_LDEXPL_WORKS.
34101         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
34102         * modules/mathl (Files): Remove lib/ldexpl.c.
34103         (Depends-on): Add ldexpl.
34104
34105 2007-03-29  Bruno Haible  <bruno@clisp.org>
34106
34107         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
34108
34109 2007-03-29  Bruno Haible  <bruno@clisp.org>
34110
34111         * tests/test-striconveh.c (main): Don't assume that a direct conversion
34112         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
34113         and possibly also HP-UX.
34114         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
34115         work on AIX, IRIX, HP-UX, OSF/1.
34116         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
34117         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
34118         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
34119         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
34120         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
34121         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
34122
34123 2007-03-29  Bruno Haible  <bruno@clisp.org>
34124
34125         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
34126
34127 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
34128
34129         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
34130         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
34131
34132 2007-03-29  Eric Blake  <ebb9@byu.net>
34133
34134         * lib/acl-internal.h: Remove redundant include.
34135         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
34136         Cygwin when a file is locked.
34137
34138 2007-03-29  Bruno Haible  <bruno@clisp.org>
34139
34140         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
34141         file.
34142         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
34143
34144 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
34145
34146         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
34147         try to remove a parent directory if the child couldn't be removed
34148         (except for the first rmdir, which could fail because the child
34149         doesn't exist).  Problem reported by Jeff Blaine in
34150         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
34151
34152 2007-03-28  Bruno Haible  <bruno@clisp.org>
34153
34154         * lib/striconveh.c (utf8conv_carefully): New function.
34155         (mem_cd_iconveh_internal): Invoke it.
34156
34157 2007-03-28  Bruno Haible  <bruno@clisp.org>
34158
34159         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
34160         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
34161         input.
34162         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
34163         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
34164         unistr/u8-uctomb.
34165
34166 2007-03-28  Bruno Haible  <bruno@clisp.org>
34167
34168         * modules/unistr/u8-mbtoucr: New file.
34169         * lib/unistr/u8-mbtoucr.c: New file.
34170         * modules/unistr/u16-mbtoucr: New file.
34171         * lib/unistr/u16-mbtoucr.c: New file.
34172         * modules/unistr/u16-mbtoucr: New file.
34173         * lib/unistr/u16-mbtoucr.c: New file.
34174         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
34175
34176 2007-03-27  Simon Josefsson  <simon@josefsson.org>
34177             Bruno Haible  <bruno@clisp.org>
34178
34179         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
34180         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
34181         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
34182
34183         * m4/stdio_h.m4: Add stubs for vasprintf too.
34184
34185         * modules/stdio: Support vasprintf in sed command.
34186
34187         * modules/vasprintf: Depend on stdio for prototypes.  Remove
34188         vasprintf.h.  Add stdio module indicator.
34189
34190         * lib/stdio_.h: Declare asprintf and vasprintf, based on
34191         vasprintf.h.
34192
34193         * lib/vasprintf.h: File removed.
34194
34195         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
34196         * lib/vasprintf.c: Ditto.
34197         * lib/xvasprintf.c: Ditto.
34198         * tests/test-vasprintf-posix.c: Ditto.
34199         * tests/test-vasprintf.c: Ditto.
34200
34201 2007-03-27  Bruno Haible  <bruno@clisp.org>
34202
34203         Make vasnprintf multithread-safe.
34204         * lib/vasnprintf.c (decimal_point_char): New function.
34205         (VASNPRINTF): Use it.
34206         Suggested by Simon Josefsson.
34207
34208 2007-03-27  Eric Blake  <ebb9@byu.net>
34209
34210         Support sub-second birthtime on cygwin.
34211         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
34212         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
34213         (get_stat_birthtime): Also work with st_birthtim.
34214
34215 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
34216
34217         * lib/stat-time.h (USE_BIRTHTIME): Remove.
34218         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
34219         (get_stat_birthtime_ns): Do not try to use "spare" fields.
34220         (get_stat_birthtime_ns): Simplify compile-time tests.
34221         (get_stat_birthtime): Change the API to look like
34222         get_stat_mtime etc., except return a negative tv_nsec on error.
34223         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
34224         Don't check for "spare" fields.
34225         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
34226         or for struct stat.st_birthtime, as these tests aren't used.
34227         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
34228
34229 2007-03-27  Bruno Haible  <bruno@clisp.org>
34230
34231         * lib/stat-time.h: Include <sys/stat.h>.
34232
34233 2007-03-27  James Youngman  <jay@gnu.org>
34234
34235         * lib/stat-time.h (get_stat_birthtime): New function for
34236           retrieving st_birthtime as provided by UFS2 (hence *BSD).
34237         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
34238           and its variants.
34239         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
34240         * modules/stat-time-test: New file.
34241         * tests/test-stat-time.c: New test, devised by Bruno Haible.
34242
34243 2007-03-26  Bruno Haible  <bruno@clisp.org>
34244
34245         Better support of signalling NaNs.
34246         * lib/atanl.c: Include isnanl.h.
34247         (atanl): Perform test for NaN at the beginning of the function and
34248         through a call to isnanl.
34249         * lib/cosl.c: Include isnanl.h.
34250         (cosl): Perform test for NaN at the beginning of the function and
34251         through a call to isnanl.
34252         * lib/ldexpl.c: Include isnanl.h.
34253         (ldexpl): Perform test for NaN through a call to isnanl.
34254         * lib/logl.c: Include isnanl.h.
34255         (logl): Perform test for NaN at the beginning of the function and
34256         through a call to isnanl.
34257         * lib/sinl.c: Include isnanl.h.
34258         (sinl): Perform test for NaN at the beginning of the function and
34259         through a call to isnanl.
34260         * lib/sqrtl.c: Include isnanl.h.
34261         (sqrtl): Perform test for NaN at the beginning of the function and
34262         through a call to isnanl.
34263         * lib/tanl.c: Include isnanl.h.
34264         (tanl): Perform test for NaN at the beginning of the function and
34265         through a call to isnanl.
34266         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
34267         * modules/mathl (Depends-on): Add isnanl.
34268
34269 2007-03-26  Eric Blake  <ebb9@byu.net>
34270
34271         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
34272         regression in logic sense of previous patch.
34273
34274 2007-03-26  Bruno Haible  <bruno@clisp.org>
34275
34276         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
34277         unportable shell command "if ! ...".
34278         Reported by Ralf Wildenhues.
34279
34280 2007-03-25  Bruno Haible  <bruno@clisp.org>
34281
34282         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
34283         <sysexits.h> file, and only add EX_CONFIG.
34284         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
34285         absolute file name and whether it is sufficient. Substitute also
34286         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
34287         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
34288         ABSOLUTE_SYSEXITS_H into sysexits.h.
34289
34290 2007-03-25  Bruno Haible  <bruno@clisp.org>
34291
34292         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
34293         hints is NULL.
34294
34295 2007-03-25  Bruno Haible  <bruno@clisp.org>
34296
34297         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
34298         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
34299
34300 2007-03-25  Bruno Haible  <bruno@clisp.org>
34301
34302         * lib/vasnprintf.c: Include langinfo.h.
34303         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
34304         multithread-safe.
34305         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
34306         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
34307         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34308         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34309         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34310         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34311         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34312         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
34313         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34314         Reported by Simon Josefsson.
34315
34316 2007-03-25  Bruno Haible  <bruno@clisp.org>
34317
34318         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
34319         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
34320         * modules/vasnprintf (Depends-on): Add stdint.
34321
34322 2007-03-25  Bruno Haible  <bruno@clisp.org>
34323
34324         * modules/fpieee: New file.
34325         * m4/fpieee.m4: New file.
34326         * modules/isnan-nolibm (Depends-on): Add fpieee.
34327         * modules/isnanl-nolibm (Depends-on): Add fpieee.
34328         * modules/isnanl (Depends-on): Add fpieee.
34329
34330 2007-03-25  Bruno Haible  <bruno@clisp.org>
34331
34332         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
34333
34334 2007-03-25  Bruno Haible  <bruno@clisp.org>
34335
34336         Avoid test failures on IRIX 6.5.
34337         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
34338         (main): Use it.
34339         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
34340         macros.
34341         (main): Use them.
34342
34343 2007-03-25  Bruno Haible  <bruno@clisp.org>
34344
34345         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
34346         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
34347         exists but doesn't work.
34348         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
34349         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
34350         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
34351         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
34352
34353 2007-03-25  Bruno Haible  <bruno@clisp.org>
34354
34355         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
34356         returns inf. Needed on IRIX 6.5.
34357
34358 2007-03-25  Bruno Haible  <bruno@clisp.org>
34359
34360         * tests/test-frexpl.c: Include isnanl-nolibm.h.
34361         (main): Use isnanl instead of x != x idiom.
34362         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
34363
34364         * tests/test-frexp.c: Include isnan.h.
34365         (main): Use isnan instead of x != x idiom.
34366         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
34367
34368 2007-03-25  Bruno Haible  <bruno@clisp.org>
34369
34370         * tests/test-frexp.c (NaN): New function/macro.
34371         (main): Use it instead of 0.0 / 0.0.
34372         * tests/test-isnan.c (NaN): New function/macro.
34373         (main): Use it instead of 0.0 / 0.0.
34374         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
34375         (test_function): Use it instead of 0.0 / 0.0.
34376         * tests/test-vasprintf-posix.c (NaN): New function/macro.
34377         (test_function): Use it instead of 0.0 / 0.0.
34378         * tests/test-snprintf-posix.h (NaN): New function/macro.
34379         (test_function): Use it instead of 0.0 / 0.0.
34380         * tests/test-sprintf-posix.h (NaN): New function/macro.
34381         (test_function): Use it instead of 0.0 / 0.0.
34382         * tests/test-fprintf-posix.h (NaN): New function/macro.
34383         (test_function): Use it instead of 0.0 / 0.0.
34384         * tests/test-printf-posix.h (NaN): New function/macro.
34385         (test_function): Use it instead of 0.0 / 0.0.
34386
34387         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
34388
34389 2007-03-25  Bruno Haible  <bruno@clisp.org>
34390
34391         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
34392
34393 2007-03-25  Bruno Haible  <bruno@clisp.org>
34394
34395         * lib/regexec.c (merge_state_with_log): Make static.
34396
34397 2007-03-25  Bruno Haible  <bruno@clisp.org>
34398
34399         * lib/trigl.c (kernel_rem_pio2): Make static.
34400
34401 2007-03-25  Bruno Haible  <bruno@clisp.org>
34402
34403         * lib/sincosl.c (sincosl_table): Make static.
34404
34405 2007-03-25  Bruno Haible  <bruno@clisp.org>
34406
34407         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
34408         if the compiler does not support C99.
34409
34410 2007-03-25  Bruno Haible  <bruno@clisp.org>
34411
34412         * modules/time (Makefile.am): Ensure all rule action lines start with a
34413         tab.
34414
34415 2007-03-24  Bruno Haible  <bruno@clisp.org>
34416
34417         * modules/tsearch-tests: New file.
34418         * tests/test-tsearch.sh: New file.
34419         * tests/test-tsearch.c: New file, mostly copied from glibc.
34420
34421         * modules/search-tests: New file.
34422         * tests/test-search.c: New file.
34423
34424         * modules/search: New file.
34425         * lib/search_.h: New file, incorporating lib/tsearch.h.
34426         * m4/search_h.m4: New file.
34427         * lib/tsearch.h: Remove file.
34428         * lib/tsearch.c: Include search.h instead of tsearch.h.
34429         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
34430         HAVE_TSEARCH.
34431         * modules/tsearch (Files): Remove lib/tsearch.h.
34432         (Depends-on): Add search.
34433         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
34434         (Include): Change tsearch.h into search.h.
34435
34436 2007-03-24  Bruno Haible  <bruno@clisp.org>
34437
34438         * modules/fpucw: New file.
34439         * lib/fpucw.h: New file.
34440         * lib/frexp.c: Include fpucw.h.
34441         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
34442         (FUNC): Use them.
34443         * lib/printf-frexp.c: Include fpucw.h.
34444         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
34445         (FUNC): Use them.
34446         * lib/vasnprintf.c: Include fpucw.h.
34447         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
34448         'long double' calculations.
34449         * tests/test-frexpl.c: Include fpucw.h.
34450         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
34451         * tests/test-printf-frexpl.c: Include fpucw.h.
34452         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
34453         * modules/frexpl (Depends-on): Add fpucw.
34454         * modules/printf-frexpl (Depends-on): Likewise.
34455         * modules/fprintf-posix (Depends-on): Likewise.
34456         * modules/snprintf-posix (Depends-on): Likewise.
34457         * modules/sprintf-posix (Depends-on): Likewise.
34458         * modules/vasnprintf-posix (Depends-on): Likewise.
34459         * modules/vasprintf-posix (Depends-on): Likewise.
34460         * modules/vfprintf-posix (Depends-on): Likewise.
34461         * modules/vsnprintf-posix (Depends-on): Likewise.
34462         * modules/vsprintf-posix (Depends-on): Likewise.
34463         * modules/frexpl-tests (Depends-on): Likewise.
34464         * modules/printf-frexpl-tests (Depends-on): Likewise.
34465
34466 2007-03-24  Bruno Haible  <bruno@clisp.org>
34467
34468         * lib/float+.h: New file.
34469         * lib/isnan.c: Include float+.h.
34470         (SIZE): New macro.
34471         (FUNC): Compare only SIZE bytes of the value.
34472         * lib/vasnprintf.c: Include float+.h.
34473         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
34474         SIZEOF_LDBL or SIZEOF_DBL bytes.
34475         * modules/isnan-nolibm (Files): Add lib/float+.h.
34476         * modules/isnanl-nolibm (Files): Add lib/float+.h.
34477         * modules/isnanl (Files): Add lib/float+.h.
34478         * modules/vasnprintf (Files): Add lib/float+.h.
34479
34480 2007-03-24  Bruno Haible  <bruno@clisp.org>
34481
34482         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
34483         include isnanl-nolibm.h.
34484
34485 2007-03-24  Bruno Haible  <bruno@clisp.org>
34486
34487         * tests/test-read-file.c (main): Don't produce spurious output for
34488         expected situations. Make the test fail if it encountered unexpected
34489         results.
34490
34491 2007-03-24  Bruno Haible  <bruno@clisp.org>
34492
34493         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
34494         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
34495
34496 2007-03-24  Bruno Haible  <bruno@clisp.org>
34497
34498         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
34499
34500 2007-03-24  Bruno Haible  <bruno@clisp.org>
34501
34502         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
34503         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
34504
34505         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
34506         * modules/utf8-ucs4: Turn into a symbolic link to module
34507         unistr/u8-mbtouc.
34508
34509         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
34510         utf8-ucs4-unsafe.
34511         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
34512         unistr/u8-mbtouc-unsafe.
34513
34514         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
34515         * modules/utf16-ucs4: Turn into a symbolic link to module
34516         unistr/u16-mbtouc.
34517
34518         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
34519         utf16-ucs4-unsafe.
34520         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
34521         unistr/u16-mbtouc-unsafe.
34522
34523         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
34524         * modules/ucs4-utf8: Turn into a symbolic link to module
34525         unistr/u8-ubtomb.
34526
34527         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
34528         * modules/ucs4-utf16: Turn into a symbolic link to module
34529         unistr/u16-ubtomb.
34530
34531 2007-03-24  Bruno Haible  <bruno@clisp.org>
34532
34533         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
34534         Enable the function only if HAVE_INLINE.
34535         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
34536         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
34537         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
34538         Enable the function only if HAVE_INLINE.
34539         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
34540         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
34541         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
34542         Enable the function only if HAVE_INLINE.
34543         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
34544         Enable the function only if HAVE_INLINE.
34545         * modules/utf8-ucs4: Update.
34546         * modules/utf8-ucs4-unsafe: Update.
34547         * modules/utf16-ucs4: Update.
34548         * modules/utf16-ucs4-unsafe: Update.
34549         * modules/ucs4-utf8: Update.
34550         * modules/ucs4-utf16: Update.
34551
34552 2007-03-24  Bruno Haible  <bruno@clisp.org>
34553
34554         * lib/utf8-ucs4.h: Remove file.
34555         * lib/utf8-ucs4-unsafe.h: Remove file.
34556         * lib/utf16-ucs4.h: Remove file.
34557         * lib/utf16-ucs4-unsafe.h: Remove file.
34558         * lib/ucs4-utf8.h: Remove file.
34559         * lib/ucs4-utf16.h: Remove file.
34560         * lib/unistr.h: Include their previous contents.
34561         * m4/utf-ucs4.m4: Remove file.
34562         * m4/ucs4-utf.m4: Remove file.
34563         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
34564         (Depends-on): Add unistr/base.
34565         (configure.ac): Remove gl_UTF_UCS4.
34566         (Makefile.am): Update.
34567         (Include): Change to unistr.h.
34568         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
34569         (Depends-on): Add unistr/base.
34570         (configure.ac): Remove gl_UTF_UCS4.
34571         (Makefile.am): Update.
34572         (Include): Change to unistr.h.
34573         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
34574         (Depends-on): Add unistr/base.
34575         (configure.ac): Remove gl_UTF_UCS4.
34576         (Makefile.am): Update.
34577         (Include): Change to unistr.h.
34578         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
34579         (Depends-on): Add unistr/base.
34580         (configure.ac): Remove gl_UTF_UCS4.
34581         (Makefile.am): Update.
34582         (Include): Change to unistr.h.
34583         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
34584         (Depends-on): Add unistr/base.
34585         (configure.ac): Remove gl_UCS4_UTF.
34586         (Makefile.am): Update.
34587         (Include): Change to unistr.h.
34588         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
34589         (Depends-on): Add unistr/base.
34590         (configure.ac): Remove gl_UCS4_UTF.
34591         (Makefile.am): Update.
34592         (Include): Change to unistr.h.
34593         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
34594         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
34595         utf8-ucs4-unsafe.h.
34596         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
34597         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
34598         utf16-ucs4-unsafe.h.
34599         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
34600         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
34601         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
34602         * lib/unistr/u8-strchr.c: Likewise.
34603         * lib/unistr/u8-strrchr.c: Likewise.
34604         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
34605         * lib/unistr/u16-strchr.c: Likewise.
34606         * lib/unistr/u16-strrchr.c: Likewise.
34607         * lib/striconveh.c: Update.
34608         * lib/linebreak.c: Update.
34609
34610 2007-03-24  Bruno Haible  <bruno@clisp.org>
34611
34612         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
34613         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
34614
34615 2007-03-22  Bruno Haible  <bruno@clisp.org>
34616
34617         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
34618
34619 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
34620
34621         * MODULES.html.sh (File system functions): New module write-any-file.
34622         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
34623         * m4/write-any-file.m4: New files.
34624
34625 2007-03-23  Eric Blake  <ebb9@byu.net>
34626
34627         * gnulib-tool: Rearrange space-tab sequences, since some editors
34628         like to eat them.
34629
34630 2007-03-23  Eric Blake  <ebb9@byu.net>
34631
34632         * lib/version-etc.c (version_etc_va): Update license wording to
34633         be more concise.  Recommended by Richard Stallman.
34634
34635 2007-03-22  Bruno Haible  <bruno@clisp.org>
34636
34637         * lib/poll.c (MSG_PEEK): New fallback definition.
34638
34639 2007-03-22  Bruno Haible  <bruno@clisp.org>
34640
34641         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
34642         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
34643         (main): Update.
34644         Fixes a compilation error on BeOS.
34645
34646 2007-03-22  Bruno Haible  <bruno@clisp.org>
34647
34648         * modules/frexpl-tests: New file.
34649         * tests/test-frexpl.c: New file.
34650
34651         * modules/frexpl: New file.
34652         * m4/frexpl.m4: New file.
34653         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
34654         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
34655         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
34656         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
34657         (Depends-on): Add frexpl. Remove isnanl-nolibm.
34658         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
34659
34660 2007-03-22  Bruno Haible  <bruno@clisp.org>
34661
34662         * lib/frexpl.c: Share code with lib/frexp.c.
34663         * modules/mathl (Files): Add lib/frexp.c.
34664         (Depends-on): Add isnanl-nolibm.
34665
34666 2007-03-22  Bruno Haible  <bruno@clisp.org>
34667
34668         * modules/printf-frexp (Files): Add m4/frexp.m4.
34669         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
34670         only if the found frexp function actually works.
34671
34672 2007-03-22  Bruno Haible  <bruno@clisp.org>
34673
34674         * lib/frexp.c: Remove older implementation that uses divisions.
34675
34676 2007-03-21  Bruno Haible  <bruno@clisp.org>
34677
34678         * modules/frexp-tests: New file.
34679         * tests/test-frexp.c: New file.
34680
34681         * modules/frexp: New file.
34682         * lib/frexp.c: New file.
34683         * m4/frexp.m4: New file.
34684         * lib/math_.h (frexp): New declaration.
34685         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
34686         REPLACE_FREXP.
34687         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
34688
34689 2007-03-21  Bruno Haible  <bruno@clisp.org>
34690
34691         * modules/isnanl-tests: New file.
34692         * tests/test-isnanl.c: New file.
34693
34694         * modules/isnanl: New file.
34695         * lib/isnanl.h: New file.
34696         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
34697         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
34698         gl_FUNC_ISNANL_WORKS.
34699         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
34700         New macros.
34701
34702 2007-03-21  Bruno Haible  <bruno@clisp.org>
34703
34704         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
34705         lib/isnanl.h.
34706         (Include): Update.
34707         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
34708         * lib/vasnprintf.c: Update.
34709         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
34710         tests/test-isnanl.h, remove tests/test-isnanl.c.
34711         (Makefile.am): Update.
34712         * tests/test-isnanl-nolibm.c: New file.
34713         * tests/test-isnanl.h: New file.
34714         * tests/test-isnanl.c: Remove file.
34715
34716 2007-03-21  Jim Meyering  <jim@meyering.net>
34717
34718         When trying to open ".", treat ESTALE like EACCES.
34719         * lib/savewd.c (savewd_save): Resort to forking not just upon
34720         failure with EACCES, but also when errno is ESTALE.
34721
34722 2007-03-20  Bruno Haible  <bruno@clisp.org>
34723
34724         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
34725         Needed on AIX 5.1. Reported by Matthew Woehlke.
34726
34727 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
34728
34729         Suggestions by Bruno Haible:
34730         * lib/acl-internal.h: Include "gettext.h" rather than rolling
34731         our own.
34732         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
34733         * modules/acl (Depends-on): Add gettext.
34734
34735 2007-03-19  Bruno Haible  <bruno@clisp.org>
34736
34737         * modules/iconvme: Remove file.
34738         * lib/iconvme.h: Remove file.
34739         * lib/iconvme.c: Remove file.
34740         * m4/iconvme.m4: Remove file.
34741
34742 2007-03-19  Bruno Haible  <bruno@clisp.org>
34743
34744         * doc/relocatable-maint.texi: Break long shell script line.
34745         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
34746
34747 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
34748
34749         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
34750         handle file_has_acl.
34751         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
34752         * lib/acl.c: Move header inclusions and related macro defns into
34753         lib/acl-internal.h.
34754         (S_ISLNK): Remove defn, since that's now done for us.
34755         (file_has_acl): Move to lib/file-has-acl.c.
34756         Call acl_trivial if available.  This is the crucial part of the fix.
34757         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
34758         shared within the library.  Rewrite a bit, partly to make it compatible
34759         with the GNU coding style.
34760         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
34761         Remove unnecessary double-quotes.
34762         Don't test for acl_to_text; the build will catch that.
34763         Replace acl_entries if it doesn't exist and it is needed.
34764         Check for -lsec and acl_trivial (as used on Solaris 10).
34765         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
34766         lib/file-has-acl.c.
34767         (Depends-on): Add sys_stat, for S_ISLNK.
34768
34769 2007-03-19  Ben Pfaff  <blp@gnu.org>
34770
34771         * doc/gnulib.texi: Fix typos.
34772         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
34773
34774 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
34775
34776         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
34777         If size is zero here, buf must be zero.
34778
34779 2007-03-19  Simon Josefsson  <simon@josefsson.org>
34780
34781         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
34782         <bruno@clisp.org>.
34783
34784 2007-03-18  Bruno Haible  <bruno@clisp.org>
34785
34786         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
34787         Suggested by Eric Blake.
34788
34789 2007-03-18  Ben Pfaff  <blp@gnu.org>
34790
34791         * doc/relocatable.texi: Recommend using as prefix a directory
34792         that does not exist and will never be created.  Based on
34793         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
34794         and others.
34795
34796 2007-03-17  Bruno Haible  <bruno@clisp.org>
34797
34798         * lib/fchownat.c: Include lchown.h.
34799
34800 2007-03-17  Bruno Haible  <bruno@clisp.org>
34801
34802         Fix endless loop when the given allocated size was > INT_MAX.
34803         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
34804         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
34805         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
34806         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
34807         * lib/sprintf.c (sprintf): Likewise.
34808
34809 2007-03-17  Bruno Haible  <bruno@clisp.org>
34810
34811         * tests/test-argp-2.sh (func_compare): Output a context diff.
34812
34813 2007-03-17  Bruno Haible  <bruno@clisp.org>
34814
34815         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
34816         locale's decimal-point character.
34817
34818 2007-03-17  Bruno Haible  <bruno@clisp.org>
34819
34820         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
34821         before comparing it. Needed because on some platforms (e.g. x86) a
34822         'long double' occupies less bytes than sizeof (long double).
34823
34824 2007-03-17  Bruno Haible  <bruno@clisp.org>
34825
34826         * tests/test-crc.c (main): Make printf statements 64-bit clean.
34827         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
34828         * tests/test-getaddrinfo.c (simple): Likewise.
34829         * tests/test-read-file.c (main): Likewise.
34830
34831 2007-03-17  Bruno Haible  <bruno@clisp.org>
34832
34833         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
34834
34835 2007-03-17  Bruno Haible  <bruno@clisp.org>
34836
34837         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
34838         unused variable.
34839
34840 2007-03-17  Bruno Haible  <bruno@clisp.org>
34841
34842         * tests/test-c-strcasecmp.c: Include c-strcase.h.
34843         * tests/test-c-strncasecmp.c: Likewise.
34844
34845 2007-03-17  Bruno Haible  <bruno@clisp.org>
34846
34847         * modules/stdlib (Depends-on): Add unistd.
34848         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
34849         Needed for MacOS X 10.3.
34850
34851 2007-03-17  Bruno Haible  <bruno@clisp.org>
34852
34853         * lib/unistr/u-strdup.h: Include <stdlib.h>.
34854
34855 2007-03-17  Bruno Haible  <bruno@clisp.org>
34856
34857         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
34858
34859 2007-03-17  Bruno Haible  <bruno@clisp.org>
34860
34861         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
34862         to reflect files copied from gnulib (with or without modifications).
34863         Suggested by Jim Meyering.
34864
34865 2007-03-17  Eric Blake  <ebb9@byu.net>
34866
34867         * NEWS: Document stdlib change from 2007-02-18.
34868
34869 2007-03-17  Jim Meyering  <jim@meyering.net>
34870
34871         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
34872         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
34873         someone uses a name containing shell meta-characters.
34874         Reported by Alfred M. Szmidt.
34875
34876         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
34877
34878 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
34879
34880         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
34881         and copy gettext configuration files only if configure.ac contains
34882         a use of AM_GNU_GETTEXT_VERSION.
34883
34884 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
34885
34886         * build-aux/bootstrap (gnulib_name): New variable.
34887         (gnulib_tool_options): Use it.
34888
34889 2007-03-13  Simon Josefsson  <simon@josefsson.org>
34890
34891         * tests/test-des.c: Use new namespace.
34892
34893 2007-03-15  Bruno Haible  <bruno@clisp.org>
34894
34895         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
34896         Reported by James Youngman <jay@gnu.org>.
34897
34898 2007-03-15  Bruno Haible  <bruno@clisp.org>
34899
34900         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
34901         declared prototype. Needed with cc on OSF/1 5.1.
34902
34903 2007-03-15  Bruno Haible  <bruno@clisp.org>
34904
34905         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
34906         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
34907         (struct gl_list_implementation): Add dispose_fn argument to the
34908         'create_empty', 'create' methods.
34909         (struct gl_list_impl_base): Add field 'dispose_fn'.
34910         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
34911         argument.
34912         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
34913         dispose_fn argument.
34914         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
34915         dispose_fn on the dropped values.
34916         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
34917         dispose_fn argument.
34918         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
34919         dropped values.
34920         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
34921         (gl_tree_remove_node): Call dispose_fn on the dropped value.
34922         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
34923         (gl_tree_remove_node): Call dispose_fn on the dropped value.
34924         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
34925         argument.
34926         (gl_tree_list_free): Call dispose_fn on the dropped values.
34927         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
34928         the dropped values.
34929         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
34930         Add dispose_fn argument.
34931         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
34932         Call dispose_fn on the dropped values.
34933         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
34934         Add dispose_fn argument.
34935         (gl_sublist_create): Initialize the 'dispose_fn' field.
34936         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
34937         * tests/test-array_list.c (main): Update.
34938         * tests/test-carray_list.c (main): Update.
34939         * tests/test-avltree_list.c (main): Update.
34940         * tests/test-rbtree_list.c (main): Update.
34941         * tests/test-avltreehash_list.c (main): Update.
34942         * tests/test-rbtreehash_list.c (main): Update.
34943         * tests/test-linked_list.c (main): Update.
34944         * tests/test-linkedhash_list.c (main): Update.
34945         * tests/test-array_oset.c (main): Update.
34946
34947 2007-03-15  Bruno Haible  <bruno@clisp.org>
34948
34949         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
34950         (gl_oset_create_empty): Add dispose_fn argument.
34951         (struct gl_oset_implementation): Add dispose_fn argument to
34952         'create_empty' method.
34953         (struct gl_oset_impl_base): Add dispose_fn field.
34954         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
34955         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
34956         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
34957         values.
34958         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
34959         (gl_tree_oset_free): Call dispose_fn on the dropped values.
34960         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
34961         dropped value.
34962         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
34963         dropped value.
34964         * tests/test-array_oset.c (main): Update.
34965         * tests/test-avltree_oset.c (main): Update.
34966         * tests/test-rbtree_oset.c (main): Update.
34967         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
34968
34969 2007-03-13  Bruno Haible  <bruno@clisp.org>
34970
34971         * tests/test-stdbool.c (i): Update after last patch.
34972
34973 2007-03-12  Bruno Haible  <bruno@clisp.org>
34974
34975         * lib/quotearg.c: Include <wctype.h> early, before the definition of
34976         the iswprint macro. Needed on Solaris 2.5.1.
34977
34978 2007-03-12  Bruno Haible  <bruno@clisp.org>
34979
34980         * tests/test-printf-frexp.c (main): Declare x as volatile.
34981
34982 2007-03-12  Simon Josefsson  <simon@josefsson.org>
34983
34984         * doc/gnulib.texi (Build robot for gnulib): New section.
34985
34986 2007-03-12  Jim Meyering  <jim@meyering.net>
34987
34988         * build-aux/bootstrap: New file.
34989         * build-aux/bootstrap.conf: New file, from coreutils.
34990
34991 2007-03-11  Bruno Haible  <bruno@clisp.org>
34992
34993         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
34994
34995 2007-03-12  Simon Josefsson  <simon@josefsson.org>
34996
34997         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
34998         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
34999         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
35000
35001 2007-03-11  Bruno Haible  <bruno@clisp.org>
35002
35003         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
35004         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
35005
35006 2007-03-11  Bruno Haible  <bruno@clisp.org>
35007
35008         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
35009         formula. Needed for SunPRO C 5.0.
35010
35011 2007-03-11  Bruno Haible  <bruno@clisp.org>
35012
35013         * modules/long-options (Depends-on): Add getopt.
35014
35015 2007-03-11  Bruno Haible  <bruno@clisp.org>
35016
35017         * modules/modechange (Depends-on): Add stdbool.
35018
35019 2007-03-11  Bruno Haible  <bruno@clisp.org>
35020
35021         * modules/i-ring (Depends-on): Add stdbool.
35022
35023 2007-03-11  Bruno Haible  <bruno@clisp.org>
35024
35025         * modules/gc-des (Depends-on): Add stdbool.
35026
35027 2007-03-11  Bruno Haible  <bruno@clisp.org>
35028
35029         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
35030
35031 2007-03-11  Bruno Haible  <bruno@clisp.org>
35032
35033         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
35034
35035 2007-03-11  Bruno Haible  <bruno@clisp.org>
35036
35037         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
35038
35039 2007-03-11  Bruno Haible  <bruno@clisp.org>
35040
35041         * lib/vasnprintf.c (sprintf): Undefine.
35042
35043 2007-03-11  Bruno Haible  <bruno@clisp.org>
35044
35045         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
35046         initializers in SunPRO C and Compaq C compilers.
35047
35048 2007-03-11  Bruno Haible  <bruno@clisp.org>
35049
35050         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
35051         decrementing code ANSI C compliant.
35052
35053 2007-03-11  Bruno Haible  <bruno@clisp.org>
35054
35055         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
35056         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
35057
35058 2007-03-11  Bruno Haible  <bruno@clisp.org>
35059
35060         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
35061         <stdbool.h> substitute doesn't pass.
35062
35063 2007-03-11  Bruno Haible  <bruno@clisp.org>
35064
35065         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
35066
35067 2007-03-11  Bruno Haible  <bruno@clisp.org>
35068
35069         * gnulib-tool (func_create_megatestdir): Create also an autobuild
35070         script, for submission to autobuild.josefsson.org.
35071
35072 2007-03-10  Bruno Haible  <bruno@clisp.org>
35073
35074         * modules/canonicalize-lgpl-tests: New file.
35075         * tests/test-canonicalize-lgpl.sh: New file.
35076         * tests/test-canonicalize-lgpl.c: New file.
35077
35078         * modules/c-strcase-tests: New file.
35079         * tests/test-c-strcase.sh: New file.
35080         * tests/test-c-strcasecmp.c: New file.
35081         * tests/test-c-strncasecmp.c: New file.
35082
35083         * modules/atexit-tests: New file.
35084         * tests/test-atexit.sh: New file.
35085         * tests/test-atexit.c: New file.
35086
35087 2007-03-10  Bruno Haible  <bruno@clisp.org>
35088
35089         * tests/test-binary-io.sh: Use temporary filenames that are not so
35090         likely to clash with those of other tests (in a parallel make).
35091         * tests/test-binary-io.c: Likewise.
35092
35093 2007-03-10  Bruno Haible  <bruno@clisp.org>
35094
35095         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
35096         fallback; use #error instead.
35097         Suggested by Simon Josefsson.
35098
35099 2007-03-10  Bruno Haible  <bruno@clisp.org>
35100
35101         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
35102         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
35103         first and the last.
35104
35105 2007-03-10  Bruno Haible  <bruno@clisp.org>
35106
35107         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
35108
35109 2007-03-10  Bruno Haible  <bruno@clisp.org>
35110
35111         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
35112         "make distcheck".
35113         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
35114         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
35115         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
35116
35117 2007-03-10  Bruno Haible  <bruno@clisp.org>
35118
35119         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
35120         variable.
35121         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
35122         variable.
35123
35124 2007-03-09  Eric Blake  <ebb9@byu.net>
35125         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
35126
35127         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
35128         types are not being provided by gnulib.
35129         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
35130         types are supported.
35131
35132 2007-03-10  Bruno Haible  <bruno@clisp.org>
35133
35134         * lib/stdio_.h (__attribute__): New macro.
35135         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
35136         vsprintf): Specify __attribute__ __format__ for GCC.
35137         Suggested by Eric Blake.
35138
35139 2007-03-09  Bruno Haible  <bruno@clisp.org>
35140
35141         * modules/printf-posix-tests: New file.
35142         * tests/test-printf-posix.sh: New file.
35143         * tests/test-printf-posix.c: New file.
35144
35145         * modules/printf-posix: New file.
35146         * lib/printf.c: New file.
35147         * m4/printf-posix-rpl.m4: New file.
35148         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
35149         REPLACE_PRINTF.
35150         * lib/stdio_.h (printf): New declaration.
35151         (format, __format__, ____printf____, ____scanf____, ____strftime____,
35152         ____strfmon____): New macros.
35153         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
35154         REPLACE_PRINTF.
35155
35156 2007-03-09  Bruno Haible  <bruno@clisp.org>
35157
35158         * tests/test-vasnprintf-posix2.sh: New file.
35159         * tests/test-vasnprintf-posix2.c: New file.
35160         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
35161         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
35162         (Makefile.am): Activate test-vasnprintf-posix2.sh.
35163
35164         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
35165         a locale dependent decimal point, rather than always '.'.
35166
35167 2007-03-09  Eric Blake  <ebb9@byu.net>
35168
35169         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
35170         spite of platforms like Tandem/NSK that define it to -1.
35171
35172 2007-03-08  Bruno Haible  <bruno@clisp.org>
35173
35174         * modules/vprintf-posix-tests: New file.
35175         * tests/test-vprintf-posix.sh: New file.
35176         * tests/test-vprintf-posix.c: New file.
35177         * tests/test-printf-posix.h: New file.
35178
35179         * modules/vprintf-posix: New file.
35180         * lib/vprintf.c: New file.
35181         * m4/vprintf-posix.m4: New file.
35182         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
35183         REPLACE_VPRINTF.
35184         * lib/stdio_.h (vprintf): New declaration.
35185         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
35186         REPLACE_VPRINTF.
35187
35188 2007-03-08  Bruno Haible  <bruno@clisp.org>
35189
35190         * modules/fprintf-posix-tests: New file.
35191         * tests/test-fprintf-posix.sh: New file.
35192         * tests/test-fprintf-posix.c: New file.
35193
35194         * modules/fprintf-posix: New file.
35195         * lib/fprintf.c: New file.
35196         * m4/fprintf-posix.m4: New file.
35197         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
35198         REPLACE_FPRINTF.
35199         * lib/stdio_.h (fprintf): New declaration.
35200         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
35201         REPLACE_FPRINTF.
35202
35203 2007-03-08  Bruno Haible  <bruno@clisp.org>
35204
35205         * modules/vfprintf-posix-tests: New file.
35206         * tests/test-vfprintf-posix.sh: New file.
35207         * tests/test-vfprintf-posix.c: New file.
35208         * tests/test-fprintf-posix.h: New file.
35209         * tests/test-fprintf-posix.out: New file.
35210
35211         * modules/vfprintf-posix: New file.
35212         * lib/vfprintf.c: New file.
35213         * m4/vfprintf-posix.m4: New file.
35214         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
35215         REPLACE_VFPRINTF.
35216         * lib/stdio_.h (vfprintf): New declaration.
35217         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
35218         REPLACE_VFPRINTF.
35219
35220 2007-03-08  Bruno Haible  <bruno@clisp.org>
35221
35222         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
35223
35224 2007-03-08  Bruno Haible  <bruno@clisp.org>
35225
35226         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
35227         instead of 'expr' invocations.
35228         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35229         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35230         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35231         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35232         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35233         Suggested by Paul Eggert.
35234
35235 2007-03-08  Bruno Haible  <bruno@clisp.org>
35236
35237         * modules/fseterr-tests: New file.
35238         * tests/test-fseterr.c: New file.
35239
35240         * modules/fseterr: New file.
35241         * lib/fseterr.h: New file.
35242         * lib/fseterr.c: New file.
35243
35244 2007-03-08  Bruno Haible  <bruno@clisp.org>
35245
35246         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
35247         * lib/getopt_.h: Likewise.
35248         * lib/mbswidth.h: Likewise.
35249         * lib/setenv.h: Likewise.
35250         * lib/vasnprintf.h: Likewise.
35251         * lib/vasprintf.h: Likewise.
35252         * lib/verror.h: Likewise.
35253         * lib/xsetenv.h: Likewise.
35254         * lib/xvasprintf.h: Likewise.
35255
35256 2007-03-08  Jim Meyering  <jim@meyering.net>
35257
35258         * users.txt: Add parted.
35259
35260         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
35261
35262 2007-03-07  Bruno Haible  <bruno@clisp.org>
35263
35264         * m4/printf.m4: Make the shell script snippets copy&pastable.
35265
35266 2007-03-02  Bruno Haible  <bruno@clisp.org>
35267
35268         * lib/netinet_in_.h: New file.
35269         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
35270         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
35271         * modules/netinet_in (Files): Add lib/netinet_in_.h.
35272         (Depends-on): Add absolute-header.
35273         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
35274         into netinet/in.h.
35275
35276 2007-03-03  Bruno Haible  <bruno@clisp.org>
35277
35278         * lib/sys_select_.h: New file.
35279         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
35280         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
35281         * modules/sys_select (Files): Add lib/sys_select_.h.
35282         (Depends-on): Add absolute-header.
35283         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
35284         into sys/select.h.
35285
35286 2007-03-02  Bruno Haible  <bruno@clisp.org>
35287
35288         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
35289         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
35290         values.
35291         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
35292         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
35293         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
35294         * modules/sys_socket (Depends-on): Add absolute-header.
35295         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
35296         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
35297         (Include): Remove requirement of inclusion of <sys/types.h>.
35298
35299 2007-03-02  Bruno Haible  <bruno@clisp.org>
35300
35301         * lib/byteswap_.h (bswap_32): Fix formula.
35302
35303 2007-03-06  Bruno Haible  <bruno@clisp.org>
35304
35305         * modules/sprintf-posix-tests: New file.
35306         * tests/test-sprintf-posix.c: New file.
35307
35308         * modules/sprintf-posix: New file.
35309         * lib/sprintf.c: New file.
35310         * m4/sprintf-posix.m4: New file.
35311         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
35312         REPLACE_SPRINTF.
35313         * lib/stdio_.h (sprintf): New declaration.
35314         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
35315         REPLACE_SPRINTF.
35316
35317 2007-03-06  Bruno Haible  <bruno@clisp.org>
35318
35319         * modules/vsprintf-posix-tests: New file.
35320         * tests/test-vsprintf-posix.c: New file.
35321         * tests/test-sprintf-posix.h: New file.
35322
35323         * modules/vsprintf-posix: New file.
35324         * lib/vsprintf.c: New file.
35325         * m4/vsprintf-posix.m4: New file.
35326         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
35327         REPLACE_VSPRINTF.
35328         * lib/stdio_.h (vsprintf): New declaration.
35329         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
35330         REPLACE_VSPRINTF.
35331
35332 2007-03-06  Bruno Haible  <bruno@clisp.org>
35333
35334         * modules/vsnprintf (Depend-on): Remove minmax.
35335
35336 2007-03-06  Bruno Haible  <bruno@clisp.org>
35337
35338         * modules/snprintf-posix-tests: New file.
35339         * tests/test-snprintf-posix.c: New file.
35340
35341         * modules/snprintf-posix: New file.
35342         * m4/snprintf-posix.m4: New file.
35343         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
35344         gl_FUNC_SNPRINTF.
35345         (gl_FUNC_SNPRINTF): Invoke it.
35346         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
35347         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
35348         is set.
35349         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
35350
35351 2007-03-06  Bruno Haible  <bruno@clisp.org>
35352
35353         * modules/vsnprintf-posix-tests: New file.
35354         * tests/test-vsnprintf-posix.c: New file.
35355         * tests/test-snprintf-posix.h: New file.
35356
35357         * modules/vsnprintf-posix: New file.
35358         * m4/vsnprintf-posix.m4: New file.
35359         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
35360         gl_FUNC_VSNPRINTF.
35361         (gl_FUNC_VSNPRINTF): Invoke it.
35362         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
35363         * lib/stdio_.h (vsnprintf): Define as a replacement if
35364         REPLACE_VSNPRINTF is set.
35365         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
35366
35367 2007-03-06  Bruno Haible  <bruno@clisp.org>
35368
35369         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
35370         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
35371
35372 2007-03-06  Bruno Haible  <bruno@clisp.org>
35373
35374         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
35375         (asinl): Declare also if HAVE_DECL_ASINL is set.
35376         (atanl): Declare also if HAVE_DECL_ATANL is set.
35377         (ceill): Declare also if HAVE_DECL_CEILL is set.
35378         (cosl): Declare also if HAVE_DECL_COSL is set.
35379         (expl): Declare also if HAVE_DECL_EXPL is set.
35380         (floorl): Declare also if HAVE_DECL_FLOORL is set.
35381         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
35382         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
35383         (logl): Declare also if HAVE_DECL_LOGL is set.
35384         (sinl): Declare also if HAVE_DECL_SINL is set.
35385         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
35386         (tanl): Declare also if HAVE_DECL_TANL is set.
35387         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
35388         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
35389         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
35390         declaration of frexpl, ldexpl.
35391         * modules/printf-frexpl (Depends-on): Add math.
35392         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
35393
35394 2007-03-05  Bruno Haible  <bruno@clisp.org>
35395
35396         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
35397         frexpl and ldexpl are declared.
35398         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
35399
35400 2007-03-05  Bruno Haible  <bruno@clisp.org>
35401
35402         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
35403         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
35404
35405 2007-03-05  Bruno Haible  <bruno@clisp.org>
35406
35407         * lib/stdio_.h: Include <stddef.h>.
35408
35409 2007-03-05  Bruno Haible  <bruno@clisp.org>
35410
35411         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
35412
35413 2007-03-05  Bruno Haible  <bruno@clisp.org>
35414
35415         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
35416         NetBSD 4, from Ralf Wildenhues.
35417
35418 2007-03-04  Bruno Haible  <bruno@clisp.org>
35419
35420         * lib/vasprintf.h: Update #if logic for the case when the functions
35421         exist but are overridden.
35422
35423 2007-03-04  Bruno Haible  <bruno@clisp.org>
35424
35425         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
35426         implementations: glibc-2.4 and MacOS X 10.3.
35427         * tests/test-vasnprintf-posix.c (test_function): Test also the case
35428         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
35429         * tests/test-vasprintf-posix.c (test_function): Likewise.
35430
35431 2007-03-04  Bruno Haible  <bruno@clisp.org>
35432
35433         * modules/vasprintf-posix-tests: New file.
35434         * tests/test-vasprintf-posix.c: New file.
35435
35436         * modules/vasprintf-posix: New file.
35437         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
35438         defined.
35439         * m4/vasprintf-posix.m4: New file.
35440         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
35441         gl_FUNC_VASPRINTF.
35442         (gl_FUNC_VASPRINTF): Invoke it.
35443         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
35444         here.
35445         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
35446
35447 2007-03-04  Bruno Haible  <bruno@clisp.org>
35448
35449         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
35450         REPLACE_GETTIMEOFDAY.
35451         * modules/sys_time (Makefile.am): Likewise.
35452         * m4/sys_time_h.m4: Likewise.
35453         * m4/gettimeofday.m4: Likewise.
35454
35455 2007-03-04  Bruno Haible  <bruno@clisp.org>
35456
35457         * modules/vasnprintf-posix-tests: New file.
35458         * tests/test-vasnprintf-posix.c: New file.
35459
35460         * modules/vasnprintf-posix: New file.
35461         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
35462         printf-frexpl.h.
35463         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
35464         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
35465         REPLACE_VASNPRINTF is defined.
35466         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
35467         gl_FUNC_VASNPRINTF.
35468         (gl_FUNC_VASNPRINTF): Invoke it.
35469         * m4/vasnprintf-posix.m4: New file.
35470         * m4/printf.m4: New file.
35471
35472 2007-03-04  Bruno Haible  <bruno@clisp.org>
35473
35474         Compile progreloc.c only if --enable-relocatable is specified.
35475         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
35476         if --enable-relocatable was specified.
35477         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
35478         lib_SOURCES.
35479
35480 2007-03-04  Jim Meyering  <jim@meyering.net>
35481
35482         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
35483         Use it consistently, rather than enumerating errno constants.
35484
35485 2007-03-04  Bruno Haible  <bruno@clisp.org>
35486
35487         * modules/xvasprintf-tests: New file.
35488         * tests/test-xvasprintf.c: New file.
35489
35490         * modules/vasprintf-tests: New file.
35491         * tests/test-vasprintf.c: New file.
35492
35493         * modules/vasnprintf-tests: New file.
35494         * tests/test-vasnprintf.c: New file.
35495
35496         * modules/vsnprintf-tests: New file.
35497         * tests/test-vsnprintf.c: New file.
35498
35499         * modules/snprintf-tests: New file.
35500         * tests/test-snprintf.c: New file.
35501
35502 2007-03-04  Bruno Haible  <bruno@clisp.org>
35503
35504         Compile relocatable.c only if --enable-relocatable is specified.
35505         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
35506         gl_RELOCATABLE_LIBRARY.
35507         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
35508         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
35509         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
35510         gl_RELOCATABLE_LIBRARY.
35511         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
35512         (Makefile.am): Remove lib_SOURCES.
35513         * modules/relocatable-lib-lgpl (configure.ac): Invoke
35514         gl_RELOCATABLE_LIBRARY.
35515         (Makefile.am): Remove lib_SOURCES.
35516         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
35517         always.
35518         * modules/relocatable-prog-wrapper (configure.ac): Invoke
35519         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
35520
35521 2007-03-04  Bruno Haible  <bruno@clisp.org>
35522
35523         * modules/argmatch-tests: New file.
35524         * tests/test-argmatch.c: New file.
35525
35526         * tests/test-allocsa.c (main): Halve the number of loop runs.
35527
35528         * modules/alloca-opt-tests: New file.
35529         * tests/test-alloca-opt.c: New file.
35530
35531 2007-03-04  Jim Meyering  <jim@meyering.net>
35532
35533         Work around difference between Linux ACLs and Solaris 10 ZFS.
35534         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
35535         for EINVAL.
35536
35537 2007-03-03  Bruno Haible  <bruno@clisp.org>
35538
35539         * modules/relocatable-prog (Depends-on): Add back progreloc's
35540         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
35541
35542 2007-03-03  Bruno Haible  <bruno@clisp.org>
35543
35544         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
35545         * modules/relocatable-lib: New file.
35546
35547 2007-03-03  Bruno Haible  <bruno@clisp.org>
35548
35549         * modules/relocatable-prog: Renamed from modules/relocatable.
35550         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
35551
35552 2007-03-03  Bruno Haible  <bruno@clisp.org>
35553
35554         * modules/relocatable-script (Files): Add doc/relocatable.texi,
35555         m4/relocatable-lib.m4.
35556         (Depends-on): Remove 'relocatable'.
35557         (configure.ac): Add gl_RELOCATABLE_NOP.
35558
35559 2007-03-03  Bruno Haible  <bruno@clisp.org>
35560
35561         * modules/relocatable-prog-wrapper: New file.
35562         * modules/relocatable (Depends-on): Add it. Remove all other
35563         dependencies except progname.
35564         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
35565
35566         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
35567         (gl_FUNC_STRERROR): Nop.
35568         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
35569
35570         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
35571         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
35572
35573         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
35574         (gl_FUNC_READLINK): Update.
35575
35576         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
35577
35578 2007-03-03  Bruno Haible  <bruno@clisp.org>
35579
35580         * lib/xreadlink.c: Include <unistd.h> unconditionally.
35581         * modules/xreadlink (Depends-on): Add unistd.
35582         * modules/xreadlink-with-size (Depends-on): Likewise.
35583
35584 2007-03-03  Bruno Haible  <bruno@clisp.org>
35585
35586         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
35587         extracted from gt_FUNC_SETENV.
35588         (gt_FUNC_SETENV): Remove macro.
35589         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
35590         remove gt_FUNC_SETENV.
35591
35592 2007-03-03  Bruno Haible  <bruno@clisp.org>
35593
35594         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
35595         ENABLE_RELOCATABLE here.
35596         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
35597
35598 2007-03-03  Bruno Haible  <bruno@clisp.org>
35599
35600         * modules/rbtreehash-list-tests (Depends-on): Add progname.
35601         * tests/test-rbtreehash_list.c: Include progname.h.
35602         (main): Call set_program_name.
35603
35604         * modules/rbtree-oset-tests (Depends-on): Add progname.
35605         * tests/test-rbtree_oset.c: Include progname.h.
35606         (main): Call set_program_name.
35607
35608         * modules/rbtree-list-tests (Depends-on): Add progname.
35609         * tests/test-rbtree_list.c: Include progname.h.
35610         (main): Call set_program_name.
35611
35612         * modules/linked-list-tests (Depends-on): Add progname.
35613         * tests/test-linked_list.c: Include progname.h.
35614         (main): Call set_program_name.
35615
35616 2007-03-03  Bruno Haible  <bruno@clisp.org>
35617
35618         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
35619         All uses of __restrict changed to _Restrict_.
35620         * lib/glob_.h (__restrict): Remove macro.
35621
35622 2007-03-02  Bruno Haible  <bruno@clisp.org>
35623
35624         * modules/gettext (configure.ac): Require gettext infrastructure
35625         from version 0.16.1.
35626
35627 2007-03-02  Bruno Haible  <bruno@clisp.org>
35628
35629         * modules/linkedhash-list-tests (Depends-on): Add progname.
35630         * tests/test-linkedhash_list.c: Include progname.h.
35631         (main): Call set_program_name.
35632
35633         * modules/carray-list-tests (Depends-on): Add progname.
35634         * tests/test-carray_list.c: Include progname.h.
35635         (main): Call set_program_name.
35636
35637         * modules/avltreehash-list-tests (Depends-on): Add progname.
35638         * tests/test-avltreehash_list.c: Include progname.h.
35639         (main): Call set_program_name.
35640
35641         * modules/avltree-oset-tests (Depends-on): Add progname.
35642         * tests/test-avltree_oset.c: Include progname.h.
35643         (main): Call set_program_name.
35644
35645         * modules/avltree-list-tests (Depends-on): Add progname.
35646         * tests/test-avltree_list.c: Include progname.h.
35647         (main): Call set_program_name.
35648
35649         * modules/array-oset-tests (Depends-on): Add progname.
35650         * tests/test-array_oset.c: Include progname.h.
35651         (main): Call set_program_name.
35652
35653         * modules/array-list-tests (Depends-on): Add progname.
35654         * tests/test-array_list.c: Include progname.h.
35655         (main): Call set_program_name.
35656
35657         * modules/argp-tests (Depends-on): Add progname.
35658         * tests/test-argp.c: Include argp.h first. Include progname.h.
35659         (main): Call set_program_name.
35660
35661 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
35662
35663         * doc/gnulib-tool.texi (Initial import): Reword description of
35664         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
35665         limited effect even if defined after the first system include.
35666
35667 2007-03-01  Bruno Haible  <bruno@clisp.org>
35668
35669         * build-aux/config.libpath: Update to libtool-1.5.22.
35670         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35671
35672 2007-03-01  Bruno Haible  <bruno@clisp.org>
35673
35674         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
35675         foo_CFLAGS.
35676         Reported by Ralf Wildenhues.
35677
35678 2007-03-01  Bruno Haible  <bruno@clisp.org>
35679
35680         * build-aux/install-reloc: Remove object files left over by some
35681         compilers.
35682         Reported by Ralf Wildenhues.
35683
35684 2007-03-01  Bruno Haible  <bruno@clisp.org>
35685
35686         * build-aux/install-reloc: Break long lines.
35687
35688 2007-03-01  Bruno Haible  <bruno@clisp.org>
35689
35690         * doc/relocatable.texi: Document that it may not work on OpenBSD.
35691         Reported by Ralf Wildenhues.
35692
35693 2007-03-01  Bruno Haible  <bruno@clisp.org>
35694
35695         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
35696         include ordering constraints.
35697
35698 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
35699
35700         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
35701         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
35702         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
35703         as another example.
35704         * lib/time_.h: Fix misspelling.
35705         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
35706         Require gl_HEADER_TIME_H_DEFAULTS.
35707         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
35708         * m4/time_r.m4 (gl_TIME_R): Likewise.
35709         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
35710
35711 2007-03-01  Bruno Haible  <bruno@clisp.org>
35712
35713         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
35714         * m4/utimens.m4 (gl_UTIMENS): Likewise.
35715
35716 2007-03-01  Jim Meyering  <jim@meyering.net>
35717
35718         * modules/xreadlink (Maintainer): Add my name.
35719         * modules/xreadlink-with-size (Depends-on): Alphabetize.
35720
35721 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
35722             Bruno Haible  <bruno@clisp.org>
35723
35724         * build-aux/install-reloc: Compile also c-ctype.c.
35725         * build-aux/relocatable.sh.in: New file.
35726         * doc/relocatable.texi: New file.
35727         * doc/relocatable-maint.texi: New file.
35728         * doc/gnulib.texi: Include relocatable-maint.texi.
35729         * lib/progreloc.c: Include unistd.h unconditionally.
35730         * lib/relocwrapper.c: Include unistd.h unconditionally.
35731         Include c-ctype.h.
35732         (add_dotbin): Use c_tolower.
35733         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
35734         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
35735         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
35736         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
35737         to m4/relocatable-lib.m4.
35738         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
35739         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
35740         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
35741         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
35742         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
35743         * modules/relocatable: New file.
35744         * modules/relocatable-lib: New file.
35745         * modules/relocatable-script: New file.
35746
35747 2007-02-28  Bruno Haible  <bruno@clisp.org>
35748
35749         Import --enable-relocatable infrastructure.
35750         * build-aux/config.libpath: New file, from GNU gettext.
35751         * build-aux/install-reloc: New file, from GNU gettext.
35752         * build-aux/reloc-ldflags: New file, from GNU gettext.
35753         * lib/relocatable.h: New file, from GNU gettext.
35754         * lib/relocatable.c: New file, from GNU gettext.
35755         * lib/relocwrapper.c: New file, from GNU gettext.
35756         * m4/relocatable.m4: New file, from GNU gettext.
35757
35758 2007-02-28  Bruno Haible  <bruno@clisp.org>
35759
35760         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
35761
35762         * modules/xreadlink: New file, from GNU gettext with modifications.
35763         * lib/xreadlink.c: New file, from GNU gettext.
35764         * lib/xreadlink.h: Add comments.
35765         (xreadlink): New declaration.
35766
35767         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
35768         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
35769         lib/xreadlink-with-size.c.
35770         (configure.ac): Remove gl_XREADLINK invocation.
35771         (Makefile.am): Augment lib_SOURCES.
35772         * m4/xreadlink.m4: Remove file.
35773         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
35774         (xreadlink_with_size): Renamed from xreadink.
35775         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
35776         * modules/canonicalize (Depends-on): Replace xreadlink with
35777         xreadlink-with-size.
35778         * lib/canonicalize.c (canonicalize_filename_mode): Update.
35779
35780 2007-02-25  Jim Meyering  <jim@meyering.net>
35781
35782         * build-aux/announce-gen: When complaining about excess arguments,
35783         list them.
35784
35785 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
35786
35787         * README: Document signed integer overflow situation more
35788         accurately.
35789
35790 2007-02-25  Bruno Haible  <bruno@clisp.org>
35791
35792         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
35793         'a' or 'A' conversion.
35794
35795 2007-02-25  Bruno Haible  <bruno@clisp.org>
35796
35797         * modules/filename: Renamed from modules/pathname.
35798         (Files): Replace lib/pathname.h with lib/filename.h. Replace
35799         lib/concatpath.c with lib/concat-filename.c.
35800         (Makefile.am): Update.
35801         (Include): Replace pathname.h with filename.h.
35802         * lib/filename.h: Renamed from lib/pathname.h.
35803         (concatenated_filename): Renamed from concatenated_pathname.
35804         * lib/concat-filename.c: Renamed from lib/concatpath.c.
35805         (concatenated_filename): Renamed from concatenated_pathname.
35806         * lib/findprog.c: Include filename.h instead of pathname.h.
35807         (find_in_path): Update.
35808         * lib/javacomp.c: Include filename.h instead of pathname.h.
35809         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
35810         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
35811         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
35812         is_oldgcj_14_13_usable, is_javac_usable): Update.
35813         * lib/javaexec.c: Include filename.h instead of pathname.h.
35814         (execute_java_class): Update.
35815         * modules/findprog: Update.
35816         * modules/javacomp: Update.
35817         * modules/javaexec: Update.
35818         * MODULES.html.sh (File system functions): Add 'filename', remove
35819         'pathname'.
35820
35821 2007-02-25  Bruno Haible  <bruno@clisp.org>
35822
35823         * modules/printf-frexpl-tests: New file.
35824         * tests/test-printf-frexpl.c: New file.
35825
35826         * modules/printf-frexpl: New file.
35827         * lib/printf-frexpl.h: New file.
35828         * lib/printf-frexpl.c: New file.
35829         * m4/printf-frexpl.m4: New file.
35830
35831 2007-02-25  Bruno Haible  <bruno@clisp.org>
35832
35833         * modules/printf-frexp-tests: New file.
35834         * tests/test-printf-frexp.c: New file.
35835
35836         * modules/printf-frexp: New file.
35837         * lib/printf-frexp.h: New file.
35838         * lib/printf-frexp.c: New file.
35839         * m4/printf-frexp.m4: New file.
35840
35841 2007-02-25  Bruno Haible  <bruno@clisp.org>
35842
35843         Assume automake >= 1.10 for the tests.
35844         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
35845         * modules/arctwo-tests: Likewise.
35846         * modules/argp-tests: Likewise.
35847         * modules/avltree-list-tests: Likewise.
35848         * modules/avltree-oset-tests: Likewise.
35849         * modules/avltreehash-list-tests: Likewise.
35850         * modules/carray-list-tests: Likewise.
35851         * modules/crc-tests: Likewise.
35852         * modules/des-tests: Likewise.
35853         * modules/gc-arcfour-tests: Likewise.
35854         * modules/gc-arctwo-tests: Likewise.
35855         * modules/gc-des-tests: Likewise.
35856         * modules/gc-hmac-md5-tests: Likewise.
35857         * modules/gc-hmac-sha1-tests: Likewise.
35858         * modules/gc-md2-tests: Likewise.
35859         * modules/gc-md4-tests: Likewise.
35860         * modules/gc-md5-tests: Likewise.
35861         * modules/gc-pbkdf2-sha1-tests: Likewise.
35862         * modules/gc-rijndael-tests: Likewise.
35863         * modules/gc-sha1-tests: Likewise.
35864         * modules/gc-tests: Likewise.
35865         * modules/getaddrinfo-tests: Likewise.
35866         * modules/hmac-md5-tests: Likewise.
35867         * modules/hmac-sha1-tests: Likewise.
35868         * modules/linked-list-tests: Likewise.
35869         * modules/linkedhash-list-tests: Likewise.
35870         * modules/lock-tests: Likewise.
35871         * modules/md2-tests: Likewise.
35872         * modules/md4-tests: Likewise.
35873         * modules/md5-tests: Likewise.
35874         * modules/rbtree-list-tests: Likewise.
35875         * modules/rbtree-oset-tests: Likewise.
35876         * modules/rbtreehash-list-tests: Likewise.
35877         * modules/read-file-tests: Likewise.
35878         * modules/rijndael-tests: Likewise.
35879         * modules/stdint-tests: Likewise.
35880         * modules/tls-tests: Likewise.
35881
35882 2007-02-24  Bruno Haible  <bruno@clisp.org>
35883
35884         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
35885         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
35886         function; instead check whether isnan with a double argument links.
35887         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
35888         function; instead check whether isnan with a 'long double' argument
35889         links.
35890         Reported by Eric Blake <ebb9@byu.net>.
35891
35892 2007-02-24  Bruno Haible  <bruno@clisp.org>
35893
35894         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
35895         defined.
35896         * lib/isnanl.c: Remove all code. Just include isnan.c.
35897         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
35898
35899 2007-02-25  Jim Meyering  <jim@meyering.net>
35900
35901         Avoid conflicting types for 'unsetenv' on FreeBSD.
35902         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
35903         conflicting with FreeBSD's (5.0 and 6.1) function declaration
35904         in stdlib.h.
35905
35906 2007-02-24  Bruno Haible  <bruno@clisp.org>
35907
35908         * modules/isnanl-nolibm-tests: New file.
35909         * tests/test-isnanl.c: New file.
35910
35911         * modules/isnanl-nolibm: New file.
35912         * lib/isnanl.h: New file.
35913         * lib/isnanl.c: New file.
35914         * m4/isnanl.m4: New file.
35915
35916 2007-02-24  Bruno Haible  <bruno@clisp.org>
35917
35918         * modules/isnan-nolibm-tests: New file.
35919         * tests/test-isnan.c: New file.
35920
35921         * modules/isnan-nolibm: New file.
35922         * lib/isnan.h: New file.
35923         * lib/isnan.c: New file.
35924         * m4/isnan.m4: New file.
35925
35926 2007-02-24  Bruno Haible  <bruno@clisp.org>
35927
35928         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
35929         assume that an exponent fits in 20 bits.
35930
35931 2007-02-24  Jim Meyering  <jim@meyering.net>
35932
35933         * m4/regex.m4: Update the description of the configure-time option,
35934         --without-included-regex, to state accurately what the defaults are,
35935         and perhaps to give people an idea why using this option is risky.
35936
35937 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
35938
35939         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
35940         loops on small arguments.  This attempts to avoid the problem
35941         Bruno Haible reported for AIX 4.3.2 in
35942         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
35943
35944 2007-02-23  Bruno Haible  <bruno@clisp.org>
35945
35946         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
35947         Needed for help2man.
35948
35949 2007-02-23  Karl Berry  <karl@gnu.org>
35950
35951         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
35952         exists, foo.h should be cvs-ignored, not committed.
35953
35954 2007-02-23  Eric Blake  <ebb9@byu.net>
35955
35956         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
35957         * lib/stat-time.h (includes): Likewise.
35958         * lib/utimecmp.c (includes): Likewise.
35959         * lib/utimens.h (includes): Likewise.
35960         * lib/getdate.y (includes): Also include "timespec.h" for use
35961         internal to the module.
35962         * modules/utimens (Depends-on): Revert yesterday's patch.
35963         * modules/nanosleep (Depends-on): Add missing dependency.
35964
35965 2007-02-22  Bruno Haible  <bruno@clisp.org>
35966
35967         * lib/glob.c: Don't include getlogin_r.h.
35968
35969 2007-02-22  Jim Meyering  <jim@meyering.net>
35970
35971         * modules/utimens (Depends-on): Add timespec, required for
35972         utimens.h's inclusion of timespec.h.
35973
35974 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
35975
35976         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
35977         long unreadable paths in GNU/Linux.  Problem reported by Andreas
35978         Schwab in
35979         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
35980         I'll try to think of a better way to fix the Solaris problem.
35981
35982         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
35983         like glibc; on Solaris 10, it fails with errno == EINVAL.
35984         POSIX says the behavior is unspecified if the first argument is NULL,
35985         so play it safe and never pass NULL to the system getcwd.
35986
35987 2007-02-21  Jim Meyering  <jim@meyering.net>
35988
35989         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
35990         of gettimeofday.  It would conflict with the one now always
35991         provided via sys_time_.h.  Reported by Matthew Woehlke, as
35992         an IRIX 6.5 build failure.
35993
35994 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
35995
35996         Minor fixups to port to Solaris 10 with Sun C 5.8.
35997         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
35998         * modules/getcwd (Depends-on): Add dirfd.
35999         * lib/putenv.c (putenv): #undef it.
36000         (rpl_putenv): New decl.
36001         (malloc, free): Include <stdlib.h> rather than prototyping separately.
36002
36003 2007-02-20  Bruno Haible  <bruno@clisp.org>
36004
36005         * modules/stdio-tests: New file.
36006         * tests/test-stdio.c: New file.
36007
36008         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
36009         (Depends-on): Add stdio.
36010         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36011         (Include): Use <stdio.h> instead of vsnprintf.h.
36012         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36013         HAVE_DECL_VSNPRINTF.
36014         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
36015
36016         * modules/snprintf (Files): Remove lib/snprintf.h.
36017         (Depends-on): Add stdio.
36018         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36019         (Include): Use <stdio.h> instead of snprintf.h.
36020         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36021         HAVE_DECL_SNPRINTF.
36022         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
36023         * lib/getaddrinfo.c: Likewise.
36024
36025         * modules/stdio: New file.
36026         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
36027         * lib/snprintf.h: Remove file.
36028         * lib/vsnprintf.h: Remove file.
36029         * lib/.cppi-disable: Remove snprintf.h.
36030         * m4/stdio_h.m4: New file.
36031         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
36032
36033 2007-02-20  Jim Meyering  <jim@meyering.net>
36034
36035         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
36036         used by e.g., mingw.  From Bruno Haible.
36037
36038 2007-02-19  Bruno Haible  <bruno@clisp.org>
36039
36040         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
36041         warnings.
36042         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36043
36044 2007-02-19  Bruno Haible  <bruno@clisp.org>
36045
36046         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
36047         from mingw users.
36048
36049 2007-02-19  Bruno Haible  <bruno@clisp.org>
36050
36051         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
36052         warnings.
36053         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
36054
36055 2007-02-19  Jim Meyering  <jim@meyering.net>
36056
36057         Don't use FD after a successful "fdopendir (fd)".
36058         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
36059         Reset it by calling dirfd on the just-obtained DIR*.
36060
36061         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
36062         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
36063
36064 2007-02-18  Bruno Haible  <bruno@clisp.org>
36065
36066         * lib/readlink.c: Include <unistd.h>.
36067         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
36068         HAVE_READLINK.
36069         * modules/readlink (Depends-on): Add unistd.
36070         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36071         (Include): Add <unistd.h>.
36072
36073         * lib/getlogin_r.h: Remove file.
36074         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
36075         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
36076         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
36077         HAVE_DECL_GETLOGIN_R.
36078         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
36079         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36080         (Include): Use <unistd.h> instead of getlogin_r.h.
36081
36082         * lib/getcwd.h: Remove file.
36083         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
36084         * lib/xgetcwd.c: Likewise.
36085         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
36086         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
36087         * modules/getcwd (Files): Remove lib/getcwd.h.
36088         (Depends-on): Add unistd.
36089         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36090         (Include): Use <unistd.h> instad of getcwd.h.
36091
36092         * lib/ftruncate.c: Include <unistd.h> first.
36093         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
36094         Set HAVE_FTRUNCATE.
36095         * modules/ftruncate (Depends-on): Add unistd.
36096         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36097
36098         * lib/fchdir.c: Include <unistd.h> first.
36099         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
36100         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
36101         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
36102         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36103         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
36104
36105         * lib/dup2.c: Include <unistd.h> first.
36106         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
36107         HAVE_DUP2.
36108         * modules/dup2 (Depends-on): Add unistd.
36109         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36110
36111         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
36112         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
36113         REPLACE_CHOWN. Don't define chown as a macro here.
36114         * modules/chown (Depends-on): Add unistd.
36115         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36116
36117         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
36118         Add definition for GL_LINK_WARNING.
36119         (chown, dup2): New declarations.
36120         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
36121         link warning.
36122         (ftruncate): New declaration.
36123         (getcwd): New declaration, taken from old getcwd.h.
36124         (getlogin_r): New declaration, taken from old getlogin_r.h.
36125         (readlink): New declaration.
36126         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
36127         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
36128         (gl_PREREQ_UNISTD): Remove macro.
36129         (gl_UNISTD_MODULE_INDICATOR): New macro.
36130         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
36131         many new variables. Don't set UNISTD_H.
36132         * modules/unistd (Description): Change.
36133         (Depends-on): Add link-warning.
36134         (configure.ac): Update.
36135         (Makefile.am): Create unistd.h always. Substitute many new variables
36136         into it.
36137
36138 2007-02-18  Bruno Haible  <bruno@clisp.org>
36139
36140         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
36141         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
36142         HAVE_GETSUBOPT.
36143         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
36144         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
36145         * lib/getsubopt.h: Remove file.
36146         * modules/getsubopt (Files): Remove lib/getsubopt.h.
36147         (Depends-on): Add stdlib.
36148         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36149         (Includes): Use <stdlib.h> instead of getsubopt.h.
36150         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
36151         Set HAVE_GETSUBOPT.
36152         * lib/getsubopt.c: Don't include getsubopt.h.
36153
36154 2007-02-18  Bruno Haible  <bruno@clisp.org>
36155
36156         * modules/fchdir (Depends-on): Add dup2.
36157
36158 2007-02-18  Bruno Haible  <bruno@clisp.org>
36159
36160         * lib/stdlib_.h: Handle glibc's special invocation convention
36161         specially.
36162
36163 2007-02-18  Bruno Haible  <bruno@clisp.org>
36164
36165         * modules/stdlib-tests: New file.
36166         * tests/test-stdlib.c: New file.
36167
36168         * modules/mkstemp (Files): Remove lib/mkstemp.h.
36169         (Depends-on): Add stdlib.
36170         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36171         (Includes): Use <stdlib.h> instead of mkstemp.h.
36172         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
36173         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
36174         * lib/mkstemp.c: Don't include mkstemp.h.
36175         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
36176         * lib/stdlib--.h: Don't include mkstemp.h.
36177
36178         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
36179         (Depends-on): Add stdlib.
36180         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36181         (Includes): Use <stdlib.h> instead of mkdtemp.h.
36182         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
36183         HAVE_MKDTEMP.
36184         * lib/mkdtemp.c: Don't include mkdtemp.h.
36185         * lib/clean-temp.c: Don't include mkdtemp.h.
36186
36187         * modules/exit (Files): Remove lib/exit.h.
36188         (Depends-on): Add stdlib.
36189         (Makefile.am): Remove lib_SOURCES.
36190         (Include): Use <stdlib.h> instead of exit.h.
36191         * lib/argmatch.c: Don't include exit.h.
36192         * lib/execute.c: Likewise.
36193         * lib/pagealign_alloc.c: Likewise.
36194         * lib/pipe.c: Likewise.
36195         * lib/wait-process.c: Likewise.
36196         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
36197         * lib/exitfail.c: Likewise.
36198         * lib/savewd.c: Likewise.
36199         * lib/xsetenv.c: Likewise.
36200
36201         * modules/stdlib: New file.
36202         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
36203         and extra comments about mkstemp().
36204         * lib/exit.h: Remove file.
36205         * lib/mkdtemp.h: Remove file.
36206         * lib/mkstemp.h: Remove file.
36207         * m4/stdlib_h.m4: New file.
36208         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
36209
36210 2007-02-18  Bruno Haible  <bruno@clisp.org>
36211
36212         * modules/math-tests: New file.
36213         * tests/test-math.c: New file.
36214
36215         * modules/math: New file.
36216         * modules/mathl (Files): Remove lib/mathl.h.
36217         (Depends-on): Add math.
36218         (Makefile.am): Don't mention mathl.h.
36219         (Include): Use <math.h> instead of mathl.h.
36220         * lib/math_.h: New file.
36221         * lib/mathl.h: Remove file.
36222         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
36223         mathl.h.
36224         * lib/asinl.c: Likewise.
36225         * lib/atanl.c: Likewise.
36226         * lib/ceill.c: Likewise.
36227         * lib/cosl.c: Likewise.
36228         * lib/expl.c: Likewise.
36229         * lib/floorl.c: Likewise.
36230         * lib/frexpl.c: Likewise.
36231         * lib/ldexpl.c: Likewise.
36232         * lib/logl.c: Likewise.
36233         * lib/sincosl.c: Likewise.
36234         * lib/sinl.c: Likewise.
36235         * lib/sqrtl.c: Likewise.
36236         * lib/tanl.c: Likewise.
36237         * lib/trigl.c: Likewise.
36238         * m4/math_h.m4: New file.
36239         * MODULES.html.sh (Mathematics): Add math.
36240
36241 2007-02-17  Bruno Haible  <bruno@clisp.org>
36242
36243         * modules/wctype-tests: New file.
36244         * tests/test-wctype.c: New file.
36245
36246         * modules/wchar-tests: New file.
36247         * tests/test-wchar.c: New file.
36248
36249         * modules/unistd-tests: New file.
36250         * tests/test-unistd.c: New file.
36251
36252         * modules/time-tests: New file.
36253         * tests/test-time.c: New file.
36254
36255         * modules/sysexits-tests: New file.
36256         * tests/test-sysexits.c: New file.
36257
36258         * modules/sys_time-tests: New file.
36259         * tests/test-sys_time.c: New file.
36260
36261         * modules/sys_stat-tests: New file.
36262         * tests/test-sys_stat.c: New file.
36263
36264         * modules/sys_socket-tests: New file.
36265         * tests/test-sys_socket.c: New file.
36266
36267         * modules/sys_select-tests: New file.
36268         * tests/test-sys_select.c: New file.
36269
36270         * modules/string-tests: New file.
36271         * tests/test-string.c: New file.
36272
36273         * modules/stdbool-tests: New file.
36274         * tests/test-stdbool.c: New file.
36275
36276         * modules/netinet_in-tests: New file.
36277         * tests/test-netinet_in.c: New file.
36278
36279         * modules/inttypes-tests: New file.
36280         * tests/test-inttypes.c: New file.
36281
36282         * modules/fcntl-tests: New file.
36283         * tests/test-fcntl.c: New file.
36284
36285         * modules/byteswap-tests: New file.
36286         * tests/test-byteswap.c: New file.
36287
36288         * modules/arpa_inet-tests: New file.
36289         * tests/test-arpa_inet.c: New file.
36290
36291 2007-02-17  Bruno Haible  <bruno@clisp.org>
36292
36293         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
36294         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
36295         if the corresponding module is not enabled. Emit link warnings if
36296         the function is used nevertheless.
36297         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
36298         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
36299         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
36300         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
36301         * modules/inttypes (Depends-on): Add link-warning.
36302         (Makefile.am): Copy the contents of build-aux/link-warning.h into
36303         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
36304         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
36305         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
36306         * modules/imaxdiv (configure.ac): Likewise.
36307         * modules/strtoimax (configure.ac): Likewise.
36308         * modules/strtoumax (configure.ac): Likewise.
36309
36310 2007-02-17  Bruno Haible  <bruno@clisp.org>
36311
36312         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
36313         gl_STRING_MODULE_INDICATOR_DEFAULTS.
36314         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
36315         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
36316
36317 2007-02-17  Bruno Haible  <bruno@clisp.org>
36318
36319         * modules/link-warning: New file.
36320         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
36321         * lib/string_.h (GL_LINK_WARNING): Remove definition.
36322         * modules/string (Depends-on): Add link-warning.
36323         (Makefile.am): Copy the contents of build-aux/link-warning.h into
36324         string.h.
36325         * MODULES.html.sh (Support for building libraries and executables): Add
36326         link-warning.
36327
36328 2007-02-17  Bruno Haible  <bruno@clisp.org>
36329
36330         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
36331         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
36332         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
36333         long lines.
36334
36335 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
36336             Bruno Haible  <bruno@clisp.org>
36337
36338         * modules/tmpfile: New file.
36339         * lib/tmpfile.c: New file.
36340         * m4/tmpfile.m4: New file.
36341         * MODULES.html.sh (func_all_modules): New section "Input/output".
36342
36343 2007-02-15  Bruno Haible  <bruno@clisp.org>
36344
36345         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
36346         (supports_delete_on_close): New function.
36347         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
36348
36349 2007-02-14  Bruno Haible  <bruno@clisp.org>
36350
36351         * modules/mbspcasecmp-tests: New file.
36352         * tests/test-mbspcasecmp.sh: New file.
36353         * tests/test-mbspcasecmp.c: New file.
36354
36355         New module mbspcasecmp.
36356         * modules/mbspcasecmp: New file.
36357         * lib/mbspcasecmp.c: New file.
36358         * lib/string_.h (strncasecmp): Change warning message.
36359         (mbspcasecmp): New declaration.
36360         * m4/mbspcasecmp.m4: New file.
36361         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36362         GNULIB_MBSPCASECMP.
36363         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
36364         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
36365
36366 2007-02-14  Bruno Haible  <bruno@clisp.org>
36367
36368         * modules/mbsncasecmp-tests: New file.
36369         * tests/test-mbsncasecmp.sh: New file.
36370         * tests/test-mbsncasecmp.c: New file.
36371
36372         New module mbsncasecmp.
36373         * modules/mbsncasecmp: New file.
36374         * lib/mbsncasecmp.c: New file.
36375         * lib/string_.h (mbsncasecmp): New declaration.
36376         * m4/mbsncasecmp.m4: New file.
36377         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36378         GNULIB_MBSNCASECMP.
36379         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
36380         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
36381
36382 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
36383
36384         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
36385         Verify that it doesn't overlap with our flags.
36386         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
36387         do not have the desired effect in multibyte locales; instead, use
36388         mbscasecmp.
36389         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
36390         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
36391         we don't require GNU fnmatch ourselves (if our users require it, they
36392         should do so explicitly).
36393
36394         Fix regex code so it doesn't rely on strcasecmp.
36395         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
36396         Otherwise, include gnulib's langinfo.h.
36397         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
36398         undesirable behavior in non-C locales.  Instead, rely on localecharset.
36399         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
36400         * modules/regex (FILES): Remove m4/codeset.m4.
36401         (Depends-on): Add localcharset.  Remove strcase.
36402
36403 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36404
36405         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
36406         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
36407
36408 2007-02-13  Bruno Haible  <bruno@clisp.org>
36409
36410         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
36411         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36412
36413 2007-02-12  Bruno Haible  <bruno@clisp.org>
36414
36415         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
36416         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
36417         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
36418         time warning rather than a link error.
36419
36420 2007-02-12  Bruno Haible  <bruno@clisp.org>
36421
36422         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
36423         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
36424         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36425
36426 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
36427
36428         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
36429         args, not 2.
36430
36431 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
36432
36433         New module 'time', so that apps can include <time.h> as per
36434         POSIX and GNU instead of separate include files like time_r.h
36435         and timegm.h.  This implementation tries out a simpler approach
36436         for replacing decls in standard include files (as compared to
36437         the string module), somewhat as an experiment.
36438
36439         * config/srclist.txt: Comment out mktime.c for now.
36440         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
36441         since it doesn't apply any more.  Use generic wording instead.
36442         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
36443         'time'.
36444         * lib/time_.h, m4/time_h.m4, modules/time: New files.
36445         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
36446         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
36447         Don't include <sys/types.h>; no longer needed since we assume C89.
36448         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
36449         * lib/strftime.c: Likewise.
36450         * lib/time_r.c: Likewise.
36451         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
36452         * lib/nanosleep.c: Include <time.h> first, to check interface.
36453         * lib/strptime.c: Likewise.
36454         * lib/time_r.c: Likewise.
36455         * lib/timegm.c: Likewise.
36456         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
36457         needed.
36458         * lib/timegm.c: Don't include timegm.h; no longer needed.
36459         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
36460         time.h now handles any problems in that area.
36461         (struct timespec, nanosleep): Remove; time.h now arranges for these.
36462         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
36463         that time.h defines struct timespec.
36464         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
36465         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
36466         handles that.
36467         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
36468         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
36469         needed.  Set REPLACE_LOCALTIME.
36470         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
36471         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
36472         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
36473         nanosleep; time_h.m4 now does that.  Don't require
36474         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
36475         module handles this now.
36476         * modules/getdate (Depends-on): Remove timespec.  Add time.
36477         * modules/nanosleep (Depends-on): Likewise.
36478         * modules/stat-time (Depends-on): Likewise.
36479         * modules/nanosleep (Include): Include time.h, not timespec.h.
36480         * modules/strptime (Files): Remove lib/strptime.h.
36481         (Depends-on): Add extensions, time.
36482         (Include): Include time.h, not strptime.h.
36483         * modules/time_r (Files): Remove lib/time_r.h.
36484         (Depends-on): Add time.
36485         (Include): Include time.h, not time_r.h.
36486         * modules/timegm: Likewise.
36487         * modules/timespec (Description): Now does timespec-related decls
36488         of our own, instead of struct timespec itself.
36489         (Depends-on): Add time; remove extensions.
36490         (Maintainer): Add self.
36491         * modules/utimecmp (Depends-on): Add time; remove timespec.
36492         * modules/utimens (Depends-on): Likewise.
36493         * modules/xnanosleep (Depends-on): Likewise.
36494
36495 2007-02-11  Bruno Haible  <bruno@clisp.org>
36496
36497         * lib/c-strstr.c: Include allocsa.h.
36498         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36499         * lib/c-strcasestr.c: Include allocsa.h.
36500         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36501         * lib/strcasestr.c: Include allocsa.h.
36502         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36503         * lib/mbsstr.c: Include allocsa.h.
36504         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
36505         allocsa/freesa instead of malloc/free.
36506         * lib/mbscasestr.c: Include allocsa.h.
36507         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
36508         allocsa/freesa instead of malloc/free.
36509         * modules/c-strstr (Depends-on): Add allocsa.
36510         * modules/c-strcasestr (Depends-on): Likewise.
36511         * modules/strcasestr (Depends-on): Likewise.
36512         * modules/mbsstr (Depends-on): Likewise.
36513         * modules/mbscasestr (Depends-on): Likewise.
36514
36515 2007-02-11  Bruno Haible  <bruno@clisp.org>
36516
36517         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
36518
36519         * modules/mbsspn-tests: New file.
36520         * tests/test-mbsspn.sh: New file.
36521         * tests/test-mbsspn.c: New file.
36522
36523 2007-02-11  Bruno Haible  <bruno@clisp.org>
36524
36525         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
36526
36527         * modules/mbspbrk-tests: New file.
36528         * tests/test-mbspbrk.sh: New file.
36529         * tests/test-mbspbrk.c: New file.
36530
36531 2007-02-11  Bruno Haible  <bruno@clisp.org>
36532
36533         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
36534         unneeded cast.
36535
36536         * modules/mbscspn-tests: New file.
36537         * tests/test-mbscspn.sh: New file.
36538         * tests/test-mbscspn.c: New file.
36539
36540 2007-02-11  Bruno Haible  <bruno@clisp.org>
36541
36542         * modules/mbscasecmp-tests: New file.
36543         * tests/test-mbscasecmp.sh: New file.
36544         * tests/test-mbscasecmp.c: New file.
36545
36546 2007-02-11  Bruno Haible  <bruno@clisp.org>
36547
36548         Ensure O(n) worst-case complexity of mbscasestr.
36549         * lib/mbscasestr.c: Include stdbool.h.
36550         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
36551         functions.
36552         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
36553         the bookkeeping indicates that it's worth it.
36554         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
36555
36556         * modules/mbscasestr-tests: New file.
36557         * tests/test-mbscasestr1.c: New file.
36558         * tests/test-mbscasestr2.sh: New file.
36559         * tests/test-mbscasestr2.c: New file.
36560         * tests/test-mbscasestr3.sh: New file.
36561         * tests/test-mbscasestr3.c: New file.
36562         * tests/test-mbscasestr4.sh: New file.
36563         * tests/test-mbscasestr4.c: New file.
36564         * m4/locale-tr.m4: New file.
36565
36566 2007-02-11  Bruno Haible  <bruno@clisp.org>
36567
36568         Ensure O(n) worst-case complexity of mbsstr.
36569         * lib/mbsstr.c: Include stdbool.h.
36570         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
36571         functions.
36572         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
36573         bookkeeping indicates that it's worth it.
36574         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
36575
36576         * modules/mbsstr-tests: New file.
36577         * tests/test-mbsstr1.c: New file.
36578         * tests/test-mbsstr2.sh: New file.
36579         * tests/test-mbsstr2.c: New file.
36580         * tests/test-mbsstr3.sh: New file.
36581         * tests/test-mbsstr3.c: New file.
36582         * m4/locale-fr.m4: New file.
36583
36584 2007-02-11  Bruno Haible  <bruno@clisp.org>
36585
36586         * lib/mbsrchr.c (mbsrchr): Fix bug.
36587
36588         * modules/mbsrchr-tests: New file.
36589         * tests/test-mbsrchr.sh: New file.
36590         * tests/test-mbsrchr.c: New file.
36591
36592 2007-02-11  Bruno Haible  <bruno@clisp.org>
36593
36594         * lib/mbschr.c (mbschr): Fix bug.
36595
36596         * modules/mbschr-tests: New file.
36597         * tests/test-mbschr.sh: New file.
36598         * tests/test-mbschr.c: New file.
36599         * m4/locale-zh.m4: New file.
36600
36601 2007-02-11  Bruno Haible  <bruno@clisp.org>
36602
36603         Support for copying multibyte string iterators.
36604         * lib/mbiter.h: Include <string.h>.
36605         (mbiter_multi_copy): New function.
36606         (mbi_copy): New macro.
36607         * lib/mbuiter.h: Include <string.h>.
36608         (mbuiter_multi_copy): New function.
36609         (mbui_copy): New macro.
36610
36611 2007-02-11  Bruno Haible  <bruno@clisp.org>
36612
36613         New module mbslen.
36614         * modules/mbslen: New file.
36615         * lib/mbslen.c: New file.
36616         * lib/string_.h (mbslen): New declaration.
36617         * m4/mbslen.m4: New file.
36618         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36619         GNULIB_MBSLEN.
36620         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
36621         * MODULES.html.sh (Internationalization functions): Add mbslen.
36622
36623 2007-02-11  Bruno Haible  <bruno@clisp.org>
36624
36625         Ensure O(n) worst-case complexity of strcasestr substitute.
36626         * lib/strcasestr.c: Include stdbool.h.
36627         (knuth_morris_pratt): New function.
36628         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
36629         bookkeeping indicates that it's worth it.
36630         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
36631
36632         * modules/strcasestr-tests: New file.
36633         * tests/test-strcasestr.c: New file.
36634
36635 2007-02-11  Bruno Haible  <bruno@clisp.org>
36636
36637         Ensure O(n) worst-case complexity of c_strcasestr.
36638         * lib/c-strcasestr.c: Include stdbool.h, string.h.
36639         (knuth_morris_pratt): New function.
36640         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
36641         the bookkeeping indicates that it's worth it.
36642         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
36643
36644         * modules/c-strcasestr-tests: New file.
36645         * tests/test-c-strcasestr.c: New file.
36646
36647 2007-02-11  Bruno Haible  <bruno@clisp.org>
36648
36649         Ensure O(n) worst-case complexity of c_strstr.
36650         * lib/c-strstr.c: Include stdbool.h, string.h.
36651         (knuth_morris_pratt): New function.
36652         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
36653         bookkeeping indicates that it's worth it.
36654         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
36655
36656         * lib/c-strstr.c: Complete rewrite for maintainability.
36657
36658         * modules/c-strstr-tests: New file.
36659         * tests/test-c-strstr.c: New file.
36660
36661 2007-02-11  Bruno Haible  <bruno@clisp.org>
36662
36663         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
36664         5.2.1 and earlier, whereby \055 was treated just like the range
36665         delimiter '-'.
36666         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
36667
36668 2007-02-08  Bruno Haible  <bruno@clisp.org>
36669
36670         * modules/regex (Depends-on): Add stdbool.
36671         Reported by Dalibor Topic <robilad@kaffe.org>.
36672
36673 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
36674
36675         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
36676         Prefer returning from main to exiting from it.
36677         Remove unnecessary parens after sizeof.
36678
36679 2007-02-05  Bruno Haible  <bruno@clisp.org>
36680
36681         New module mbssep.
36682         * modules/mbssep: New file.
36683         * lib/mbssep.c: New file.
36684         * lib/string_.h (strsep): Add a conditional link warning.
36685         (mbssep): New declaration.
36686         * m4/mbssep.m4: New file.
36687         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36688         GNULIB_MBSSEP.
36689         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
36690         * MODULES.html.sh (Internationalization functions): Add mbssep.
36691
36692 2007-02-05  Bruno Haible  <bruno@clisp.org>
36693
36694         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
36695         Optimize search in case of 1 delimiter.
36696
36697 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
36698
36699         * lib/acl.h: Include sys/types.h before sys/acl.h.
36700
36701 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
36702
36703         Merge upstream fix for glibc bugzilla #3957:
36704
36705         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
36706
36707         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
36708         bit for RE_HAT_LISTS_NOT_NEWLINE.
36709         (build_charclass_op): Remove bogus comment.
36710
36711 2007-02-05  Simon Josefsson  <simon@josefsson.org>
36712
36713         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
36714
36715 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
36716
36717         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
36718         * lib/memmem.c [!defined _LIBC]: Include config.h.
36719
36720 2007-02-04  Bruno Haible  <bruno@clisp.org>
36721
36722         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
36723         warning message.
36724
36725 2007-02-04  Bruno Haible  <bruno@clisp.org>
36726
36727         New module mbstok_r.
36728         * modules/mbstok_r: New file.
36729         * lib/mbstok_r.c: New file.
36730         * lib/string_.h (strtok_r): Change argument names to match the
36731         comments. Add a conditional link warning.
36732         (mbstok_r): New declaration.
36733         * m4/mbstok_r.m4: New file.
36734         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36735         GNULIB_MBSTOK_R.
36736         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
36737         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
36738
36739 2007-02-04  Bruno Haible  <bruno@clisp.org>
36740
36741         New module mbsspn.
36742         * modules/mbsspn: New file.
36743         * lib/mbsspn.c: New file.
36744         * lib/string_.h (strspn): Add a conditional link warning.
36745         (mbsspn): New declaration.
36746         * m4/mbsspn.m4: New file.
36747         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36748         GNULIB_MBSSPN.
36749         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
36750         * MODULES.html.sh (Internationalization functions): Add mbsspn.
36751
36752 2007-02-04  Bruno Haible  <bruno@clisp.org>
36753
36754         New module mbspbrk.
36755         * modules/mbspbrk: New file.
36756         * lib/mbspbrk.c: New file.
36757         * lib/string_.h (strpbrk): Add a conditional link warning.
36758         (mbspbrk): New declaration.
36759         * m4/mbspbrk.m4: New file.
36760         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36761         GNULIB_MBSPBRK.
36762         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
36763         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
36764
36765 2007-02-04  Bruno Haible  <bruno@clisp.org>
36766
36767         New module mbscspn.
36768         * modules/mbscspn: New file.
36769         * lib/mbscspn.c: New file.
36770         * lib/string_.h (strcspn): Add a conditional link warning.
36771         (mbscspn): New declaration.
36772         * m4/mbscspn.m4: New file.
36773         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36774         GNULIB_MBSCSPN.
36775         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
36776         * MODULES.html.sh (Internationalization functions): Add mbscspn.
36777
36778 2007-02-04  Bruno Haible  <bruno@clisp.org>
36779
36780         New module mbscasestr, reduced goal of strcasestr.
36781         * modules/mbscasestr: New file.
36782         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
36783         (mbscasestr): Renamed from strcasestr.
36784         * lib/strcasestr.c: Don't include mbuiter.h.
36785         (strcasestr): Remove support for multibyte locales.
36786         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
36787         Change the conditional link warning.
36788         (mbscasestr): New declaration.
36789         * m4/mbscasestr.m4: New file.
36790         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
36791         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
36792         REPLACE_STRCASESTR.
36793         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
36794         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36795         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
36796         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
36797         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
36798         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
36799         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
36800         (Depends-on): Remove mbuiter.
36801         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
36802
36803 2007-02-04  Bruno Haible  <bruno@clisp.org>
36804
36805         Simplify handling of strncasecmp.
36806         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
36807         the conditional link warning.
36808         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36809         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
36810         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
36811         * modules/strcase (configure.ac): Don't invoke
36812         gl_STRING_MODULE_INDICATOR.
36813         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
36814
36815 2007-02-04  Bruno Haible  <bruno@clisp.org>
36816
36817         New module mbscasecmp, reduced goal of strcasecmp.
36818         * modules/mbscasecmp: New file.
36819         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
36820         (mbscasecmp): Renamed from strcasecmp.
36821         * lib/strcasecmp.c: Don't include mbuiter.h.
36822         (strcasecmp): Remove support for multibyte locales.
36823         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
36824         Change the conditional link warning.
36825         (mbscasecmp): New declaration.
36826         * m4/mbscasecmp.m4: New file.
36827         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
36828         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
36829         REPLACE_STRCASECMP.
36830         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
36831         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36832         GNULIB_MBSCASECMP.
36833         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
36834         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
36835         * modules/strcase (Files): Remove m4/mbrtowc.m4.
36836         (Depends-on): Remove mbuiter.
36837         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
36838
36839 2007-02-04  Bruno Haible  <bruno@clisp.org>
36840
36841         New module mbsstr. Remove module strstr.
36842         * modules/mbsstr: New file.
36843         * modules/strstr: Remove file.
36844         * lib/mbsstr.c: Renamed from lib/strstr.c.
36845         (mbsstr): Renamed from strstr.
36846         * lib/string_.h (strstr): Remove declaration. Change the conditional
36847         link warning.
36848         (mbsstr): New declaration.
36849         * m4/mbsstr.m4: New file.
36850         * m4/strstr.m4: Remove file.
36851         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
36852         REPLACE_STRSTR.
36853         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
36854         Don't initialize GNULIB_STRSTR.
36855         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
36856         substitute GNULIB_STRSTR and REPLACE_STRSTR.
36857         * MODULES.html.sh (Internationalization functions): Add mbsstr.
36858         (Support for systems lacking ANSI C 89): Remove strstr.
36859
36860 2007-02-04  Bruno Haible  <bruno@clisp.org>
36861
36862         New module mbsrchr.
36863         * modules/mbsrchr: New file.
36864         * lib/mbsrchr.c: New file.
36865         * lib/string_.h (strrchr): Add a conditional link warning.
36866         (mbsrchr): New declaration.
36867         * m4/mbsrchr.m4: New file.
36868         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36869         GNULIB_MBSRCHR.
36870         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
36871         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
36872
36873 2007-02-04  Bruno Haible  <bruno@clisp.org>
36874
36875         New module mbschr.
36876         * modules/mbschr: New file.
36877         * lib/mbschr.c: New file.
36878         * lib/string_.h (strchr): Add a conditional link warning.
36879         (mbschr): New declaration.
36880         * m4/mbschr.m4: New file.
36881         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36882         GNULIB_MBSCHR.
36883         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
36884         * MODULES.html.sh (Internationalization functions): Add mbschr.
36885
36886 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
36887
36888         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
36889
36890         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
36891
36892 2007-02-04  Bruno Haible  <bruno@clisp.org>
36893
36894         New module description section 'configure.ac-early'.
36895         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
36896         (func_get_autoconf_early_snippet): New function.
36897         (func_import, func_create_testdir): Use it. Remove special cases for
36898         modules 'extensions' and 'lock'.
36899         * modules/extensions (configure.ac-early): Require
36900         gl_USE_SYSTEM_EXTENSIONS.
36901         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
36902
36903 2007-02-04  Bruno Haible  <bruno@clisp.org>
36904
36905         Make use of gcj-4.3's -fsource and -ftarget option.
36906         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
36907         and if so try the options -fsource and -ftarget.
36908         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
36909         source_version, ftarget_option, target_version arguments.
36910         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
36911         (is_envjavac_oldgcj_14_14_usable): Renamed from
36912         is_envjavac_gcj_14_14_usable.
36913         (is_envjavac_oldgcj_14_13_usable): Renamed from
36914         is_envjavac_gcj_14_13_usable.
36915         (is_gcj_present): Update.
36916         (is_gcj_43, is_gcj43_usable): New functions.
36917         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
36918         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
36919         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
36920         try the options -fsource and -ftarget.
36921
36922 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
36923
36924         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
36925         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
36926         larger value.
36927
36928 2007-02-03  Jim Meyering  <jim@meyering.net>
36929
36930         Give tools a better chance to allocate space for very large buffers.
36931         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
36932
36933         Make pwd and readlink work also when run with an unreadable parent dir
36934         on systems with openat support.
36935         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
36936         provided getcwd function, even when we have openat support.
36937         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
36938
36939 2007-02-02  Bruno Haible  <bruno@clisp.org>
36940
36941         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
36942         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
36943         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
36944         portability problems if one of these functions is only used on specific
36945         platforms.
36946         Reported by Paul Eggert.
36947
36948 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
36949
36950         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
36951         is causing more trouble than it's curing.
36952         * lib/regex_internal.h (__mempcpy): Remove.
36953         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
36954         (and make the code a tad smaller to boot).
36955         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
36956
36957 2007-02-02  Jim Meyering  <jim@meyering.net>
36958
36959         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
36960         section, not in the Makefile.am: one.
36961
36962 2007-02-02  Eric Blake  <ebb9@byu.net>
36963
36964         * lib/strchrnul.c: Always include config.h first.
36965
36966         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
36967         gnulib strstr is not necessary here.
36968
36969 2007-02-02  Simon Josefsson  <simon@josefsson.org>
36970
36971         * m4/socklen.m4: Fix typo.
36972
36973 2007-02-02  Eric Blake  <ebb9@byu.net>
36974
36975         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
36976         * modules/netinet_in (Makefile.am): Likewise.
36977
36978 2007-02-01  Bruno Haible  <bruno@clisp.org>
36979
36980         * lib/string_.h (GL_LINK_WARNING): New macro.
36981         (strcasecmp, strstr, strcasestr): If provided by the system,
36982         conditionally define as a macro that leads to a warning instead of to
36983         an error.
36984         (strncasecmp): Conditionally define as a macro that leads to a warning.
36985
36986 2007-02-01  Karl Berry  <karl@gnu.org>
36987
36988         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
36989
36990 2007-02-01  Bruno Haible  <bruno@clisp.org>
36991
36992         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
36993         renamings.
36994
36995 2007-02-01  Eric Blake  <ebb9@byu.net>
36996
36997         * modules/regex (Depends-on): Revert dependence on mempcpy.
36998         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
36999         module's definition of mempcpy.
37000         Reported by Paul Eggert.
37001
37002 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
37003
37004         * lib/string_.h: If the gnulib module XYZ is not present, undefine
37005         the symbol XYZ before redefining it.  This fixes a problem with
37006         programs that don't use XYZ, when compiled on systems that define
37007         XYZ to something else.
37008
37009 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
37010
37011         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
37012         occurs when "mkdir -m foo" creates a setgid directory that is (1)
37013         writeable to group or other and (2) is intended to have a special
37014         mode bit that is set or cleared.  In such a case, the directory
37015         should be neither group- nor other-writeable until the special
37016         mode bits are right.
37017
37018 2007-01-31  Eric Blake  <ebb9@byu.net>
37019
37020         * modules/mountlist (Depends-on): Add strstr.
37021
37022         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
37023         bug.
37024         * modules/string (Makefile.am): Remove redundant replacement.
37025         * modules/regex (Depends-on): Add mempcpy.
37026
37027 2007-01-31  Bruno Haible  <bruno@clisp.org>
37028
37029         New module description field 'Link'.
37030         * gnulib-tool (func_usage): Document --extract-link-directive.
37031         (sed_extract_prog): Recognize 'Link' directive.
37032         (func_get_link_directive): New function.
37033         (func_import): Show summary of link directives.
37034         Handle --extract-link-directive option.
37035         * modules/acl (Link): New section.
37036         * modules/clock-time (Link): New section.
37037         * modules/euidaccess (Link): New section.
37038         * modules/gettext (Link): New section.
37039         * modules/iconv (Link): New section.
37040         * modules/lock (Link): New section.
37041         * modules/nanosleep (Link): New section.
37042         * modules/readline (Link): New section.
37043
37044 2007-01-27  Bruno Haible  <bruno@clisp.org>
37045
37046         Enforce the use of gnulib modules for unportable <string.h> functions.
37047         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
37048         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
37049         (gl_HEADER_STRING_H_BODY): Require it.
37050         * lib/string_.h: If the gnulib module XYZ is not present, redefine
37051         the symbol XYZ to one that gives a link error.
37052         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
37053         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
37054         * modules/mempcpy (configure.ac): Likewise.
37055         * modules/memrchr (configure.ac): Likewise.
37056         * modules/stpcpy (configure.ac): Likewise.
37057         * modules/stpncpy (configure.ac): Likewise.
37058         * modules/strcase (configure.ac): Likewise.
37059         * modules/strcasestr (configure.ac): Likewise.
37060         * modules/strchrnul (configure.ac): Likewise.
37061         * modules/strdup (configure.ac): Likewise.
37062         * modules/strndup (configure.ac): Likewise.
37063         * modules/strnlen (configure.ac): Likewise.
37064         * modules/strpbrk (configure.ac): Likewise.
37065         * modules/strsep (configure.ac): Likewise.
37066         * modules/strstr (configure.ac): Likewise.
37067         * modules/strtok_r (configure.ac): Likewise.
37068
37069 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
37070
37071         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
37072
37073 2007-01-30  Jim Meyering  <jim@meyering.net>
37074
37075         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
37076
37077 2007-01-29  Bruno Haible  <bruno@clisp.org>
37078
37079         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
37080         * lib/execute.c: Likewise.
37081         * lib/pipe.c: Likewise.
37082         * lib/printf-args.h: Likewise.
37083         * lib/printf-args.c: Likewise.
37084         * lib/printf-parse.c: Likewise.
37085         * lib/vasnprintf.c: Likewise.
37086
37087 2007-01-29  Eric Blake  <ebb9@byu.net>
37088
37089         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
37090         declaration.
37091
37092 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
37093
37094         * lib/strptime.h (strptime): Use 'restrict' for args where
37095         POSIX requires this.
37096         * lib/strptime.c (strptime): Likewise.
37097         Change license notice from LGPL to GPL, since gnulib-tool will
37098         change this as needed.
37099         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
37100         defined.
37101         Include "strptime.h" first, to check interface.
37102         Do not #undef _LIBC and _NL_CURRENT.
37103         Do not include <stdlib.h>; no longer needed.
37104         Include "time_r.h" and declare ptime_locale_status
37105         only if _LIBC is not defined.
37106         (__P): Remove unused macro.
37107         (match_string): Bring back glibc version, but use it only if _LIBC
37108         is defined.
37109         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
37110         Remove unnecessary assertion and abort() call.
37111         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
37112         * m4/strptime.m4: Fix serial number comment.
37113         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
37114         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
37115         (Depends-on): Add time_r.
37116
37117 2007-01-29  Bruno Haible  <bruno@clisp.org>
37118
37119         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37120         strptime.
37121         * modules/strptime (Depends-on): Add stdbool.
37122         * lib/strptime.h: Include <time.h> always. Add comments.
37123
37124 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
37125
37126         * modules/strptime: New file.
37127         * lib/strptime.h: New file.
37128         * lib/strptime.c: New file.
37129         * m4/strptime.m4: New file.
37130
37131 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
37132
37133         * MODULES.html.sh: New module mpsort.
37134         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
37135
37136         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
37137         a circularity problem with HP-UX ia64 reported by Bob Proulx in
37138         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
37139         All uses changed.
37140         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
37141         All uses changed.
37142         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
37143         to _Restrict_.
37144         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
37145         the parameter matches the prototype.
37146
37147 2007-01-28  Jim Meyering  <jim@meyering.net>
37148
37149         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
37150         sys/time.h here, reverting that part of the previous patch:
37151         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
37152
37153 2007-01-28  Bruno Haible  <bruno@clisp.org>
37154
37155         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
37156         value of $(SYS_TIME_H).
37157         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
37158         remove it conditionally, too. [added by Jim Meyering]
37159         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
37160         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
37161         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
37162         GETTIMEOFDAY_REPLACEMENT to 1.
37163
37164 2007-01-28  Bruno Haible  <bruno@clisp.org>
37165
37166         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
37167         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
37168         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
37169         Set UNISTD_H instead of UNISTD_H2.
37170         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
37171
37172 2007-01-28  Bruno Haible  <bruno@clisp.org>
37173
37174         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
37175         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
37176
37177 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37178
37179         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
37180         (func_create_testdir): Ensure C locale for `grep' and `tr'
37181         character ranges.
37182         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
37183         ACLOCAL_AMFLAGS parsing state machine.
37184
37185 2007-01-27  Bruno Haible  <bruno@clisp.org>
37186
37187         * modules/unistr/base: Update.
37188
37189 2007-01-27  Bruno Haible  <bruno@clisp.org>
37190
37191         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
37192         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
37193         * modules/unistr/u32-mbtouc-unsafe: Renamed from
37194         modules/unistr/u32-mbtouc.
37195         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
37196         * lib/unistr.h: Update.
37197         * lib/linebreak.c: Update.
37198         * modules/unistr/u32-mbtouc: Renamed from
37199         modules/unistr/u32-mbtouc-safe.
37200         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
37201         * lib/unistr.h: Update.
37202         * lib/unistr/u32-to-u8.c: Update.
37203         * lib/unistr/u32-to-u16.c: Update.
37204
37205 2007-01-27  Bruno Haible  <bruno@clisp.org>
37206
37207         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
37208         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
37209         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
37210         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
37211         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
37212         * modules/unistr/u16-mbtouc-unsafe: Renamed from
37213         modules/unistr/u16-mbtouc.
37214         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
37215         * lib/unistr.h: Update.
37216         * lib/linebreak.c: Update.
37217         * modules/linebreak: Update.
37218         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
37219         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
37220         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
37221         * modules/unistr/u16-mbtouc: Renamed from
37222         modules/unistr/u16-mbtouc-safe.
37223         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
37224         * lib/unistr.h: Update.
37225         * lib/unistr/u16-to-u8.c: Update.
37226         * modules/unistr/u16-to-u8: Update.
37227         * lib/unistr/u16-to-u32.c: Update.
37228         * modules/unistr/u16-to-u32: Update.
37229
37230 2007-01-27  Bruno Haible  <bruno@clisp.org>
37231
37232         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
37233         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
37234         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
37235         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
37236         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
37237         * modules/unistr/u8-mbtouc-unsafe: Renamed from
37238         modules/unistr/u8-mbtouc.
37239         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
37240         * lib/unistr.h: Update.
37241         * lib/striconveh.c: Update.
37242         * modules/striconveh: Update.
37243         * lib/linebreak.c: Update.
37244         * modules/linebreak: Update.
37245         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
37246         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
37247         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
37248         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
37249         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
37250         * lib/unistr.h: Update.
37251         * lib/striconveh.c: Update.
37252         * modules/striconveh: Update.
37253         * lib/unistr/u8-to-u16.c: Update.
37254         * modules/unistr/u8-to-u16: Update.
37255         * lib/unistr/u8-to-u32.c: Update.
37256         * modules/unistr/u8-to-u32: Update.
37257
37258 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37259
37260         Sync from Libtool.
37261         * lib/argz.c: Do not include strings.h nor memory.h, include
37262         string.h unconditionally.  Patch by Simon Josefsson.
37263
37264 2007-01-27  Bruno Haible  <bruno@clisp.org>
37265
37266         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
37267         from gl_HEADER_STRING_H_BODY.
37268         (gl_HEADER_STRING_H_BODY): Require it.
37269         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
37270         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
37271         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
37272         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
37273         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37274         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
37275         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37276         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
37277         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
37278         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37279         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
37280         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
37281         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
37282         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37283         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
37284
37285 2007-01-27  Bruno Haible  <bruno@clisp.org>
37286
37287         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
37288         check_PROGRAMS into noinst_PROGRAMS.
37289         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
37290         check_PROGRAMS in this case.
37291         (func_import): Set for_test to false.
37292         (func_create_testdir): Set for_test to true.
37293
37294 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37295             Bruno Haible  <bruno@clisp.org>
37296
37297         * modules/strcasestr (Files): Remove lib/strcasestr.h.
37298         (Depends-on): Add string.
37299         (Includes): Use <string.h> instead of strcasestr.h.
37300         * modules/string (Makefile.am): Also substitute the value of
37301         REPLACE_STRCASESTR.
37302         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
37303         assume strcasestr is declared in <string.h> not <strings.h>. Also
37304         set REPLACE_STRCASESTR.
37305         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
37306         REPLACE_STRCASESTR.
37307         * lib/strcasestr.h: Remove file.
37308         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
37309         * lib/string_.h (strcasestr): New declaration.
37310
37311 2007-01-27  Bruno Haible  <bruno@clisp.org>
37312
37313         * lib/string_.h: Use 'extern'.
37314
37315 2007-01-27  Jim Meyering  <jim@meyering.net>
37316
37317         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
37318         of set-but-not-used local, "q".
37319
37320         * lib/mempcpy.c: Include <config.h> before <string.h>.
37321         This fixes a compilation error on HP-UX, due to the system's
37322         "restrict"-using mempcpy prototype.
37323
37324 2007-01-26  Bruno Haible  <bruno@clisp.org>
37325
37326         Small optimization.
37327         * lib/javacomp.c: Include c-strstr.h.
37328          (is_envjavac_gcj): Use c_strstr instead of strstr.
37329         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
37330
37331 2007-01-26  Bruno Haible  <bruno@clisp.org>
37332
37333         * MODULES.html.sh (Unicode string functions): Add the new modules.
37334
37335         * modules/uniconv/u32-strconv-to-locale: New file.
37336         * lib/uniconv/u32-strconv-to-locale.c: New file.
37337
37338         * modules/uniconv/u16-strconv-to-locale: New file.
37339         * lib/uniconv/u16-strconv-to-locale.c: New file.
37340
37341         * modules/uniconv/u8-strconv-to-locale: New file.
37342         * lib/uniconv/u8-strconv-to-locale.c: New file.
37343
37344         * modules/uniconv/u32-strconv-from-locale: New file.
37345         * lib/uniconv/u32-strconv-from-locale.c: New file.
37346
37347         * modules/uniconv/u16-strconv-from-locale: New file.
37348         * lib/uniconv/u16-strconv-from-locale.c: New file.
37349
37350         * modules/uniconv/u8-strconv-from-locale: New file.
37351         * lib/uniconv/u8-strconv-from-locale.c: New file.
37352
37353         * modules/uniconv/u32-strconv-to-enc: New file.
37354         * lib/uniconv/u32-strconv-to-enc.c: New file.
37355         * modules/uniconv/u32-strconv-to-enc-tests: New file.
37356         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
37357
37358         * modules/uniconv/u16-strconv-to-enc: New file.
37359         * lib/uniconv/u16-strconv-to-enc.c: New file.
37360         * lib/uniconv/u-strconv-to-enc.h: New file.
37361         * modules/uniconv/u16-strconv-to-enc-tests: New file.
37362         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
37363
37364         * modules/uniconv/u8-strconv-to-enc: New file.
37365         * lib/uniconv/u8-strconv-to-enc.c: New file.
37366         * modules/uniconv/u8-strconv-to-enc-tests: New file.
37367         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
37368
37369         * modules/uniconv/u32-strconv-from-enc: New file.
37370         * lib/uniconv/u32-strconv-from-enc.c: New file.
37371         * modules/uniconv/u32-strconv-from-enc-tests: New file.
37372         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
37373
37374         * modules/uniconv/u16-strconv-from-enc: New file.
37375         * lib/uniconv/u16-strconv-from-enc.c: New file.
37376         * modules/uniconv/u16-strconv-from-enc-tests: New file.
37377         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
37378
37379         * modules/uniconv/u8-strconv-from-enc: New file.
37380         * lib/uniconv/u8-strconv-from-enc.c: New file.
37381         * lib/uniconv/u-strconv-from-enc.h: New file.
37382         * modules/uniconv/u8-strconv-from-enc-tests: New file.
37383         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
37384
37385         * modules/uniconv/u32-conv-from-enc: New file.
37386         * lib/uniconv/u32-conv-from-enc.c: New file.
37387         * modules/uniconv/u32-conv-from-enc-tests: New file.
37388         * tests/uniconv/test-u32-conv-from-enc.c: New file.
37389
37390         * modules/uniconv/u16-conv-from-enc: New file.
37391         * lib/uniconv/u16-conv-from-enc.c: New file.
37392         * lib/uniconv/u-conv-from-enc.h: New file.
37393         * modules/uniconv/u16-conv-from-enc-tests: New file.
37394         * tests/uniconv/test-u16-conv-from-enc.c: New file.
37395
37396         * modules/uniconv/u8-conv-from-enc: New file.
37397         * lib/uniconv/u8-conv-from-enc.c: New file.
37398         * modules/uniconv/u8-conv-from-enc-tests: New file.
37399         * tests/uniconv/test-u8-conv-from-enc.c: New file.
37400
37401         * modules/uniconv/base: New file.
37402         * lib/uniconv.h: New file.
37403
37404 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
37405
37406         * doc/gnulib-tool.texi (Initial import): Update to match current
37407         behavior with strdup module.
37408         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
37409         * lib/memmem.h: Remove; all uses removed.  This is now done
37410         by <string.h>.
37411         * lib/mempcpy.h: Likewise.
37412         * lib/memrchr.h: Likewise.
37413         * lib/stpcpy.h: Likewise.
37414         * lib/stpncpy.h: Likewise.
37415         * lib/strcase.h: Likewise.
37416         * lib/strchrnul.h: Likewise.
37417         * lib/strdup.h: Likewise.
37418         * lib/strndup.h: Likewise.
37419         * lib/strnlen.h: Likewise.
37420         * lib/strpbrk.h: Likewise.
37421         * lib/strsep.h: Likewise.
37422         * lib/strstr.h: Likewise.
37423         * lib/strtok_r.h: Likewise.
37424         * lib/string_.h: New file.
37425         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
37426         Rely on <string.h> instead.
37427         * lib/canon-host.c: Likewise.
37428         * lib/chdir-long.c: Likewise.
37429         * lib/concatpath.c: Likewise.
37430         * lib/exclude.c: Likewise.
37431         * lib/fchdir.c: Likewise.
37432         * lib/getaddrinfo.c: Likewise.
37433         * lib/getcwd.c: Likewise.
37434         * lib/getsubopt.c: Likewise.
37435         * lib/glob.c: Likewise.
37436         * lib/hard-locale.c: Likewise.
37437         * lib/iconvme.c: Likewise.
37438         * lib/javacomp.c: Likewise.
37439         * lib/mempcpy.c: Likewise.
37440         * lib/memrchr.c: Likewise.
37441         * lib/regex_internal.h: Likewise.
37442         * lib/stpncpy.c: Likewise.
37443         * lib/strcasecmp.c: Likewise.
37444         * lib/strchrnul.c: Likewise.
37445         * lib/strdup.c: Likewise.
37446         * lib/striconv.c: Likewise.
37447         * lib/striconveh.c: Likewise.
37448         * lib/striconveha.c: Likewise.
37449         * lib/strncasecmp.c: Likewise.
37450         * lib/strndup.c: Likewise.
37451         * lib/strnlen.c: Likewise.
37452         * lib/strsep.c: Likewise.
37453         * lib/strstr.c: Likewise.
37454         * lib/strtok_r.c: Likewise.
37455         * lib/userspec.c: Likewise.
37456         * lib/w32spawn.h: Likewise.
37457         * lib/xstrndup.c: Likewise.
37458         * lib/mountlist.c (strstr): Remove decl.
37459         * m4/string_h.m4: New file.
37460         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
37461         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
37462         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
37463         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
37464         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
37465         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
37466         Set REPLACE_STRCASECMP if necessary.
37467         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
37468         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
37469         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
37470         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
37471         HAVE_DECL_STRDUP if necessary.
37472         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
37473         since gl_FUNC_STRNDUP does that now.
37474         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
37475         Check for decl here...
37476         (gl_PREREQ_STRNLEN): ... not here.
37477         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
37478         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
37479         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
37480         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
37481         necessary.
37482         * modules/string: New file.
37483         * modules/memmem (Files): Remove special-purpose include file.
37484         (Depends-on): Add string.
37485         (Include): Include <string.h>, not the removed file.
37486         * modules/mempcpy: Likewise.
37487         * modules/memrchr: Likewise.
37488         * modules/stpcpy: Likewise.
37489         * modules/stpncpy: Likewise.
37490         * modules/strcase: Likewise.
37491         * modules/strchrnul: Likewise.
37492         * modules/strdup: Likewise.
37493         * modules/strndup: Likewise.
37494         * modules/strnlen: Likewise.
37495         * modules/strpbrk: Likewise.
37496         * modules/strsep: Likewise.
37497         * modules/strstr: Likewise.
37498         * modules/strtok_r: Likewise.
37499         * tests/test-dirname.c: Don't include "strdup.h", since
37500         <string.h> now suffices.
37501         * tests/test-memmem.c: Don't include "memmem.h", since
37502         <string.h> now suffices.
37503
37504 2007-01-25  Bruno Haible  <bruno@clisp.org>
37505
37506         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
37507         *resultp is 0.
37508
37509         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
37510         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
37511         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
37512         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
37513
37514         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
37515         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
37516         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
37517         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
37518         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
37519         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
37520
37521 2007-01-24  Bruno Haible  <bruno@clisp.org>
37522
37523         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
37524         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
37525         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
37526         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
37527         gl_FUNC_FTS_CORE.
37528         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
37529         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
37530         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
37531         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
37532         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
37533         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
37534         gl_FUNC_FCHOWNAT.
37535         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
37536         gl_FUNC_STRFTIME.
37537         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
37538         Reported by Ralf Wildenhues.
37539
37540 2007-01-24  Bruno Haible  <bruno@clisp.org>
37541
37542         Drop AC_REQUIRE calls that are redundant with the module dependencies.
37543         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
37544         gl_GETADDRINFO.
37545         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
37546         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
37547         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
37548
37549 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
37550
37551         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
37552         Don't use 'exit'; just return from 'main'.
37553         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
37554
37555         * lib/fnmatch_.h: Readjust white space and comments to match
37556         glibc, to avoid spurious diffs.
37557
37558 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
37559
37560         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
37561         2004-12-01 change by Jakub Jelinek, since this code won't compile
37562         if !LIBC.  Problem reported by Bob Proulx.
37563
37564 2007-01-23  Bruno Haible  <bruno@clisp.org>
37565
37566         * lib/striconveh.c: Include c-strcaseeq.h.
37567         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
37568         * modules/striconveh (Depends-on): Add c-strcaseeq.
37569
37570 2007-01-23  Bruno Haible  <bruno@clisp.org>
37571
37572         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
37573
37574         * modules/c-strcaseeq: New file.
37575         * lib/c-strcaseeq.h: New file.
37576
37577         * modules/streq: New file.
37578         * lib/streq.h: New file.
37579
37580 2007-01-23  Bruno Haible  <bruno@clisp.org>
37581
37582         * modules/striconveha-tests: New file.
37583         * tests/test-striconveha.c: New file.
37584
37585         * lib/striconveha.h: Include <stdbool.h>.
37586         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
37587         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
37588         (mem_iconveha_notranslit): Renamed from mem_iconveha.
37589         (mem_iconveha): New function.
37590         (str_iconveha_notranslit): Renamed from str_iconveha.
37591         (str_iconveha): New function.
37592         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
37593         c-strcase.
37594
37595 2007-01-23  Bruno Haible  <bruno@clisp.org>
37596
37597         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
37598         encodings without forgiving before trying any encoding with handler.
37599         (str_iconveha): Try all encodings without forgiving before trying any
37600         encoding with handler.
37601
37602 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
37603
37604         Import the following changes from libc.
37605
37606         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
37607
37608         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
37609
37610         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
37611
37612         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
37613         normal_bracket label.
37614
37615         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
37616
37617         [BZ #361]
37618         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
37619         to normal_bracket after fetching the next character.
37620
37621 2007-01-22  Bruno Haible  <bruno@clisp.org>
37622
37623         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
37624         argument.
37625         * lib/striconveh.c (iconv_carefully_1): New function.
37626         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
37627         argument.
37628         (str_cd_iconveh): Update.
37629         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
37630         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
37631         * tests/test-striconveh.c (MAGIC): New macro.
37632         (new_offsets): New function.
37633         (main): Test call with and without offsets.
37634
37635 2007-01-22  Bruno Haible  <bruno@clisp.org>
37636
37637         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
37638         * modules/sys_select (Makefile.am): Likewise.
37639         * modules/sys_socket (Makefile.am): Likewise.
37640         * modules/sys_time (Makefile.am): Likewise.
37641
37642 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
37643
37644         * modules/gettimeofday (License): Change from GPL to LGPL, since
37645         gettimeofday is a library function.
37646
37647 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37648
37649         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
37650
37651 2007-01-21  Bruno Haible  <bruno@clisp.org>
37652
37653         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
37654
37655 2007-01-21  Bruno Haible  <bruno@clisp.org>
37656
37657         * modules/striconveha: New file.
37658         * lib/striconveha.h: New file.
37659         * lib/striconveha.c: New file.
37660         * MODULES.html.sh (Internationalization functions): Add striconveha.
37661         * lib/striconv.c (str_iconv): Optimize the case of an empty input
37662         string.
37663         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
37664
37665 2007-01-21  Bruno Haible  <bruno@clisp.org>
37666
37667         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
37668         * lib/striconveh.c (str_iconveh): Likewise.
37669
37670 2007-01-21  Bruno Haible  <bruno@clisp.org>
37671
37672         * lib/striconveh.h (mem_iconveh): New declaration.
37673         * lib/striconveh.c (mem_iconveh): New function.
37674         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
37675
37676 2007-01-21  Bruno Haible  <bruno@clisp.org>
37677
37678         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
37679
37680         * lib/striconveh.h (mem_cd_iconveh): Change specification.
37681         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
37682         original result buffer.
37683         (str_cd_iconveh): Update.
37684         * tests/test-striconveh.c (main): Update.
37685
37686         * lib/striconv.h (mem_cd_iconv): Change specification.
37687         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
37688         result buffer.
37689         (str_cd_iconv): Update.
37690         * tests/test-striconv.c (main): Update.
37691
37692 2007-01-21  Bruno Haible  <bruno@clisp.org>
37693
37694         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
37695
37696 2007-01-20  Jim Meyering  <jim@meyering.net>
37697
37698         * lib/userspec.c (parse_with_separator): If a user or group string
37699         starts with "+", skip the corresponding name-to-ID look-up, since
37700         such a look-up must fail: user and group names may not include "+".
37701
37702 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
37703
37704         * lib/poll.c: Include sys/time.h and time.h unconditionally,
37705         since we now assume the sys_time module.
37706         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
37707         check for sys/time.h; no longer needed.
37708         * modules/poll (Depends-on): Depend on sys_time.
37709
37710 2007-01-18  Bruno Haible  <bruno@clisp.org>
37711
37712         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
37713         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
37714
37715         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
37716         gettimeofday.
37717
37718         * tests/test-gettimeofday.c: Include <time.h>.
37719         (dummy): Remove variable.
37720
37721         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
37722         gl_HEADER_SYS_TIME_H.
37723         (gl_HEADER_SYS_TIME_H): New macro.
37724
37725         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
37726         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37727         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
37728         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
37729         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37730         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
37731         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
37732         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37733         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
37734         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
37735         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37736
37737         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
37738         last change; it caused a compilation error when cross-compiling to
37739         Cygwin.
37740
37741 2007-01-18  Jim Meyering  <jim@meyering.net>
37742
37743         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
37744         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
37745         than the race-prone "test -d sys || mkdir sys".
37746         (configure.ac): Use AC_PROG_MKDIR_P.
37747         * modules/sys_select: Likewise.
37748         * modules/sys_socket: Likewise.
37749         * modules/sys_time: Likewise.
37750
37751 2007-01-18  Eric Blake  <ebb9@byu.net>
37752
37753         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
37754         replace gettimeofday.
37755         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
37756         name, to avoid infinite recursion.
37757
37758 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
37759
37760         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
37761         module sys_time.
37762         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
37763         assume timespec.h defines struct timeval.
37764         * lib/settime.c: Likewise.
37765         * lib/utimens.c: Likewise.
37766         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
37767         since we now assume the gettimeofday module.
37768         * lib/tempname.c (__gen_tempname): Likewise.
37769         * lib/gettimeofday.h: Remove.
37770         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
37771         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
37772         Include <time.h>, for 'time()'.
37773         (localtime_buffer_addr): Also use this workaround if
37774         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
37775         to simplify the uses.  All uses changed.
37776         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
37777         that #undef is inside {}, and 'const' follows type name consistently.
37778         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
37779         (gettimeofday): Do not use the maximum possible value for
37780         tv->tv_usec, since that might break usages other than ls.c.
37781         Instead, we'll leave ls.c alone.  This undoes today's patch
37782         by Bruno.  Add a compile-time warning for 1s-clock resolution;
37783         we've never observed the problem but might as well keep the
37784         canary.
37785         * lib/nanosleep.c: Include timespec.h first, for interface check.
37786         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
37787         now assume the sys_time module.
37788         * lib/tempname.c: Likewise.
37789         * lib/timespec.h: Likewise.
37790         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
37791         needed.
37792         * lib/strftime.c: Likewise.
37793         * lib/timespec.h: Likewise.
37794         * lib/posixtm.c: Include posixtm.h first, for interface check.
37795         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
37796         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
37797         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
37798         * lib/sys_time_.h: New file.
37799         * lib/timespec.h (struct timespec): Use long int, not long.
37800         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
37801         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
37802         Remove obsolescent call to AC_HEADER_TIME.
37803         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
37804         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
37805         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
37806         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
37807         Likewise.
37808         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
37809         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
37810         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
37811         into the sys_time module.  Check for gettimeofday just once.
37812         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
37813         for gettimeofday signature to just check the signature.  Merely
37814         compile it, since linking doesn't test signature.  Improve test for
37815         whether gettimeofday.o is actually needed.
37816         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
37817         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
37818         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
37819         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37820         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
37821         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
37822         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
37823         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
37824         than worrying about sys/time.h.
37825         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
37826         Don't bother worrying about TIME_WITH_SYS_TIME.
37827         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
37828         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
37829         * m4/sys_time_h.m4: New file.
37830         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
37831         Don't include sys/time.h.  Return from main rather than exiting.
37832         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
37833         all uses changed.
37834         * modules/gethrxtime (Depends-on): Add sys_time.
37835         * modules/gettime (Depends-on): Likewise.
37836         * modules/gettimeofday (Depends-on): Likewise.
37837         * modules/nanosleep (Depends-on): Likewise.
37838         * modules/settime (Depends-on): Likewise.
37839         * modules/tempname (Depends-on): Likewise.
37840         * modules/utimens (Depends-on): Likewise.
37841         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
37842         (Include:) Change back to <sys/time.h>.
37843         (Maintainer:) Add self.
37844         * modules/sys_time: New file.
37845         * modules/tempname (Depends-on): Add gettimeofday.
37846         * tests/test-gettimeofday.c: Include <sys/time.h>
37847         rather than gettimeofday.h.
37848
37849 2007-01-17  Bruno Haible  <bruno@clisp.org>
37850
37851         * gnulib-tool (func_get_license): Revert last patch. Instead, let
37852         the license default to GPL.
37853         (func_create_testdir): Don't complain if a module is LGPL and its
37854         tests module depends on GPLed modules.
37855
37856 2007-01-17  Bruno Haible  <bruno@clisp.org>
37857
37858         * lib/gettimeofday.c (gettimeofday): Add code for the case
37859         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
37860         maximum possible value for tv->tv_usec, rather than the minimum one.
37861
37862 2005-10-08  Martin Lambers  <marlam@marlam.de>
37863 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
37864 2007-01-16  Bruno Haible  <bruno@clisp.org>
37865
37866         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
37867         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
37868         gl_FUNC_GETTIMEOFDAY.
37869         (Include): Add gettimeofday.h.
37870         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
37871         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
37872         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
37873         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
37874         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
37875         * lib/gettimeofday.h: New file.
37876         * lib/gettimeofday.c: Include <sys/timeb.h>.
37877         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
37878         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37879         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
37880         fall back on time().
37881
37882         * tests/test-gettimeofday.c: New file.
37883         * modules/gettimeofday-tests: New file.
37884
37885 2007-01-16  Eric Blake  <ebb9@byu.net>
37886
37887         * modules/fnmatch (Depends-on): Depend on wchar.
37888         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
37889         * m4/fnmatch.m4: Likewise.
37890         * modules/mbchar (Makefile.am): Assume <wchar.h>.
37891         * m4/mbchar.m4: Likewise.
37892         * modules/mbswidth (Depends-on): Depend on wchar.
37893         * lib/mbswidth.c: Assume <wchar.h>.
37894         * m4/mbswidth.m4: Likewise.
37895         * modules/quotearg (Depends-on): Depend on wchar.
37896         * lib/quotearg.c: Assume <wchar.h>.
37897         * m4/quotearg.m4: Likewise.
37898         * modules/regex (Depends-on): Depend on wchar.
37899         * lib/regex_internal.h: Assume <wchar.h>.
37900         * m4/regex.m4: Likewise.
37901         * modules/stdint (Depends-on): Depend on wchar.
37902         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
37903         * m4/stdint.m4: Likewise.
37904         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
37905         * modules/strftime (Depends-on): Depend on wchar.
37906         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
37907         * modules/strtol (Depends-on): Depend on wchar.
37908         * lib/strtol.c: Assume <wchar.h>.
37909         * modules/wcwidth (Depends-on): Depend on wchar.
37910         * lib/wcwidth.h: Assume <wchar.h>.
37911         * m4/wcwidth.m4: Likewise.
37912
37913 2007-01-16  Bruno Haible  <bruno@clisp.org>
37914
37915         * modules/csharpexec-script: New, created from...
37916         * modules/csharpexec: ... this.
37917
37918 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
37919
37920         * modules/javaexec-script: New, created from...
37921         * modules/javaexec: ... this.
37922
37923 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37924
37925         * modules/poll (Dependencies): Add sys_select.
37926
37927 2007-01-15  Jim Meyering  <jim@meyering.net>
37928
37929         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
37930         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
37931         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
37932         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
37933
37934 2007-01-15  Bruno Haible  <bruno@clisp.org>
37935
37936         * modules/striconveh: New file.
37937         * lib/striconveh.h: New file.
37938         * lib/striconveh.c: New file.
37939         * MODULES.html.sh (Internationalization functions): Add striconveh.
37940
37941         * modules/striconveh-tests: New file.
37942         * tests/test-striconveh.c: New file.
37943
37944 2007-01-15  Bruno Haible  <bruno@clisp.org>
37945
37946         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
37947         not from GNU libiconv or GNU libc.
37948
37949 2007-01-15  Bruno Haible  <bruno@clisp.org>
37950
37951         * doc/gnulib-intro.texi (Copyright): Explain the different license
37952         terms for module descriptions, autoconf macros, tests, documentation.
37953
37954 2007-01-14  Bruno Haible  <bruno@clisp.org>
37955
37956         * modules/striconv-tests: New file.
37957         * tests/test-striconv.c: New file.
37958
37959 2007-01-14  Bruno Haible  <bruno@clisp.org>
37960
37961         * modules/iconv-tests: New file.
37962         * tests/test-iconv.c: New file.
37963
37964 2007-01-14  Bruno Haible  <bruno@clisp.org>
37965
37966         * gnulib-tool (func_get_license): For test modules, use the license of
37967         the main module.
37968
37969 2007-01-14  Bruno Haible  <bruno@clisp.org>
37970
37971         * modules/iconv (Include): Clarify that <iconv.h> can only be included
37972         if iconv is found to exist.
37973
37974 2007-01-14  Bruno Haible  <bruno@clisp.org>
37975
37976         * modules/c-ctype-tests: New file.
37977         * tests/test-c-ctype.c: New file.
37978
37979 2007-01-14  Bruno Haible  <bruno@clisp.org>
37980
37981         * modules/binary-io-tests: New file.
37982         * tests/test-binary-io.sh: New file.
37983         * tests/test-binary-io.c: New file.
37984
37985 2007-01-14  Bruno Haible  <bruno@clisp.org>
37986
37987         * modules/array-oset-tests: New file.
37988         * tests/test-array_oset.c: New file.
37989
37990 2007-01-14  Bruno Haible  <bruno@clisp.org>
37991
37992         * modules/array-list-tests: New file.
37993         * tests/test-array_list.c: New file.
37994
37995 2007-01-14  Bruno Haible  <bruno@clisp.org>
37996
37997         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
37998         and make.
37999         Reported by Simon Josefsson in
38000         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
38001
38002 2007-01-14  Bruno Haible  <bruno@clisp.org>
38003
38004         * modules/allocsa-tests: New file.
38005         * tests/test-allocsa.c: New file.
38006
38007 2007-01-14  Bruno Haible  <bruno@clisp.org>
38008
38009         * modules/fchdir (Depends-on): Add absolute-header.
38010         * modules/unistd (Depends-on): Likewise.
38011
38012 2006-12-30  Bruno Haible  <bruno@clisp.org>
38013
38014         * modules/fchdir: New file.
38015         * modules/unistd (Files): Add lib/unistd_.h.
38016         (Makefile.am): Generate unistd.h from unistd_.h.
38017         * lib/fchdir.c: New file.
38018         * lib/dirent_.h: New file.
38019         * lib/unistd_.h: New file.
38020         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
38021         * m4/fchdir.m4: New file.
38022         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
38023         (gl_HEADER_UNISTD): Invoke it.
38024         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
38025         function.
38026         * lib/backupfile.c (opendir, closedir): Undefine.
38027         * lib/chown.c (open, close): Undefine.
38028         * lib/clean-temp.c (open, close): Undefine.
38029         * lib/copy-file.c (open, close): Undefine.
38030         * lib/execute.c (open, close): Undefine.
38031         * lib/fsusage.c (open, close): Undefine.
38032         * lib/gc-gnulib.c (open, close): Undefine.
38033         * lib/getcwd.c (opendir, closedir): Undefine.
38034         * lib/glob.c (opendir, closedir): Undefine.
38035         * lib/javacomp.c (open, close): Undefine.
38036         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
38037         * lib/openat-proc.c (open, close): Undefine.
38038         * lib/pagealign_alloc.c (open, close): Undefine.
38039         * lib/pipe.c (open, close): Undefine.
38040         * lib/progreloc.c (open, close): Undefine.
38041         * lib/savedir.c (opendir, closedir): Undefine.
38042         * lib/utime.c (open, close): Undefine.
38043         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
38044
38045 2007-01-10  Bruno Haible  <bruno@clisp.org>
38046
38047         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
38048
38049 2007-01-12  Eric Blake  <ebb9@byu.net>
38050
38051         Provide a robust <wchar.h>.  Further simplifications are now
38052         possible in other modules, but not included here.
38053         * modules/wchar: New module.
38054         * m4/wchar.m4: New file.
38055         * lib/wchar_.h: Likewise.
38056         * modules/mbchar (Depends-on): Depend on wchar, as the first use
38057         of the new module.
38058         * MODULES.html.sh (Extended multibyte and wide character utilities):
38059         New section.
38060
38061 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
38062
38063         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
38064         to a reasonable default for memory allocation.
38065         (xreadlink): Don't allocate a huge buffer, to work around a buggy
38066         file system that reports garbage st_size values for symlinks.
38067         Problem reported by Liyang Hu.
38068
38069 2007-01-11  Simon Josefsson  <simon@josefsson.org>
38070
38071         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
38072         Emacs .#* auto-save files).
38073
38074 2007-01-11  Bruno Haible  <bruno@clisp.org>
38075
38076         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
38077         directory.
38078
38079 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
38080
38081         Use @...@ consistently in lib/wctype_.h.
38082         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
38083         on it being set to 1 or 0.
38084         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
38085         go back to AC_SUBSTing it.
38086         * modules/wctype (Makefile.am): Undo previous change.
38087
38088 2007-01-10  Eric Blake  <ebb9@byu.net>
38089
38090         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
38091         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
38092         * modules/wctype (Makefile.am): Likewise.
38093         Reported by Chris McGuire.
38094
38095 2007-01-10  Jim Meyering  <jim@meyering.net>
38096
38097         fts.c: a small readability/maintainability improvement
38098         * lib/fts.c (fts_read): Make this code slightly more readable and
38099         maintainable by hoisting the "sp->fts_cur = p" assignments to
38100         immediately follow the statements that set P.  Derived from
38101         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
38102
38103 2007-01-10  Eric Blake  <ebb9@byu.net>
38104
38105         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
38106         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
38107         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38108         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
38109         Reported by Chris McGuire.
38110
38111 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38112
38113         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
38114         in sed script.
38115
38116 2007-01-09  Bruno Haible  <bruno@clisp.org>
38117
38118         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
38119         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
38120         variables.
38121         (func_module): Use them.
38122
38123 2007-01-09  Bruno Haible  <bruno@clisp.org>
38124
38125         * modules/unistr/base: New file.
38126         * lib/unistr.h: New file.
38127
38128         * modules/unistr/u8-to-u16: New file.
38129         * lib/unistr/u8-to-u16.c: New file.
38130
38131         * modules/unistr/u8-to-u32: New file.
38132         * lib/unistr/u8-to-u32.c: New file.
38133
38134         * modules/unistr/u16-to-u8: New file.
38135         * lib/unistr/u16-to-u8.c: New file.
38136
38137         * modules/unistr/u16-to-u32: New file.
38138         * lib/unistr/u16-to-u32.c: New file.
38139
38140         * modules/unistr/u32-to-u8: New file.
38141         * lib/unistr/u32-to-u8.c: New file.
38142
38143         * modules/unistr/u32-to-u16: New file.
38144         * lib/unistr/u32-to-u16.c: New file.
38145
38146         * modules/unistr/u8-check: New file.
38147         * modules/unistr/u16-check: New file.
38148         * modules/unistr/u32-check: New file.
38149         * lib/unistr/u8-check.c: New file.
38150         * lib/unistr/u16-check.c: New file.
38151         * lib/unistr/u32-check.c: New file.
38152
38153         * modules/unistr/u8-chr: New file.
38154         * modules/unistr/u16-chr: New file.
38155         * modules/unistr/u32-chr: New file.
38156         * lib/unistr/u8-chr.c: New file.
38157         * lib/unistr/u16-chr.c: New file.
38158         * lib/unistr/u32-chr.c: New file.
38159
38160         * modules/unistr/u8-cmp: New file.
38161         * modules/unistr/u16-cmp: New file.
38162         * modules/unistr/u32-cmp: New file.
38163         * lib/unistr/u8-cmp.c: New file.
38164         * lib/unistr/u16-cmp.c: New file.
38165         * lib/unistr/u32-cmp.c: New file.
38166
38167         * modules/unistr/u8-cpy: New file.
38168         * modules/unistr/u16-cpy: New file.
38169         * modules/unistr/u32-cpy: New file.
38170         * lib/unistr/u8-cpy.c: New file.
38171         * lib/unistr/u16-cpy.c: New file.
38172         * lib/unistr/u32-cpy.c: New file.
38173         * lib/unistr/u-cpy.h: New file.
38174
38175         * modules/unistr/u8-cpy-alloc: New file.
38176         * modules/unistr/u16-cpy-alloc: New file.
38177         * modules/unistr/u32-cpy-alloc: New file.
38178         * lib/unistr/u8-cpy-alloc.c: New file.
38179         * lib/unistr/u16-cpy-alloc.c: New file.
38180         * lib/unistr/u32-cpy-alloc.c: New file.
38181         * lib/unistr/u-cpy-alloc.h: New file.
38182
38183         * modules/unistr/u8-endswith: New file.
38184         * modules/unistr/u16-endswith: New file.
38185         * modules/unistr/u32-endswith: New file.
38186         * lib/unistr/u8-endswith.c: New file.
38187         * lib/unistr/u16-endswith.c: New file.
38188         * lib/unistr/u32-endswith.c: New file.
38189         * lib/unistr/u-endswith.h: New file.
38190
38191         * modules/unistr/u8-mblen: New file.
38192         * modules/unistr/u16-mblen: New file.
38193         * modules/unistr/u32-mblen: New file.
38194         * lib/unistr/u8-mblen.c: New file.
38195         * lib/unistr/u16-mblen.c: New file.
38196         * lib/unistr/u32-mblen.c: New file.
38197
38198         * modules/unistr/u8-mbtouc: New file.
38199         * modules/unistr/u16-mbtouc: New file.
38200         * modules/unistr/u32-mbtouc: New file.
38201         * lib/unistr/u8-mbtouc.c: New file.
38202         * lib/unistr/u16-mbtouc.c: New file.
38203         * lib/unistr/u32-mbtouc.c: New file.
38204
38205         * modules/unistr/u8-mbtouc-safe: New file.
38206         * modules/unistr/u16-mbtouc-safe: New file.
38207         * modules/unistr/u32-mbtouc-safe: New file.
38208         * lib/unistr/u8-mbtouc-safe.c: New file.
38209         * lib/unistr/u16-mbtouc-safe.c: New file.
38210         * lib/unistr/u32-mbtouc-safe.c: New file.
38211
38212         * modules/unistr/u8-move: New file.
38213         * modules/unistr/u16-move: New file.
38214         * modules/unistr/u32-move: New file.
38215         * lib/unistr/u8-move.c: New file.
38216         * lib/unistr/u16-move.c: New file.
38217         * lib/unistr/u32-move.c: New file.
38218         * lib/unistr/u-move.h: New file.
38219
38220         * modules/unistr/u8-next: New file.
38221         * modules/unistr/u16-next: New file.
38222         * modules/unistr/u32-next: New file.
38223         * lib/unistr/u8-next.c: New file.
38224         * lib/unistr/u16-next.c: New file.
38225         * lib/unistr/u32-next.c: New file.
38226
38227         * modules/unistr/u8-prev: New file.
38228         * modules/unistr/u16-prev: New file.
38229         * modules/unistr/u32-prev: New file.
38230         * lib/unistr/u8-prev.c: New file.
38231         * lib/unistr/u16-prev.c: New file.
38232         * lib/unistr/u32-prev.c: New file.
38233
38234         * modules/unistr/u8-set: New file.
38235         * modules/unistr/u16-set: New file.
38236         * modules/unistr/u32-set: New file.
38237         * lib/unistr/u8-set.c: New file.
38238         * lib/unistr/u16-set.c: New file.
38239         * lib/unistr/u32-set.c: New file.
38240         * lib/unistr/u-set.h: New file.
38241
38242         * modules/unistr/u8-startswith: New file.
38243         * modules/unistr/u16-startswith: New file.
38244         * modules/unistr/u32-startswith: New file.
38245         * lib/unistr/u8-startswith.c: New file.
38246         * lib/unistr/u16-startswith.c: New file.
38247         * lib/unistr/u32-startswith.c: New file.
38248         * lib/unistr/u-startswith.h: New file.
38249
38250         * modules/unistr/u8-stpcpy: New file.
38251         * modules/unistr/u16-stpcpy: New file.
38252         * modules/unistr/u32-stpcpy: New file.
38253         * lib/unistr/u8-stpcpy.c: New file.
38254         * lib/unistr/u16-stpcpy.c: New file.
38255         * lib/unistr/u32-stpcpy.c: New file.
38256         * lib/unistr/u-stpcpy.h: New file.
38257
38258         * modules/unistr/u8-stpncpy: New file.
38259         * modules/unistr/u16-stpncpy: New file.
38260         * modules/unistr/u32-stpncpy: New file.
38261         * lib/unistr/u8-stpncpy.c: New file.
38262         * lib/unistr/u16-stpncpy.c: New file.
38263         * lib/unistr/u32-stpncpy.c: New file.
38264         * lib/unistr/u-stpncpy.h: New file.
38265
38266         * modules/unistr/u8-strcat: New file.
38267         * modules/unistr/u16-strcat: New file.
38268         * modules/unistr/u32-strcat: New file.
38269         * lib/unistr/u8-strcat.c: New file.
38270         * lib/unistr/u16-strcat.c: New file.
38271         * lib/unistr/u32-strcat.c: New file.
38272         * lib/unistr/u-strcat.h: New file.
38273
38274         * modules/unistr/u8-strchr: New file.
38275         * modules/unistr/u16-strchr: New file.
38276         * modules/unistr/u32-strchr: New file.
38277         * lib/unistr/u8-strchr.c: New file.
38278         * lib/unistr/u16-strchr.c: New file.
38279         * lib/unistr/u32-strchr.c: New file.
38280
38281         * modules/unistr/u8-strcmp: New file.
38282         * modules/unistr/u16-strcmp: New file.
38283         * modules/unistr/u32-strcmp: New file.
38284         * lib/unistr/u8-strcmp.c: New file.
38285         * lib/unistr/u16-strcmp.c: New file.
38286         * lib/unistr/u32-strcmp.c: New file.
38287
38288         * modules/unistr/u8-strcpy: New file.
38289         * modules/unistr/u16-strcpy: New file.
38290         * modules/unistr/u32-strcpy: New file.
38291         * lib/unistr/u8-strcpy.c: New file.
38292         * lib/unistr/u16-strcpy.c: New file.
38293         * lib/unistr/u32-strcpy.c: New file.
38294         * lib/unistr/u-strcpy.h: New file.
38295
38296         * modules/unistr/u8-strcspn: New file.
38297         * modules/unistr/u16-strcspn: New file.
38298         * modules/unistr/u32-strcspn: New file.
38299         * lib/unistr/u8-strcspn.c: New file.
38300         * lib/unistr/u16-strcspn.c: New file.
38301         * lib/unistr/u32-strcspn.c: New file.
38302         * lib/unistr/u-strcspn.h: New file.
38303
38304         * modules/unistr/u8-strdup: New file.
38305         * modules/unistr/u16-strdup: New file.
38306         * modules/unistr/u32-strdup: New file.
38307         * lib/unistr/u8-strdup.c: New file.
38308         * lib/unistr/u16-strdup.c: New file.
38309         * lib/unistr/u32-strdup.c: New file.
38310         * lib/unistr/u-strdup.h: New file.
38311
38312         * modules/unistr/u8-strlen: New file.
38313         * modules/unistr/u16-strlen: New file.
38314         * modules/unistr/u32-strlen: New file.
38315         * lib/unistr/u8-strlen.c: New file.
38316         * lib/unistr/u16-strlen.c: New file.
38317         * lib/unistr/u32-strlen.c: New file.
38318         * lib/unistr/u-strlen.h: New file.
38319
38320         * modules/unistr/u8-strmblen: New file.
38321         * modules/unistr/u16-strmblen: New file.
38322         * modules/unistr/u32-strmblen: New file.
38323         * lib/unistr/u8-strmblen.c: New file.
38324         * lib/unistr/u16-strmblen.c: New file.
38325         * lib/unistr/u32-strmblen.c: New file.
38326
38327         * modules/unistr/u8-strmbtouc: New file.
38328         * modules/unistr/u16-strmbtouc: New file.
38329         * modules/unistr/u32-strmbtouc: New file.
38330         * lib/unistr/u8-strmbtouc.c: New file.
38331         * lib/unistr/u16-strmbtouc.c: New file.
38332         * lib/unistr/u32-strmbtouc.c: New file.
38333
38334         * modules/unistr/u8-strncat: New file.
38335         * modules/unistr/u16-strncat: New file.
38336         * modules/unistr/u32-strncat: New file.
38337         * lib/unistr/u8-strncat.c: New file.
38338         * lib/unistr/u16-strncat.c: New file.
38339         * lib/unistr/u32-strncat.c: New file.
38340         * lib/unistr/u-strncat.h: New file.
38341
38342         * modules/unistr/u8-strncmp: New file.
38343         * modules/unistr/u16-strncmp: New file.
38344         * modules/unistr/u32-strncmp: New file.
38345         * lib/unistr/u8-strncmp.c: New file.
38346         * lib/unistr/u16-strncmp.c: New file.
38347         * lib/unistr/u32-strncmp.c: New file.
38348
38349         * modules/unistr/u8-strncpy: New file.
38350         * modules/unistr/u16-strncpy: New file.
38351         * modules/unistr/u32-strncpy: New file.
38352         * lib/unistr/u8-strncpy.c: New file.
38353         * lib/unistr/u16-strncpy.c: New file.
38354         * lib/unistr/u32-strncpy.c: New file.
38355         * lib/unistr/u-strncpy.h: New file.
38356
38357         * modules/unistr/u8-strnlen: New file.
38358         * modules/unistr/u16-strnlen: New file.
38359         * modules/unistr/u32-strnlen: New file.
38360         * lib/unistr/u8-strnlen.c: New file.
38361         * lib/unistr/u16-strnlen.c: New file.
38362         * lib/unistr/u32-strnlen.c: New file.
38363         * lib/unistr/u-strnlen.h: New file.
38364
38365         * modules/unistr/u8-strpbrk: New file.
38366         * modules/unistr/u16-strpbrk: New file.
38367         * modules/unistr/u32-strpbrk: New file.
38368         * lib/unistr/u8-strpbrk.c: New file.
38369         * lib/unistr/u16-strpbrk.c: New file.
38370         * lib/unistr/u32-strpbrk.c: New file.
38371         * lib/unistr/u-strpbrk.h: New file.
38372
38373         * modules/unistr/u8-strrchr: New file.
38374         * modules/unistr/u16-strrchr: New file.
38375         * modules/unistr/u32-strrchr: New file.
38376         * lib/unistr/u8-strrchr.c: New file.
38377         * lib/unistr/u16-strrchr.c: New file.
38378         * lib/unistr/u32-strrchr.c: New file.
38379
38380         * modules/unistr/u8-strspn: New file.
38381         * modules/unistr/u16-strspn: New file.
38382         * modules/unistr/u32-strspn: New file.
38383         * lib/unistr/u8-strspn.c: New file.
38384         * lib/unistr/u16-strspn.c: New file.
38385         * lib/unistr/u32-strspn.c: New file.
38386         * lib/unistr/u-strspn.h: New file.
38387
38388         * modules/unistr/u8-strstr: New file.
38389         * modules/unistr/u16-strstr: New file.
38390         * modules/unistr/u32-strstr: New file.
38391         * lib/unistr/u8-strstr.c: New file.
38392         * lib/unistr/u16-strstr.c: New file.
38393         * lib/unistr/u32-strstr.c: New file.
38394         * lib/unistr/u-strstr.h: New file.
38395
38396         * modules/unistr/u8-strtok: New file.
38397         * modules/unistr/u16-strtok: New file.
38398         * modules/unistr/u32-strtok: New file.
38399         * lib/unistr/u8-strtok.c: New file.
38400         * lib/unistr/u16-strtok.c: New file.
38401         * lib/unistr/u32-strtok.c: New file.
38402         * lib/unistr/u-strtok.h: New file.
38403
38404         * modules/unistr/u8-uctomb: New file.
38405         * modules/unistr/u16-uctomb: New file.
38406         * modules/unistr/u32-uctomb: New file.
38407         * lib/unistr/u8-uctomb.c: New file.
38408         * lib/unistr/u16-uctomb.c: New file.
38409         * lib/unistr/u32-uctomb.c: New file.
38410
38411         * MODULES.html.sh (Unicode string functions): Add the new modules.
38412
38413 2007-01-08  Bruno Haible  <bruno@clisp.org>
38414
38415         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
38416         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
38417         subdirectories.
38418
38419 2007-01-08  Karl Berry  <karl@gnu.org>
38420
38421         * doc/error.texi: mention that main() fns must set program_name
38422         when progname is used.
38423
38424 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
38425
38426         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
38427         WCTYPE_H is empty, for the benefit of builds from non-distclean
38428         directories.  Problem reported by Eric Blake in
38429         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
38430
38431 2007-01-08  Bruno Haible  <bruno@clisp.org>
38432
38433         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
38434         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
38435         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
38436         PROVIDE_CANONICALIZE_FILENAME_MODE.
38437         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
38438
38439 2007-01-08  Bruno Haible  <bruno@clisp.org>
38440
38441         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
38442         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
38443         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
38444         * lib/fts.c: Likewise.
38445         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
38446
38447 2006-12-25  Bruno Haible  <bruno@clisp.org>
38448
38449         * modules/utf8-ucs4-safe: New file.
38450         * lib/utf8-ucs4-safe.h: New file.
38451         * lib/unistr/utf8-ucs4-safe.c: New file.
38452
38453         * modules/utf16-ucs4-safe: New file.
38454         * lib/utf16-ucs4-safe.h: New file.
38455         * lib/unistr/utf16-ucs4-safe.c: New file.
38456
38457         * MODULES.html.sh (Unicode string functions): Add the new modules.
38458
38459 2007-01-08  Bruno Haible  <bruno@clisp.org>
38460
38461         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
38462         (Depends-on): Add unitypes.
38463         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
38464         (u8_mbtouc_aux): Move out to separate file.
38465         (u8_mbtouc): Use ucs4_t, uint8_t types.
38466         * lib/unistr/utf8-ucs4.c: New file.
38467
38468         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
38469         (Depends-on): Add unitypes.
38470         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
38471         (u16_mbtouc_aux): Move out to separate file.
38472         (u16_mbtouc): Use ucs4_t, uint16_t types.
38473         * lib/unistr/utf16-ucs4.c: New file.
38474
38475         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
38476         (Depends-on): Add unitypes.
38477         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
38478         (u8_uctomb_aux): Move out to separate file.
38479         (u8_uctomb): Use ucs4_t, uint8_t types.
38480         * lib/unistr/ucs4-utf8.c: New file.
38481
38482         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
38483         (Depends-on): Add unitypes.
38484         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
38485         (u16_uctomb_aux): Move out to separate file.
38486         (u16_uctomb): Use ucs4_t, uint16_t types.
38487         * lib/unistr/ucs4-utf16.c: New file.
38488
38489 2006-12-25  Bruno Haible  <bruno@clisp.org>
38490
38491         * modules/unitypes: New file.
38492         * lib/unitypes.h: New file.
38493         * MODULES.html.sh (func_all_modules): New section "Unicode string
38494         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
38495         this section. Add unitypes.
38496
38497 2007-01-08  Bruno Haible  <bruno@clisp.org>
38498
38499         Avoid variable names that conflict with those from libtool.
38500         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
38501         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
38502         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
38503         library_names_spec to acl_library_names_spec, hardcode_* to
38504         acl_hardcode_*.
38505         Reported by Ralf Wildenhues.
38506
38507 2007-01-08  Bruno Haible  <bruno@clisp.org>
38508
38509         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
38510         definition.
38511         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
38512         definition.
38513         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
38514         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
38515         definition.
38516         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
38517         definition.
38518         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
38519         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
38520         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
38521         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
38522         definition.
38523         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
38524         definition.
38525         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
38526         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
38527         GC_USE_<algorithm>.
38528         * lib/gc-libgcrypt.c: Likewise.
38529         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
38530         * modules/gc-arctwo (configure.ac): Likewise.
38531         * modules/gc-des (configure.ac): Likewise.
38532         * modules/gc-hmac-md5 (configure.ac): Likewise.
38533         * modules/gc-hmac-sha1 (configure.ac): Likewise.
38534         * modules/gc-md2 (configure.ac): Likewise.
38535         * modules/gc-md4 (configure.ac): Likewise.
38536         * modules/gc-md5 (configure.ac): Likewise.
38537         * modules/gc-random (configure.ac): Likewise.
38538         * modules/gc-rijndael (configure.ac): Likewise.
38539         * modules/gc-sha1 (configure.ac): Likewise.
38540
38541 2007-01-08  Bruno Haible  <bruno@clisp.org>
38542
38543         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
38544         macro definition.
38545         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
38546         definition.
38547         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
38548         definition.
38549         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
38550         * modules/fcntl-safer (configure.ac): Likewise.
38551         * modules/fopen-safer (configure.ac): Likewise.
38552         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
38553         GNULIB_FWRITEERROR macro definition.
38554
38555 2007-01-08  Bruno Haible  <bruno@clisp.org>
38556
38557         * m4/gnulib-common.m4: New file.
38558         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
38559         (func_get_filelist): Add m4/gnulib-common.m4.
38560
38561 2007-01-08  Bruno Haible  <bruno@clisp.org>
38562
38563         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
38564         command.
38565
38566 2007-01-08  Jim Meyering  <jim@meyering.net>
38567
38568         Use a more robust test for a "can't happen" condition.
38569         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
38570         narrowed the st_size value.  Presuming the "can't happen" condition
38571         is true, that narrowing could conceivably convert an invalid st_size
38572         value into a valid one.  Instead, use a change based on Matthew
38573         Woehlke's original patch.
38574
38575         Slight readability improvement: use an assert-like macro
38576         in place of literal "abort ()" uses.
38577         * lib/fts.c (fts_assert): Define.
38578         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
38579         Use this macro instead of a bare 'abort'.
38580
38581 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
38582
38583         Don't worry about using IRIX 5.3's wctype.h broken definitions;
38584         simply work around them.
38585         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
38586         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
38587         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
38588         declaring.
38589         Don't bother to define as macros, since the standard doesn't require it.
38590         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
38591         longer worry about IRIX 5.3.
38592         (HAVE_WCTYPE_CTMP_BUG): Remove.
38593
38594 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
38595
38596         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
38597         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
38598         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38599         Problems reported by Georg Schwarz for IRIX 5.3.
38600
38601         * gnulib-tool (autoconf_minversion): Take the maximum version number
38602         found, not the minimum.  Problem reported by James Youngman.
38603
38604 2007-01-03  Karl Berry  <karl@gnu.org>
38605
38606         * doc/error.texi: new file, explaining interaction with progname.
38607         * doc/gnulib.texi: include it.  Update copyright.
38608
38609 2007-01-03  Simon Josefsson  <simon@josefsson.org>
38610
38611         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
38612         AC_CANONICAL_HOST, to improve autobuild outputs.
38613
38614 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
38615             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38616
38617         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
38618         sockets, server sockets, and other file descriptors.  Count errors
38619         to compute the return value.  Reorder the code a bit to be easier
38620         to follow.  Don't set event bits that were not requested (except
38621         POLLERR and POLLHUP).
38622
38623 2007-01-01  Bruno Haible  <bruno@clisp.org>
38624
38625         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
38626
38627 2007-01-03  Jim Meyering  <jim@meyering.net>
38628
38629         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
38630
38631 2007-01-02  Bruno Haible  <bruno@clisp.org>
38632
38633         * modules/settime (Include): Require timespec.h.
38634         * modules/nanosleep (Include): Likewise.
38635
38636 2007-01-01  Bruno Haible  <bruno@clisp.org>
38637
38638         * gnulib-tool (func_emit_copyright_notice): Bump year.
38639         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
38640
38641 2007-01-01  Bruno Haible  <bruno@clisp.org>
38642
38643         Improve support for OpenBSD.
38644         * build-aux/config.rpath (libname_spec): Export.
38645         (library_names_spec): New variable. Export.
38646         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
38647         library_names_spec from the config.rpath output. Locate shared library
38648         through the name pattern in library_names_spec.
38649
38650 2007-01-01  Eric Blake  <ebb9@byu.net>
38651
38652         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
38653
38654 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
38655
38656         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
38657         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
38658         assume the C locale, and avoid an "eval" that could cause trouble.
38659         Problem with SORT reported by Bob Proulx.
38660
38661         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
38662         Define.  Trivial patch from Henning Nielsen Lund, originally
38663         sent to bug-grep@gnu.org today.
38664
38665 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
38666
38667         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
38668         struct stat.  Problem reported by Henning Nielsen Lund.
38669         * lib/acl.c: Include acl.h first, to check interface.  Don't
38670         bother to include sys/types.h and sys/stat.h again.
38671
38672 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
38673
38674         Import the following change from libc; problem reported by
38675         Sven Verdoolaege.
38676
38677         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
38678
38679         [BZ #1373]
38680         * lib/argp.h: Remove __NTH for __argp_usage inline function.
38681
38682 2006-12-28  Jim Meyering  <jim@meyering.net>
38683
38684         * build-aux/announce-gen: Do not assume that the package
38685         builds any of tar.gz, tar.bz2, and .xdelta files.
38686         Suggestion from Simon Josefsson.
38687
38688 2006-12-28  Simon Josefsson  <simon@josefsson.org>
38689
38690         * modules/announce-gen: New file.
38691
38692 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
38693
38694         * lib/mbchar.h: Just include <wctype.h>; the wctype module
38695         handles its gotchas now.
38696         * lib/mbswidth.c: Likewise.
38697         * lib/wcwidth.h: Likewise.
38698         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
38699         and iswcntrl; the wctype module does this stuff now.
38700         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
38701         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38702         * modules/mbchar (Depends-on): Add wctype.
38703         * modules/mbswidth (Depends-on): Likewise.
38704         * modules/wcwidth (Depends-on): Likewise.
38705
38706 2006-12-27  Eric Blake  <ebb9@byu.net>
38707
38708         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
38709         module uses more than what <wctype.h> is required to provide.
38710
38711 2006-12-26  Eric Blake  <ebb9@byu.net>
38712
38713         * gnulib-tool (sed_extract_prog): Avoid space-tab.
38714
38715 2006-12-26  Eric Blake  <ebb9@byu.net>
38716
38717         * modules/absolute-header: New module.
38718         * modules/fcntl (Depends-on): Depend on it.
38719         * modules/inttypes (Depends-on): Likewise.
38720         * modules/stdint (Depends-on): Likewise.
38721         * modules/sys_stat (Depends-on): Likewise.
38722         * modules/wctype (Depends-on): Likewise.
38723         * MODULES.html.sh (Support for building libraries and
38724         executables): Document it.
38725
38726 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
38727
38728         * gnulib-tool (SED): Remove, undoing previous change.
38729         The problem was that it broke coreutils on Solaris, because
38730         "sed --posix" leaked into a makefile.
38731         (sed): New alias, if 'alias' and GNU sed.
38732
38733 2006-12-24  Jim Meyering  <jim@meyering.net>
38734
38735         Work around an fchownat bug in glibc-2.4:
38736         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
38737         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
38738         in spite of the -P option.
38739         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
38740         New macros.
38741         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
38742         * modules/openat (Files): Add lib/fchownat.c.
38743         * lib/openat.c (fchownat): Don't define here.  Move to...
38744         * lib/fchownat.c: ...this new file.
38745
38746 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
38747
38748         Fix bug reported by Bruno Haible in
38749         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
38750         where quotearg.c didn't compile on Mac OS X 10.2 because it
38751         lacks <wchar.h> and wint_t.
38752         * lib/wctype_.h (__wctype_wint_t): New type.
38753         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
38754         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
38755         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
38756         Arg is now of type __wctype_wint_t, not wint_t.
38757         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
38758         substitute HAVE_WINT_T.
38759         * modules/wctype (Files): Add m4/wint_t.m4.
38760         (wctype.h): Substitute HAVE_WINT_T.
38761
38762 2006-12-23  Bruno Haible  <bruno@clisp.org>
38763
38764         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
38765
38766 2006-12-23  Bruno Haible  <bruno@clisp.org>
38767
38768         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
38769         S_ISLNK.
38770         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
38771         mingw.
38772
38773 2006-12-22  Bruno Haible  <bruno@clisp.org>
38774
38775         * lib/copy-file.c: Include acl.h.
38776         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
38777         Close the file descriptors only after being done with copy_acl.
38778         * modules/copy-file (Depends-on): Add acl.
38779
38780 2006-12-22  Bruno Haible  <bruno@clisp.org>
38781
38782         * gnulib-tool (SED): New variable.
38783         Use $SED instead of sed everywhere.
38784
38785 2006-12-22  Bruno Haible  <bruno@clisp.org>
38786
38787         * modules/no-c++: New file.
38788         * m4/no-c++.m4: New file.
38789         * MODULES.html.sh (Support for building libraries and executables):
38790         Add no-c++.
38791
38792 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
38793
38794         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
38795         Include <limits.h>, and use its INT_MAX to rewrite the
38796         j loop so that it does not overflow 'int'.  Problem reported by
38797         Ralf Wildenhues in
38798         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
38799         Play it safe by shifting left by 1 rather than multiplying by 2,
38800         as GCC is less likely to optimize this away when the value
38801         is signed (when it assumes overflow leads to undefined behavior).
38802         Also, don't assume time_t uses two's complement.
38803
38804 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
38805
38806         * MODULES.html.sh: New module wctype.
38807         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
38808         * lib/fnmatch.c: Don't bother to include <wchar.h> before
38809         <wctype.h>, since the new wctype module should fix this.
38810         * lib/quotearg.c: Include <wctype.h> unconditionally, since
38811         the wctype module should arrange for it.
38812         * lib/regex_internal.h: Likewise.
38813         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
38814         since the wctype module should handle this now.
38815         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
38816         * modules/fnmatch (Depends-on): Add wctype.
38817         * modules/quotearg (Depends-on): Likewise.
38818         * modules/regex (Depends-on): Likewise.
38819
38820 2006-12-19  Bruno Haible  <bruno@clisp.org>
38821
38822         * lib/strdup.h [C++]: Wrap definitions in extern "C".
38823         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
38824
38825 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38826
38827         * modules/savewd (Depends-on): Fix dependency on fcntl.
38828
38829 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
38830
38831         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
38832         conforms to C99, rather than relying on the user's environment
38833         setting of STDINT_H.
38834
38835 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
38836         and Eric Blake  <ebb9@byu.net>
38837
38838         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
38839         This is more consistent with the other defines here.
38840         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
38841         Port to z/OS.  Problem reported by Paul Gilmartin.
38842         Change local vars to use gl_ prefix rather than ac_.
38843         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
38844         with other defines.
38845         * modules/double-slash-root: New module.
38846         * modules/dirname (Files): Remove m4/double-slash-root.m4.
38847         (Depends-on): Add double-slash-root.
38848         * MODULES.html.sh (File system functions): Mention new module.
38849
38850 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
38851
38852         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
38853         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
38854         This is for the benefit of gzip, which doesn't do i18n.
38855
38856 2006-12-12  Jim Meyering  <jim@meyering.net>
38857
38858         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
38859         Reported by Andreas Schwab <schwab@suse.de>.
38860
38861 2006-12-12  Bruno Haible  <bruno@clisp.org>
38862
38863         Merge these changes.
38864         2006-09-05  Bruno Haible  <bruno@clisp.org>
38865         * lib/iconvme.c (iconv_string): No need to save and restore errno when
38866         iconv_alloc succeeded.
38867         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
38868         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
38869         test for " && dest " at the end - dest is always != NULL there. Call
38870         iconv with 4xNULL arguments initially, to reset the state. Call iconv
38871         with 2xNULL arguments, also to flush the state storage. Handle the
38872         IRIX iconv behaviour. Realloc the final result, to throw away unused
38873         memory.
38874
38875 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
38876
38877         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
38878         and fchmodat unconditionally, since glibc 2.4 has them.
38879         Problem reported by Arkadiusz Miskiewicz.
38880
38881 2006-12-10  Bruno Haible  <bruno@clisp.org>
38882
38883         * gnulib-tool (func_import): Show the include files only for those
38884         modules that are copied and specified.
38885         Reported by Karl Berry.
38886
38887 2006-12-08  Jim Meyering  <jim@meyering.net>
38888
38889         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
38890         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
38891
38892         * build-aux/announce-gen: Add two new options, both optional:
38893         --bootstrap-tools=TOOL_LIST
38894               a comma-separated list of tools, e.g.,
38895               autoconf,automake,bison,gnulib
38896         --gnulib-snapshot-date=DATE
38897               if gnulib is in the bootstrap tool list,
38898               then report this as the snapshot date.
38899               If not specified, use the current date/time.
38900               If you specify a date here, be sure it's UTC.
38901
38902 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38903
38904         * tests/test-argp-2.sh: Fix test to match actual output.
38905         (func_compare): Fix sed script to be portable.
38906
38907 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
38908
38909         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
38910         workaround for this case.  It is not autoconfigured now; offhand
38911         it's hard to see how to autoconfigure it.
38912
38913 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
38914
38915         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
38916         a directory that is about to be chowned.  Such a directory's
38917         initial file permissions should permit the owner only and this
38918         should not be changed until after the chown, since the group and
38919         other bits would be incorrect if they granted permission before
38920         the chown.
38921
38922         Fix porting problem for iswctype reported by Georg Schwarz in:
38923         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
38924         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
38925         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
38926         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
38927         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38928
38929 2006-12-03  Jim Meyering  <jim@meyering.net>
38930
38931         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
38932         p->fts_statp may not yet be defined.
38933         (fts_read): Instead, set it in the caller, once p->fts_statp is
38934         sure to be defined, and corresponds to a top-level directory.
38935         This bug made du -x fail.  Here's the coreutils test case:
38936         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
38937         Reported by Mike Frysinger.
38938
38939 2006-12-01  Jim Meyering  <jim@meyering.net>
38940
38941         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
38942         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
38943         Reported by Simon Josefsson.
38944
38945 2006-11-30  Jim Meyering  <jim@meyering.net>
38946
38947         * m4/warning.m4: Use the all-permissive copyright notice
38948         recommended by RMS (rather than LGPL).
38949         * m4/vararrays.m4: Likewise.
38950         * m4/flexmember.m4: Likewise.
38951
38952 2006-11-29  Bruno Haible  <bruno@clisp.org>
38953
38954         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
38955         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
38956         using +=.
38957         Reported by Simon Josefsson <simon@josefsson.org>.
38958
38959 2006-11-28  James Youngman <jay@gnu.org>
38960
38961         * README: Advise users that they might find the bug-gnulib@gnu.org
38962         and autotools-announce@gnu.org mailing lists useful.
38963
38964 2006-11-28  Bruno Haible  <bruno@clisp.org>
38965
38966         * m4/ptrdiff_max.m4: Remove file.
38967
38968 2006-11-21  Bruno Haible  <bruno@clisp.org>
38969
38970         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
38971         _AC_COMPUTE_INT.
38972         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
38973         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
38974         _AC_COMPUTE_INT.
38975         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
38976         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
38977         _AC_COMPUTE_INT.
38978         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
38979
38980 2006-11-28  Jim Meyering  <jim@meyering.net>
38981
38982         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
38983         warning from "gcc -Wshadow" about shadowing the builtin.
38984
38985 2006-11-27  Bruno Haible  <bruno@clisp.org>
38986
38987         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
38988         _AC_COMPUTE_INT.
38989         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
38990
38991 2006-11-27  Bruno Haible  <bruno@clisp.org>
38992             Paul Eggert  <eggert@cs.ucla.edu>
38993
38994         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
38995
38996 2006-11-26  Bruno Haible  <bruno@clisp.org>
38997
38998         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
38999         noinst_LTLIBRARIES.
39000
39001 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
39002             Bruno Haible  <bruno@clisp.org>
39003
39004         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
39005         if compiling with "gcc -ansi".
39006
39007 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
39008
39009         Fix some incompatibilities with gcc -ansi -pedantic.
39010         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
39011         if compiling pedantically with GCC, unless it's C99 or later.
39012         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
39013         it mishandles gcc -ansi -pedantic as well.
39014         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
39015         if gcc -pedantic.
39016         * lib/regexec.c (check_node_accept_bytes): Don't use auto
39017         initializers for struct if -pedantic, unless it's C99 or later.
39018
39019 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
39020
39021         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
39022         Don't close an fd more than once. Identical atimes indicate
39023         success, not failure.
39024
39025 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
39026
39027         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
39028
39029 2006-11-23  Jim Meyering  <jim@meyering.net>
39030
39031         * build-aux/announce-gen: New file.  From coreutils.
39032
39033 2006-11-22  Jim Meyering  <jim@meyering.net>
39034
39035         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
39036         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
39037         (fts_read): Use a temporary to narrow the overused st_size member
39038         before using it in a switch statement.  Reported by Matthew Woehlke.
39039
39040         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
39041         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39042
39043 2006-11-20  Bruno Haible  <bruno@clisp.org>
39044
39045         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
39046         changequote instead of pairs of brackets.
39047         Reported by Andreas Schwab <schwab@suse.de>.
39048
39049 2006-11-21  Jim Meyering  <jim@meyering.net>
39050
39051         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
39052         so as to remain compatible with older compilers.
39053         Patch from Michael Deutschmann.
39054
39055 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
39056
39057         * MODULES.html.sh (File system functions): Add openat.
39058
39059         * lib/openat.h (rpl_fstatat): New macro, if
39060         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
39061         (fstatat): Define to rpl_fstatat under the same conditions,
39062         unless COMPILING_FSTATAT.
39063         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
39064         seems to have the bug.
39065         * lib/fstatat.c: New file.
39066         * modules/openat (Files): Add it.
39067
39068 2006-11-20  Bruno Haible  <bruno@clisp.org>
39069
39070         * Makefile: New file.
39071
39072 2006-11-20  Jim Meyering  <jim@meyering.net>
39073
39074         The beginnings of syntax-related checks for gnulib.
39075         * lib/Makefile: New file.
39076         * lib/t-idcache: New script.  Ensure that the two halves of
39077         idcache.c stay in sync.
39078
39079         * lib/idcache.c: Adjust comments in user- and group- portions to
39080         be more accurate, and to be consistent with one another.
39081
39082 2006-11-20  Jim Meyering  <jim@meyering.net>
39083
39084         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
39085         continue using the flexible array member (thus, this module performs
39086         half as many malloc calls), with the addition that...
39087         (getgroup, getuser): Consistently record a non-match via an empty
39088         "name" string, and map an empty string match to a NULL return value.
39089         * modules/idcache (Depends-on): Re-add flexmember.
39090
39091         * lib/idcache.c (getuser): Remove all uses of the register keyword.
39092         (getuidbyname, getgroup, getgidbyname): Likewise.
39093
39094         Use cleaner syntax: NULL rather than 0.
39095         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
39096
39097 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
39098
39099         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
39100         It mishandled the case where the group was missing.
39101         Problem reported by Greg Schafer.
39102         * modules/idcache: Likewise.
39103
39104 2006-11-18  Jim Meyering  <jim@meyering.net>
39105
39106         * check-module (%exempt_header): Add exception for some
39107         conditionally-included headers.
39108
39109         * modules/i-ring (Depends-on): Add verify.
39110         (License): Change to LGPL.
39111
39112 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39113
39114         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
39115         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
39116         and inttostr.h.  Use snprintf rather than uinttostr, so that
39117         LGPLed code doesn't depend on GPLed.
39118
39119 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
39120
39121         * modules/inline (License): Change from GPL to LGPL.
39122
39123 2006-11-17  Jim Meyering  <jim@meyering.net>
39124
39125         * modules/d-type (License): Switch to LGPL.
39126
39127 2006-11-15  Bruno Haible  <bruno@clisp.org>
39128
39129         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
39130
39131 2006-11-15  Eric Blake  <ebb9@byu.net>
39132
39133         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
39134         the module dependency.
39135
39136 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39137             Bruno Haible  <bruno@clisp.org>
39138
39139         * gnulib-tool (func_create_testdir): Add license consistency check.
39140
39141 2006-11-15  Eric Blake  <ebb9@byu.net>
39142
39143         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
39144         random "(cached)" in configure output.
39145
39146 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39147
39148         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
39149         test for conforming inttypes.h is both announced and cached.
39150
39151         * MODULES.html.sh (seen_modules, seen_files): New variables.
39152         (func_module): Rewrite to use a few less gnulib-tool and sed
39153         invocations.  Avoid a couple of quadratic algorithms for ...
39154         (missed_modules, missed_files): ... these, with ...
39155         (func_append, func_tmpdir): ... these new functions, from
39156         gnulib-tool.  Analogously, install traps for cleanup.
39157
39158         * tests/test-gc.c (main): Remove unused variables.
39159         * tests/test-read-file.c: Include stdlib.h, for 'free'.
39160
39161 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
39162
39163         * modules/inttostr (License): Change to LGPL.
39164
39165 2006-11-14  Eric Blake  <ebb9@byu.net>
39166
39167         * modules/tempname (License): Change to LGPL.
39168
39169 2006-11-14  Eric Blake  <ebb9@byu.net>
39170
39171         * doc/functions.texi (Function Portability): *printf functions on
39172         Cygwin now understand all POSIX size specifiers.
39173
39174 2006-11-14  Bruno Haible  <bruno@clisp.org>
39175
39176         * modules/c-ctype (License): Change to LGPL.
39177
39178 2006-11-12  Bruno Haible  <bruno@clisp.org>
39179
39180         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
39181         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
39182         for GNOME libraries, for which the include files are installed in
39183         subdirectories of $prefix/include.
39184
39185 2006-11-12  Bruno Haible  <bruno@clisp.org>
39186
39187         * m4/lib-link.m4: Require at least autoconf-2.54.
39188         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
39189         name to underscores for the --with option.
39190
39191 2006-11-13  Bruno Haible  <bruno@clisp.org>
39192
39193         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
39194         the tests directory.
39195         Reported by Ralf Wildenhues.
39196
39197 2006-11-13  Bruno Haible  <bruno@clisp.org>
39198
39199         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
39200         (func_emit_initmacro_end): Undo the override here.
39201         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
39202         Works around the famous automake error in coreutils.
39203
39204 2006-11-13  Eric Blake  <ebb9@byu.net>
39205
39206         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
39207         element, not its node.
39208
39209 2006-11-12  Bruno Haible  <bruno@clisp.org>
39210
39211         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
39212         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
39213
39214 2006-11-12  Bruno Haible  <bruno@clisp.org>
39215
39216         * gnulib-tool: New option --local-symlink.
39217         (func_usage): Document it.
39218         (lsymbolic): New variable.
39219         (func_import, func_create_testdir): If --symlink was not specified,
39220         test whether --local-symlink was specified and the file comes from
39221         the local_gnulib_dir.
39222
39223 2006-11-12  Bruno Haible  <bruno@clisp.org>
39224
39225         * gnulib-tool (func_ln): New function.
39226         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
39227
39228 2006-11-12  Bruno Haible  <bruno@clisp.org>
39229
39230         Finish support for source files in subdirectories.
39231         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
39232         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
39233         AUTOMAKE_OPTIONS.
39234         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
39235
39236 2006-11-12  Bruno Haible  <bruno@clisp.org>
39237
39238         * gnulib-tool (func_get_automake_snippet): Synthesize also an
39239         EXTRA_lib_SOURCES augmentation.
39240         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
39241
39242 2006-11-12  Jim Meyering  <jim@meyering.net>
39243
39244         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
39245         file descriptors.  This also averts a failure on systems with
39246         native openat support when a traversed directory lacks "x" access.
39247         * lib/fts_.h: Include "i-ring.h"
39248         (struct FTS) [fts_fd_ring]: New member.
39249         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
39250         (FCHDIR): Add parentheses.
39251         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
39252         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
39253         When descending, rather than simply closing the previous
39254         fts_cwd_fd value, push that file descriptor onto the ring.
39255         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
39256         (fts_open): Initialize the new fd_ring member.
39257         (fts_close): Clear the ring.
39258         (fts_safe_changedir): When possible, use our new fd_ring to skip
39259         the diropen and fstat and dev/ino comparison that would normally
39260         accompany a virtual `chdir ("..")'.
39261
39262         * modules/fts (Depends-on): Add i-ring.
39263         * modules/i-ring: New module.
39264         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
39265         * m4/i-ring.m4: New file.
39266
39267 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39268
39269         * gnulib-tool (func_create_testdir): Fix replacement of
39270         `build-aux' in configure.ac.  Run autotools in gltests
39271         subdirectory.
39272         (func_create_testdir, func_create_megatestdir, test): There is
39273         no need for '--force' in most autotool invocations in a new
39274         tree.  Actually fail the whole test if any of the tools, or the
39275         configure or make stages fail.
39276
39277         Sync from Automake.
39278         * build-aux/gnupload: Revert last change.  Add pointer to upload
39279         instructions of the GNU Maintenance Instructions.
39280         Suggestion by Karl Berry.
39281
39282 2006-11-10  Jim Meyering  <jim@meyering.net>
39283
39284         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
39285
39286 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39287
39288         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
39289         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
39290         (bind_textdomain_codeset) [! ENABLE_NLS]:
39291         Evaluate all the arguments.  That way, callers get compatible behavior
39292         if the arguments have side effects.  Also, it avoids some GCC
39293         diagnostics in some cases; Joel E. Denny reported problems when Bison
39294         was configured with --enable-gcc-warnigs.
39295
39296 2006-11-10  Jim Meyering  <jim@meyering.net>
39297
39298         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
39299         relevant options in CFLAGS (like -O, -fno-inline) are taken into
39300         account.
39301
39302 2006-11-10  Jim Meyering  <jim@meyering.net>
39303
39304         * modules/inline: New file/module.
39305         * modules/xalloc (Files): Remove m4/inline.m4.
39306         (Depends-on): Add inline, instead.
39307         * modules/oset: Likewise.
39308         * modules/list: Likewise.
39309
39310 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39311
39312         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
39313         Problem reported by Matthew Woehlke.
39314
39315 2006-11-09  Bruno Haible  <bruno@clisp.org>
39316
39317         * lib/tempname.c (gen_tempname): Remove variant that invokes
39318         __gen_tempname.
39319         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
39320         __gen_tempname.
39321
39322 2006-11-08  Bruno Haible  <bruno@clisp.org>
39323
39324         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
39325         to 'yes' instead of 'cross-compiling'.
39326
39327 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
39328
39329         * lib/quotearg.h (quotearg_free): New decl.
39330         * lib/quotearg.c (quotearg_free): New function.
39331         (slot0, nslots, slotvec0, slotvec):
39332         Now file-scope so that quotearg_free can get at them.
39333
39334 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39335
39336         Sync from Automake.
39337         * build-aux/gnupload: Add missing 'gnu' to example URL.
39338         Report by Karl Berry.
39339
39340 2006-11-08  Bruno Haible  <bruno@clisp.org>
39341
39342         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
39343         Suggested by Paul Eggert.
39344
39345 2006-11-08  Jim Meyering  <jim@meyering.net>
39346
39347         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
39348         It's already included if !_LIBC.
39349         (fts_safe_changedir): Add a comment.
39350
39351 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
39352
39353         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
39354         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
39355         Matthew Woehlke.
39356
39357         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
39358         definitions up, to avoid colliding with change below.
39359         (static_inline) [HAVE_INLINE]: New macro.
39360         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
39361         Provide extern decls when !HAVE_INLINE.  Do not define unless
39362         static_inline is defined, either by us or by xmalloc.c.  Use
39363         static_inline rather than static inline.
39364         (XCALLOC): Optimize sizeof(T) = 1 case.
39365         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
39366
39367 2006-11-07  Bruno Haible  <bruno@clisp.org>
39368
39369         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
39370         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
39371         AC_C_INLINE.
39372         * modules/xalloc (Files): Add m4/inline.m4.
39373
39374 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39375
39376         * README: Fix typo.
39377         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
39378         (Miscellanous Notes): ...from this.
39379
39380 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
39381
39382         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
39383         Mention that offsetof should be used instead of sizeof.
39384         From Bruno Haible.
39385
39386 2006-11-07  Bruno Haible  <bruno@clisp.org>
39387
39388         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
39389
39390 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
39391
39392         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
39393         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
39394         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
39395         (gl_tree_add_before, gl_tree_add_after):
39396         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
39397         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
39398         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
39399         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
39400         (gl_linked_add_after, gl_linked_add_at): Likewise.
39401         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
39402         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
39403         (gl_tree_add_before, gl_tree_add_after): Likewise.
39404         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
39405         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
39406         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
39407
39408 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39409
39410         * lib/gl_oset.h: Use C comment style, not C++ comment style.
39411
39412 2006-11-06  Bruno Haible  <bruno@clisp.org>
39413
39414         * m4/inline.m4: New file.
39415         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
39416         * modules/list (Files): Add m4/inline.m4.
39417         * modules/oset (Files): Likewise.
39418
39419 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
39420
39421         * lib/idcache.c: Include <stddef.h>, for offsetof.
39422         (struct userid.name): Change from char * to a flexible array member.
39423         All uses changed.
39424         * modules/idcache (Depends-on): Add flexmember.
39425
39426         * MODULES.html.sh (Core language properties): New module flexmember.
39427         * modules/flexmember, m4/flexmember.m4: New files.
39428
39429         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
39430         inline functions that are identical with the old xnmalloc_inline,
39431         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
39432         that we can avoid some unnecessary integer multiplications and
39433         divisions in the common case where the element size is known at
39434         compile time.
39435         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
39436         needed.
39437         (xnboundedmalloc): Remove.
39438         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
39439         arguments, for consistency with rest of this header.
39440         (xcharalloc): Rewrite using XNMALLOC.
39441         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
39442         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
39443         versions have been moved to lib/xalloc.h and renamed to be the
39444         non-*_inline versions.
39445         (xmalloc, xrealloc): Implement without reference to the xnmalloc
39446         and xnrealloc functions, since those functions are now inline and
39447         now call us.
39448         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
39449         renaming described above.
39450         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
39451         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
39452         captures the dependency in AC_C_INLINE.
39453
39454         New module canonicalize-lgpl, proposed by Charles Wilson in
39455         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
39456         with a few small changes afterwards.
39457         * MODULES.html.sh (File system functions): New module
39458         canonicalize-lgpl.
39459         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
39460         and canonicalize_file_name.
39461         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
39462         * modules/canonicalize-lgpl: New files.
39463
39464 2006-11-05  Bruno Haible  <bruno@clisp.org>
39465
39466         * gnulib-tool (func_import, func_create_testdir): Create directories
39467         also for files in subdirectories of lib/.
39468
39469 2006-11-05  Bruno Haible  <bruno@clisp.org>
39470
39471         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
39472         ANSI C compliant.
39473
39474 2006-11-03  Bruno Haible  <bruno@clisp.org>
39475
39476         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
39477         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
39478         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
39479         (xnboundedmalloc): New inline function.
39480         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
39481         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
39482         xmalloc.
39483         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
39484         xmalloc.
39485         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
39486         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
39487         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
39488         xmalloc.
39489         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
39490         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
39491         xmalloc.
39492         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
39493         gl_tree_add_after): Use XMALLOC instead of xmalloc.
39494         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
39495         xmalloc.
39496         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
39497         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
39498         gl_tree_add_after): Use XMALLOC instead of xmalloc.
39499         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
39500         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
39501         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
39502         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
39503
39504 2006-11-03  Bruno Haible  <bruno@clisp.org>
39505
39506         * lib/c-ctype.h [C++]: Define functions without name mangling.
39507         * lib/fwriteerror.h [C++]: Likewise.
39508         * lib/gcd.h [C++]: Likewise.
39509         * lib/linebreak.h [C++]: Likewise.
39510
39511 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
39512
39513         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
39514         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
39515         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
39516         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
39517         Check for functions and headers just once.
39518         Check for declaration of canonicalize_file_name.
39519         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
39520
39521 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
39522
39523         * gnulib-tool (func_import): Fix typo in actioncmd.
39524
39525 2006-11-02  Bruno Haible  <bruno@clisp.org>
39526
39527         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
39528         newline sequence in the Makefile.am snippet as a space, like "make"
39529         does.
39530         Reported by Roger Persson <perrog@gmail.com>.
39531
39532 2006-11-01  Bruno Haible  <bruno@clisp.org>
39533
39534         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
39535         already declared in <string.h>.
39536         * lib/strcase.h (strncasecmp): Don't declare it if yes.
39537
39538 2006-11-01  Bruno Haible  <bruno@clisp.org>
39539
39540         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
39541         * lib/strcase.h: Include <string.h>.
39542         (strcasecmp): Define to rpl_strcasecmp here.
39543
39544 2006-11-01  Bruno Haible  <bruno@clisp.org>
39545
39546         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
39547
39548 2006-11-01  Eric Blake  <ebb9@byu.net>
39549
39550         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
39551
39552         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
39553
39554 2006-10-29  Bruno Haible  <bruno@clisp.org>
39555
39556         Make it compile in C++ mode.
39557         * lib/full-write.c (full_rw): Add a cast.
39558
39559 2006-11-01  Bruno Haible  <bruno@clisp.org>
39560
39561         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
39562         be POSIX compliant.
39563         Reported by Roger Persson <perrog@gmail.com>.
39564
39565 2006-11-01  Eric Blake  <ebb9@byu.net>
39566
39567         * lib/getopt_.h: Fix comments.
39568
39569 2006-10-31  Eric Blake  <ebb9@byu.net>
39570
39571         * modules/tmpdir (Depends-on): Add sys_stat.
39572         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
39573         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
39574         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
39575         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
39576         tempname.
39577
39578 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
39579
39580         Avoid some C++ diagnostics reported by Bruno Haible.
39581         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
39582         xmalloc.
39583         (quotearg_alloc): Use xcharalloc rather than xmalloc.
39584         (struct slotvec): Move to top level.
39585         (quotearg_n_options): Rewrite to avoid xmalloc.
39586         * lib/xalloc.h (xcharalloc): New function.
39587         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
39588         [defined __cplusplus]: Add function template that provides result
39589         type propagation.  This part of the change is from Bruno Haible.
39590
39591 2006-10-29  Bruno Haible  <bruno@clisp.org>
39592
39593         Make it compile in C++ mode.
39594         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
39595         * lib/strnlen1.c (strnlen1): Cast memchr result.
39596         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
39597         * lib/clean-temp.c (string_equals, string_hash): Add casts.
39598         (create_temp_dir): Rename local variable 'template'.
39599         (compile_csharp_using_sscli): Add cast.
39600         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
39601         * lib/findprog.c (find_in_path): Likewise.
39602         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
39603         * lib/wait-process.c (register_slave_subprocess): Likewise.
39604
39605 2006-10-22  Bruno Haible  <bruno@clisp.org>
39606
39607         * modules/tsearch: New file.
39608         * lib/tsearch.h: New file.
39609         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
39610         * m4/tsearch.m4: New file.
39611         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
39612
39613 2006-10-29  Eric Blake  <ebb9@byu.net>
39614
39615         * lib/arcfour.c: Assume config.h.
39616         * lib/arctwo.c: Likewise.
39617         * lib/base64.c: Likewise.
39618         * lib/check-version.c: Likewise.
39619         * lib/crc.c: Likewise.
39620         * lib/des.c: Likewise.
39621         * lib/gc-gnulib.c: Likewise.
39622         * lib/gc-libgcrypt.c: Likewise.
39623         * lib/gc-pbkdf2-sha1.c: Likewise.
39624         * lib/getaddrinfo.c: Likewise.
39625         * lib/getdelim.c: Likewise.
39626         * lib/getline.c: Likewise.
39627         * lib/hmac-md5.c: Likewise.
39628         * lib/hmac-sha1.c: Likewise.
39629         * lib/iconvme.c: Likewise.
39630         * lib/md2.c: Likewise.
39631         * lib/md4.c: Likewise.
39632         * lib/memxor.c: Likewise.
39633         * lib/read-file.c: Likewise.
39634         * lib/readline.c: Likewise.
39635         * lib/rijndael-alg-fst.c: Likewise.
39636         * lib/rijndael-api-fst.c: Likewise.
39637         * lib/xgetdomainname.c: Likewise.
39638
39639 2006-10-28  Eric Blake  <ebb9@byu.net>
39640
39641         * lib/xstrndup.c: Assume config.h.
39642
39643 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
39644
39645         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
39646         stat-macros.h is now for our own macros, whereas stat_h is for
39647         macros in the <sys/stat.h> name space.
39648         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
39649         (STAT_MACROS_H): Remove.
39650         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
39651         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
39652         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
39653         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
39654         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
39655         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
39656         Move these macros to ...
39657         * lib/stat_.h: here.  Don't include stat-macros.h.
39658         * lib/canonicalize.c: Don't include stat-macros.h.
39659         * lib/chown.c: Likewise.
39660         * lib/euidaccess.c: Likewise.
39661         * lib/file-type.c: Likewise.
39662         * lib/filemode.c: Likewise.
39663         * lib/glob.c: Likewise.
39664         * lib/isapipe.c: Likewise.
39665         * lib/lchown.c: Likewise.
39666         * lib/lstat.c: Likewise.
39667         * lib/mkdir-p.c: Likewise.
39668         * lib/rmdir.c: Likewise.
39669         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
39670         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
39671         unless mkdir isn't declared, to speed up 'configure'.
39672         Always create sys/stat.h, since it's unlikely any real sys/stat.h
39673         would define all the S_* symbols.
39674         * modules/canonicalize (Depends-on):
39675         Depend on sys_stat, not stat-macros.
39676         * modules/chown: Likewise.
39677         * modules/euidaccess: Likewise.
39678         * modules/filemode: Likewise.
39679         * modules/file-type: Likewise.
39680         * modules/glob: Likewise.
39681         * modules/isapipe: Likewise.
39682         * modules/lchown: Likewise.
39683         * modules/lstat: Likewise.
39684         * modules/mkancesdirs: Likewise.
39685         * modules/rmdir: Likewise.
39686         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
39687         * modules/modechange: Likewise.
39688         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
39689         (configure.ac): Remove gl_STAT_MACROS.
39690         * modules/sys_stat (Depends-on): Remove stat-macros.
39691
39692 2006-10-27  Bruno Haible  <bruno@clisp.org>
39693
39694         * m4/signed.m4: Remove file.
39695         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
39696         invocation.
39697         * modules/vasnprintf (Files): Remove m4/signed.m4.
39698
39699 2006-10-27  Bruno Haible  <bruno@clisp.org>
39700
39701         Update to GNU gettext 0.16.
39702         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
39703         m4/inttypes-h.m4, m4/signed.m4.
39704         * m4/gettext.m4: Update to GNU gettext 0.16.
39705         * m4/intl.m4: New file, from GNU gettext.
39706         * m4/intldir.m4: New file, from GNU gettext.
39707         * config/srclist.txt: Update
39708
39709 2006-10-27  Eric Blake  <ebb9@byu.net>
39710
39711         * MODULES.html.sh: Document tempname.
39712         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
39713         dependencies.
39714         (Files): Move lib/tempname.c...
39715         * modules/tempname: ...to this new module.
39716         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
39717         (gl_PREREQ_TEMPNAME): Move...
39718         * m4/tempname.m4: ...to this new file.
39719         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
39720         * modules/sys_stat (Depends-on): Add stat-macros.
39721         * lib/stat_.h (includes): Pick up stat macros.
39722         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
39723         if stat macros are broken.
39724         * lib/tempname.c (includes): No need to include "stat-macros.h".
39725         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
39726         (direxists, __path_search) [!_LIBC]: Don't compile these in
39727         gnulib; the tmpdir module covers that.
39728         * lib/tempname.h: New file.
39729
39730 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
39731
39732         * COPYING: Explain how gnulib-tool converts licence headers.
39733         Almost all wording by Eric Blake.
39734
39735 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
39736
39737         * lib/mbchar.h (is_basic_table): Make read-only.
39738         * lib/mbchar.c (is_basic_table): Likewise.
39739         Reported by John Darrington.
39740
39741 2006-10-25  Bruno Haible  <bruno@clisp.org>
39742
39743         * lib/progname.h (set_program_name): Undefine before defining.
39744
39745 2006-10-25  Bruno Haible  <bruno@clisp.org>
39746
39747         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
39748         false for non-gcc C++ compilers.
39749         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39750
39751 2006-10-24  Bruno Haible  <bruno@clisp.org>
39752
39753         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
39754         iconv implementations like Irix iconv.
39755
39756 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39757
39758         * modules/vararrays: New file.
39759         * m4/vararrays.m4: New file, taken from diffutils.
39760         * MODULES.html.sh: New module vararrays.
39761
39762 2006-10-24  Karl Berry  <karl@gnu.org>
39763
39764         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
39765         Don't call GNU Unix.
39766
39767 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39768
39769         * users.txt: Add Libtool.
39770
39771         Sync from Libtool:
39772
39773         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39774
39775         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
39776         to gnulib's policy of including config.h unconditionally.
39777
39778 2006-10-24  Bruno Haible  <bruno@clisp.org>
39779
39780         * modules/wcwidth (Files): Add m4/wint_t.m4.
39781         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
39782         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
39783
39784 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39785
39786         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
39787         to pacify GCC with some -W flags enabled.  Problem reported by
39788         Bruno Haible.
39789
39790 2006-10-24  Jim Meyering  <jim@meyering.net>
39791
39792         * MODULES.html.sh: Remove uinttostr.  It's not a module.
39793         Reported by Karl Berry.
39794
39795 2006-10-23  Bruno Haible  <bruno@clisp.org>
39796
39797         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
39798
39799 2006-10-24  Bruno Haible  <bruno@clisp.org>
39800
39801         * lib/gl_list.h: Use C comment style, not C++ comment style.
39802
39803 2006-10-23  Eric Blake  <ebb9@byu.net>
39804
39805         * lib/getaddrinfo.c (includes): Add missing include.
39806
39807 2006-10-23  Bruno Haible  <bruno@clisp.org>
39808             Paul Eggert  <eggert@cs.ucla.edu>
39809
39810         Ability to rename obstack_free.
39811         * lib/obstack.h (__obstack_free): New macro. Declare instead of
39812         obstack_free.
39813         (obstack_free): Invoke the __obstack_free macro.
39814         * lib/obstack.c (obstack_free): Use __obstack_free macro.
39815
39816 2006-10-23  Bruno Haible  <bruno@clisp.org>
39817             Paul Eggert  <eggert@cs.ucla.edu>
39818
39819         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
39820         __argc, __argv from the declaration. (They are defined as macros on
39821         mingw.)
39822
39823 2006-10-22  Bruno Haible  <bruno@clisp.org>
39824
39825         * doc/gnulib-intro.texi: New file.
39826         * doc/gnulib.texi: Include it.
39827
39828 2006-10-21  Bruno Haible  <bruno@clisp.org>
39829
39830         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
39831         "Introduction", "Miscellanous Notes", "Particular Modules".
39832
39833 2006-10-21  Bruno Haible  <bruno@clisp.org>
39834
39835         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39836         Change mostlyclean-local rule to avoid sh syntax error from bash
39837         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
39838
39839 2006-10-23  Jim Meyering  <jim@meyering.net>
39840
39841         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
39842         in place of snprintf.
39843
39844         * modules/inttostr (Files): Add lib/uinttostr.c.
39845         * lib/uinttostr.c (inttostr): New file/function.
39846         * lib/inttostr.h (uinttostr): Declare.
39847         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
39848         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
39849         Add uinttostr.
39850         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
39851
39852 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
39853
39854         * lib/canonicalize.c (ELOOP): Define if not already defined.
39855         Problem reported by Bruno Haible in
39856         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
39857
39858 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
39859
39860         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
39861         Problem reported by Perry Smith and Ville Laurikari.
39862
39863         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
39864         uses.
39865
39866 2006-10-19  Bruno Haible  <bruno@clisp.org>
39867
39868         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
39869         for mingw.
39870
39871 2006-10-19  Bruno Haible  <bruno@clisp.org>
39872
39873         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
39874         Needed for mingw.
39875
39876 2006-10-19  Bruno Haible  <bruno@clisp.org>
39877
39878         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
39879
39880 2006-10-19  Bruno Haible  <bruno@clisp.org>
39881
39882         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
39883         it.
39884
39885 2006-10-19  Bruno Haible  <bruno@clisp.org>
39886
39887         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
39888         invocation.
39889
39890 2006-10-19  Bruno Haible  <bruno@clisp.org>
39891
39892         * gnulib-tool (func_create_testdir): Don't include ftruncate and
39893         mountlist by default.
39894
39895 2006-10-16  Bruno Haible  <bruno@clisp.org>
39896
39897         * lib/c-strstr.c: Include c-strstr.h.
39898
39899 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
39900
39901         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
39902         in a slash.
39903
39904 2006-10-18  Bruno Haible  <bruno@clisp.org>
39905
39906         * lib/lock.h [C++]: Wrap definitions in extern "C".
39907
39908 2006-10-18  Bruno Haible  <bruno@clisp.org>
39909
39910         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
39911         gl_LIBOBJS list.
39912
39913 2006-10-18  Bruno Haible  <bruno@clisp.org>
39914
39915         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
39916
39917 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
39918
39919         * lib/xstrtol.h: Include gettext.h.
39920         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
39921         Problem reported by Eric Blake.
39922         * modules/xstrtol (Depends-on): Add gettext-h.
39923
39924 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
39925
39926         * lib/strftime.c (advance): New macro.
39927         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
39928         incomplete type, so you can't add 0 to it.  Problem and patch
39929         reported by Eelco Dolstra for dietlibc.
39930
39931 2006-10-18  Jim Meyering  <jim@meyering.net>
39932
39933         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
39934         type for a local, and rename it: s/up/user_proc/.
39935
39936 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
39937
39938         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
39939         READ_UTMP_USER_PROCESS.
39940         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
39941
39942 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
39943
39944         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
39945         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
39946
39947 2006-10-17  Eric Blake  <ebb9@byu.net>
39948
39949         * lib/sigprocmask.c (sigprocmask): Fix typo.
39950
39951         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
39952
39953         * modules/clean-temp (Makefile.am): Don't add to make output...
39954         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
39955         config.h.
39956
39957 2006-10-17  Bruno Haible  <bruno@clisp.org>
39958
39959         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
39960         differently if DEFAULT_TEXT_DOMAIN is set.
39961
39962 2006-10-16  Bruno Haible  <bruno@clisp.org>
39963
39964         * lib/clean-temp.c: Include fwriteerror.h.
39965
39966 2006-10-16  Bruno Haible  <bruno@clisp.org>
39967
39968         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
39969
39970 2006-10-16  Bruno Haible  <bruno@clisp.org>
39971
39972         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
39973         * lib/sigprocmask.h: Include <sys/types.h>.
39974         (sigset_t): Use the system's definition if present.
39975
39976 2006-10-17  Eric Blake  <ebb9@byu.net>
39977
39978         * lib/xvasprintf.c (includes): Assume config.h.
39979         * lib/xasprintf.c (includes): Likewise.
39980
39981 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39982
39983         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
39984         at least as wide as intmax_t.
39985
39986 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
39987
39988         (Imported from Automake.)
39989         * build-aux/gnupload: Update to version 1.1 of directive file.
39990
39991 2006-10-16  Eric Blake  <ebb9@byu.net>
39992
39993         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
39994         match Automake 1.10a.
39995
39996 2006-10-14  Bruno Haible  <bruno@clisp.org>
39997
39998         * modules/sigprocmask: New file.
39999         * lib/sigprocmask.h: New file.
40000         * lib/sigprocmask.c: New file.
40001         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
40002         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
40003         request sigprocmask.o.
40004         (gl_PREREQ_SIGPROCMASK): New macro.
40005         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
40006         (Depends-on): Add sigprocmask.
40007         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
40008         gt_SIGNALBLOCKING. Test for 'raise' only once.
40009         * lib/fatal-signal.c: Include sigprocmask.h.
40010         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
40011         unblock_fatal_signals): Define always.
40012         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40013         sigprocmask.
40014
40015 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
40016
40017         Sync from Automake.
40018         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
40019         which incorrectly sets the mode of an existing destination
40020         directory.  In some cases the unpatched install-sh could do the
40021         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
40022         system.  We hope this is rare in practice, but it's clearly worth
40023         fixing.  Problem reported by Alex Unleashed in
40024         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
40025         Also, don't bother to check for -m bugs unless we're using -m;
40026         suggested by Stepan Kasal.
40027
40028 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40029
40030         Sync from Automake.
40031         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
40032         `-c' flag, so they appear at the same position as in %FASTDEP%
40033         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
40034         which ignores unknown options only after the first non-option.
40035         Bug report against M4 by Nelson H. F. Beebe.
40036
40037 2006-10-13  Jim Meyering  <jim@meyering.net>
40038
40039         Fix a bug in yesterday's change.
40040         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
40041         p->fts_statp->st_dev would be used uninitialized.
40042         Ensures that we always call fts_stat on the very first entry.
40043         Miklos Szeredi reported that find -xdev stopped working.
40044
40045 2006-10-12  Bruno Haible  <bruno@clisp.org>
40046
40047         * gnulib-tool (func_get_automake_snippet): Append an automatically
40048         computed EXTRA_DIST augmentation.
40049         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
40050         * modules/alloca-opt (Makefile.am): Likewise.
40051         * modules/allocsa (Makefile.am): Likewise.
40052         * modules/arcfour (Makefile.am): Likewise.
40053         * modules/arctwo (Makefile.am): Likewise.
40054         * modules/argmatch (Makefile.am): Likewise.
40055         * modules/argz (Makefile.am): Likewise.
40056         * modules/atexit (Makefile.am): Likewise.
40057         * modules/backupfile (Makefile.am): Likewise.
40058         * modules/byteswap (Makefile.am): Likewise.
40059         * modules/c-strtod (Makefile.am): Likewise.
40060         * modules/c-strtold (Makefile.am): Likewise.
40061         * modules/calloc (Makefile.am): Likewise.
40062         * modules/canon-host (Makefile.am): Likewise.
40063         * modules/canonicalize (Makefile.am): Likewise.
40064         * modules/chdir-long (Makefile.am): Likewise.
40065         * modules/chdir-safer (Makefile.am): Likewise.
40066         * modules/check-version (Makefile.am): Likewise.
40067         * modules/chown (Makefile.am): Likewise.
40068         * modules/cloexec (Makefile.am): Likewise.
40069         * modules/close-stream (Makefile.am): Likewise.
40070         * modules/closeout (Makefile.am): Likewise.
40071         * modules/crc (Makefile.am): Likewise.
40072         * modules/csharpexec (Makefile.am): Likewise.
40073         * modules/cycle-check (Makefile.am): Likewise.
40074         * modules/des (Makefile.am): Likewise.
40075         * modules/dev-ino (Makefile.am): Likewise.
40076         * modules/dirfd (Makefile.am): Likewise.
40077         * modules/dirname (Makefile.am): Likewise.
40078         * modules/dup2 (Makefile.am): Likewise.
40079         * modules/eealloc (Makefile.am): Likewise.
40080         * modules/error (Makefile.am): Likewise.
40081         * modules/euidaccess (Makefile.am): Likewise.
40082         * modules/exclude (Makefile.am): Likewise.
40083         * modules/exitfail (Makefile.am): Likewise.
40084         * modules/fcntl-safer (Makefile.am): Likewise.
40085         * modules/fcntl (Makefile.am): Likewise.
40086         * modules/file-type (Makefile.am): Likewise.
40087         * modules/fileblocks (Makefile.am): Likewise.
40088         * modules/filemode (Makefile.am): Likewise.
40089         * modules/filenamecat (Makefile.am): Likewise.
40090         * modules/fnmatch (Makefile.am): Likewise.
40091         * modules/fopen-safer (Makefile.am): Likewise.
40092         * modules/fpending (Makefile.am): Likewise.
40093         * modules/fprintftime (Makefile.am): Likewise.
40094         * modules/free (Makefile.am): Likewise.
40095         * modules/fsusage (Makefile.am): Likewise.
40096         * modules/ftruncate (Makefile.am): Likewise.
40097         * modules/fts (Makefile.am): Likewise.
40098         * modules/gc-arcfour (Makefile.am): Likewise.
40099         * modules/gc-des (Makefile.am): Likewise.
40100         * modules/gc-hmac-md5 (Makefile.am): Likewise.
40101         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
40102         * modules/gc-md4 (Makefile.am): Likewise.
40103         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
40104         * modules/gc-sha1 (Makefile.am): Likewise.
40105         * modules/gc (Makefile.am): Likewise.
40106         * modules/getaddrinfo (Makefile.am): Likewise.
40107         * modules/getcwd (Makefile.am): Likewise.
40108         * modules/getdelim (Makefile.am): Likewise.
40109         * modules/getdomainname (Makefile.am): Likewise.
40110         * modules/getgroups (Makefile.am): Likewise.
40111         * modules/gethostname (Makefile.am): Likewise.
40112         * modules/gethrxtime (Makefile.am): Likewise.
40113         * modules/getline (Makefile.am): Likewise.
40114         * modules/getloadavg (Makefile.am): Likewise.
40115         * modules/getlogin_r (Makefile.am): Likewise.
40116         * modules/getndelim2 (Makefile.am): Likewise.
40117         * modules/getopt (Makefile.am): Likewise.
40118         * modules/getpagesize (Makefile.am): Likewise.
40119         * modules/getpass-gnu (Makefile.am): Likewise.
40120         * modules/getpass (Makefile.am): Likewise.
40121         * modules/getsubopt (Makefile.am): Likewise.
40122         * modules/gettime (Makefile.am): Likewise.
40123         * modules/gettimeofday (Makefile.am): Likewise.
40124         * modules/getugroups (Makefile.am): Likewise.
40125         * modules/getusershell (Makefile.am): Likewise.
40126         * modules/glob (Makefile.am): Likewise.
40127         * modules/group-member (Makefile.am): Likewise.
40128         * modules/hard-locale (Makefile.am): Likewise.
40129         * modules/hash (Makefile.am): Likewise.
40130         * modules/hmac-md5 (Makefile.am): Likewise.
40131         * modules/hmac-sha1 (Makefile.am): Likewise.
40132         * modules/human (Makefile.am): Likewise.
40133         * modules/idcache (Makefile.am): Likewise.
40134         * modules/imaxabs (Makefile.am): Likewise.
40135         * modules/imaxdiv (Makefile.am): Likewise.
40136         * modules/inet_ntop (Makefile.am): Likewise.
40137         * modules/inet_pton (Makefile.am): Likewise.
40138         * modules/intprops (Makefile.am): Likewise.
40139         * modules/inttostr (Makefile.am): Likewise.
40140         * modules/inttypes (Makefile.am): Likewise.
40141         * modules/isapipe (Makefile.am): Likewise.
40142         * modules/javaversion (Makefile.am): Likewise.
40143         * modules/lchmod (Makefile.am): Likewise.
40144         * modules/lchown (Makefile.am): Likewise.
40145         * modules/localcharset (Makefile.am): Likewise.
40146         * modules/long-options (Makefile.am): Likewise.
40147         * modules/lstat (Makefile.am): Likewise.
40148         * modules/malloc (Makefile.am): Likewise.
40149         * modules/mathl (Makefile.am): Likewise.
40150         * modules/mbchar (Makefile.am): Likewise.
40151         * modules/md2 (Makefile.am): Likewise.
40152         * modules/md4 (Makefile.am): Likewise.
40153         * modules/md5 (Makefile.am): Likewise.
40154         * modules/memcasecmp (Makefile.am): Likewise.
40155         * modules/memchr (Makefile.am): Likewise.
40156         * modules/memcmp (Makefile.am): Likewise.
40157         * modules/memcoll (Makefile.am): Likewise.
40158         * modules/memcpy (Makefile.am): Likewise.
40159         * modules/memmem (Makefile.am): Likewise.
40160         * modules/memmove (Makefile.am): Likewise.
40161         * modules/mempcpy (Makefile.am): Likewise.
40162         * modules/memrchr (Makefile.am): Likewise.
40163         * modules/memset (Makefile.am): Likewise.
40164         * modules/memxor (Makefile.am): Likewise.
40165         * modules/mkancesdirs (Makefile.am): Likewise.
40166         * modules/mkdir-p (Makefile.am): Likewise.
40167         * modules/mkdir (Makefile.am): Likewise.
40168         * modules/mkdtemp (Makefile.am): Likewise.
40169         * modules/mkstemp (Makefile.am): Likewise.
40170         * modules/mktime (Makefile.am): Likewise.
40171         * modules/modechange (Makefile.am): Likewise.
40172         * modules/mountlist (Makefile.am): Likewise.
40173         * modules/nanosleep (Makefile.am): Likewise.
40174         * modules/obstack (Makefile.am): Likewise.
40175         * modules/openat (Makefile.am): Likewise.
40176         * modules/pagealign_alloc (Makefile.am): Likewise.
40177         * modules/pathmax (Makefile.am): Likewise.
40178         * modules/physmem (Makefile.am): Likewise.
40179         * modules/poll (Makefile.am): Likewise.
40180         * modules/posixtm (Makefile.am): Likewise.
40181         * modules/posixver (Makefile.am): Likewise.
40182         * modules/putenv (Makefile.am): Likewise.
40183         * modules/quote (Makefile.am): Likewise.
40184         * modules/quotearg (Makefile.am): Likewise.
40185         * modules/raise (Makefile.am): Likewise.
40186         * modules/read-file (Makefile.am): Likewise.
40187         * modules/readline (Makefile.am): Likewise.
40188         * modules/readlink (Makefile.am): Likewise.
40189         * modules/readtokens (Makefile.am): Likewise.
40190         * modules/readutmp (Makefile.am): Likewise.
40191         * modules/realloc (Makefile.am): Likewise.
40192         * modules/regex (Makefile.am): Likewise.
40193         * modules/rename-dest-slash (Makefile.am): Likewise.
40194         * modules/rename (Makefile.am): Likewise.
40195         * modules/rijndael (Makefile.am): Likewise.
40196         * modules/rmdir (Makefile.am): Likewise.
40197         * modules/rpmatch (Makefile.am): Likewise.
40198         * modules/safe-read (Makefile.am): Likewise.
40199         * modules/safe-write (Makefile.am): Likewise.
40200         * modules/same-inode (Makefile.am): Likewise.
40201         * modules/same (Makefile.am): Likewise.
40202         * modules/save-cwd (Makefile.am): Likewise.
40203         * modules/savedir (Makefile.am): Likewise.
40204         * modules/setenv (Makefile.am): Likewise.
40205         * modules/settime (Makefile.am): Likewise.
40206         * modules/sha1 (Makefile.am): Likewise.
40207         * modules/sig2str (Makefile.am): Likewise.
40208         * modules/snprintf (Makefile.am): Likewise.
40209         * modules/stat-macros (Makefile.am): Likewise.
40210         * modules/stat-time (Makefile.am): Likewise.
40211         * modules/stdbool (Makefile.am): Likewise.
40212         * modules/stdint (Makefile.am): Likewise.
40213         * modules/stdlib-safer (Makefile.am): Likewise.
40214         * modules/stpcpy (Makefile.am): Likewise.
40215         * modules/stpncpy (Makefile.am): Likewise.
40216         * modules/strcase (Makefile.am): Likewise.
40217         * modules/strcasestr (Makefile.am): Likewise.
40218         * modules/strchrnul (Makefile.am): Likewise.
40219         * modules/strcspn (Makefile.am): Likewise.
40220         * modules/strdup (Makefile.am): Likewise.
40221         * modules/strerror (Makefile.am): Likewise.
40222         * modules/strftime (Makefile.am): Likewise.
40223         * modules/strndup (Makefile.am): Likewise.
40224         * modules/strnlen (Makefile.am): Likewise.
40225         * modules/strpbrk (Makefile.am): Likewise.
40226         * modules/strsep (Makefile.am): Likewise.
40227         * modules/strstr (Makefile.am): Likewise.
40228         * modules/strtod (Makefile.am): Likewise.
40229         * modules/strtoimax (Makefile.am): Likewise.
40230         * modules/strtok_r (Makefile.am): Likewise.
40231         * modules/strtol (Makefile.am): Likewise.
40232         * modules/strtoll (Makefile.am): Likewise.
40233         * modules/strtoul (Makefile.am): Likewise.
40234         * modules/strtoull (Makefile.am): Likewise.
40235         * modules/strtoumax (Makefile.am): Likewise.
40236         * modules/strverscmp (Makefile.am): Likewise.
40237         * modules/sys_socket (Makefile.am): Likewise.
40238         * modules/sys_stat (Makefile.am): Likewise.
40239         * modules/sysexits (Makefile.am): Likewise.
40240         * modules/time_r (Makefile.am): Likewise.
40241         * modules/timegm (Makefile.am): Likewise.
40242         * modules/timespec (Makefile.am): Likewise.
40243         * modules/tmpfile-safer (Makefile.am): Likewise.
40244         * modules/trim (Makefile.am): Likewise.
40245         * modules/unistd-safer (Makefile.am): Likewise.
40246         * modules/unlinkdir (Makefile.am): Likewise.
40247         * modules/unlocked-io (Makefile.am): Likewise.
40248         * modules/userspec (Makefile.am): Likewise.
40249         * modules/utime (Makefile.am): Likewise.
40250         * modules/utimecmp (Makefile.am): Likewise.
40251         * modules/utimens (Makefile.am): Likewise.
40252         * modules/vasnprintf (Makefile.am): Likewise.
40253         * modules/vasprintf (Makefile.am): Likewise.
40254         * modules/vsnprintf (Makefile.am): Likewise.
40255         * modules/xalloc (Makefile.am): Likewise.
40256         * modules/xgetcwd (Makefile.am): Likewise.
40257         * modules/xnanosleep (Makefile.am): Likewise.
40258         * modules/xreadlink (Makefile.am): Likewise.
40259         * modules/xstrtod (Makefile.am): Likewise.
40260         * modules/xstrtol (Makefile.am): Likewise.
40261         * modules/xstrtold (Makefile.am): Likewise.
40262         * modules/yesno (Makefile.am): Likewise.
40263         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
40264
40265 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
40266
40267         * modules/error (Makefile.am): Distribute files through
40268         EXTRA_DIST, not lib_SOURCES.
40269
40270 2006-10-12  Eric Blake  <ebb9@byu.net>
40271
40272         * modules/error (Makefile.am): Distribute files in /lib.
40273         * modules/obstack (Makefile.am): Likewise.
40274
40275 2006-10-12  Bruno Haible  <bruno@clisp.org>
40276
40277         * modules/acl (Makefile.am): Distribute all files in lib/ through
40278         EXTRA_DIST.
40279         * modules/arcfour (Makefile.am): Likewise.
40280         * modules/arctwo (Makefile.am): Likewise.
40281         * modules/argmatch (Makefile.am): Likewise.
40282         * modules/argz (Makefile.am): Likewise.
40283         * modules/atexit (Makefile.am): Likewise.
40284         * modules/backupfile (Makefile.am): Likewise.
40285         * modules/c-strtod (Makefile.am): Likewise.
40286         * modules/c-strtold (Makefile.am): Likewise.
40287         * modules/calloc (Makefile.am): Likewise.
40288         * modules/canon-host (Makefile.am): Likewise.
40289         * modules/canonicalize (Makefile.am): Likewise.
40290         * modules/chdir-long (Makefile.am): Likewise.
40291         * modules/chdir-safer (Makefile.am): Likewise.
40292         * modules/check-version (Makefile.am): Likewise.
40293         * modules/chown (Makefile.am): Likewise.
40294         * modules/cloexec (Makefile.am): Likewise.
40295         * modules/close-stream (Makefile.am): Likewise.
40296         * modules/closeout (Makefile.am): Likewise.
40297         * modules/crc (Makefile.am): Likewise.
40298         * modules/cycle-check (Makefile.am): Likewise.
40299         * modules/des (Makefile.am): Likewise.
40300         * modules/dirfd (Makefile.am): Likewise.
40301         * modules/dirname (Makefile.am): Likewise.
40302         * modules/dup2 (Makefile.am): Likewise.
40303         * modules/euidaccess (Makefile.am): Likewise.
40304         * modules/exclude (Makefile.am): Likewise.
40305         * modules/exitfail (Makefile.am): Likewise.
40306         * modules/fcntl-safer (Makefile.am): Likewise.
40307         * modules/file-type (Makefile.am): Likewise.
40308         * modules/fileblocks (Makefile.am): Likewise.
40309         * modules/filemode (Makefile.am): Likewise.
40310         * modules/filenamecat (Makefile.am): Likewise.
40311         * modules/fnmatch (Makefile.am): Likewise.
40312         * modules/fopen-safer (Makefile.am): Likewise.
40313         * modules/fpending (Makefile.am): Likewise.
40314         * modules/fprintftime (Makefile.am): Likewise.
40315         * modules/free (Makefile.am): Likewise.
40316         * modules/fsusage (Makefile.am): Likewise.
40317         * modules/ftruncate (Makefile.am): Likewise.
40318         * modules/fts (Makefile.am): Likewise.
40319         * modules/gc (Makefile.am): Likewise.
40320         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
40321         * modules/getaddrinfo (Makefile.am): Likewise.
40322         * modules/getcwd (Makefile.am): Likewise.
40323         * modules/getdelim (Makefile.am): Likewise.
40324         * modules/getdomainname (Makefile.am): Likewise.
40325         * modules/getgroups (Makefile.am): Likewise.
40326         * modules/gethostname (Makefile.am): Likewise.
40327         * modules/gethrxtime (Makefile.am): Likewise.
40328         * modules/getline (Makefile.am): Likewise.
40329         * modules/getloadavg (Makefile.am): Likewise.
40330         * modules/getlogin_r (Makefile.am): Likewise.
40331         * modules/getopt (Makefile.am): Likewise.
40332         * modules/getpass (Makefile.am): Likewise.
40333         * modules/getpass-gnu (Makefile.am): Likewise.
40334         * modules/getsubopt (Makefile.am): Likewise.
40335         * modules/gettime (Makefile.am): Likewise.
40336         * modules/gettimeofday (Makefile.am): Likewise.
40337         * modules/getugroups (Makefile.am): Likewise.
40338         * modules/getusershell (Makefile.am): Likewise.
40339         * modules/glob (Makefile.am): Likewise.
40340         * modules/group-member (Makefile.am): Likewise.
40341         * modules/hard-locale (Makefile.am): Likewise.
40342         * modules/hash (Makefile.am): Likewise.
40343         * modules/hmac-md5 (Makefile.am): Likewise.
40344         * modules/hmac-sha1 (Makefile.am): Likewise.
40345         * modules/human (Makefile.am): Likewise.
40346         * modules/idcache (Makefile.am): Likewise.
40347         * modules/imaxabs (Makefile.am): Likewise.
40348         * modules/imaxdiv (Makefile.am): Likewise.
40349         * modules/inet_ntop (Makefile.am): Likewise.
40350         * modules/inet_pton (Makefile.am): Likewise.
40351         * modules/inttostr (Makefile.am): Likewise.
40352         * modules/isapipe (Makefile.am): Likewise.
40353         * modules/lchown (Makefile.am): Likewise.
40354         * modules/long-options (Makefile.am): Likewise.
40355         * modules/lstat (Makefile.am): Likewise.
40356         * modules/malloc (Makefile.am): Likewise.
40357         * modules/mathl (Makefile.am): Likewise.
40358         * modules/mbchar (Makefile.am): Likewise.
40359         * modules/md2 (Makefile.am): Likewise.
40360         * modules/md4 (Makefile.am): Likewise.
40361         * modules/md5 (Makefile.am): Likewise.
40362         * modules/memcasecmp (Makefile.am): Likewise.
40363         * modules/memchr (Makefile.am): Likewise.
40364         * modules/memcmp (Makefile.am): Likewise.
40365         * modules/memcoll (Makefile.am): Likewise.
40366         * modules/memcpy (Makefile.am): Likewise.
40367         * modules/memmem (Makefile.am): Likewise.
40368         * modules/memmove (Makefile.am): Likewise.
40369         * modules/mempcpy (Makefile.am): Likewise.
40370         * modules/memrchr (Makefile.am): Likewise.
40371         * modules/memset (Makefile.am): Likewise.
40372         * modules/memxor (Makefile.am): Likewise.
40373         * modules/mkancesdirs (Makefile.am): Likewise.
40374         * modules/mkdir (Makefile.am): Likewise.
40375         * modules/mkdir-p (Makefile.am): Likewise.
40376         * modules/mkdtemp (Makefile.am): Likewise.
40377         * modules/mkstemp (Makefile.am): Likewise.
40378         * modules/mktime (Makefile.am): Likewise.
40379         * modules/modechange (Makefile.am): Likewise.
40380         * modules/mountlist (Makefile.am): Likewise.
40381         * modules/nanosleep (Makefile.am): Likewise.
40382         * modules/openat (Makefile.am): Likewise.
40383         * modules/pagealign_alloc (Makefile.am): Likewise.
40384         * modules/physmem (Makefile.am): Likewise.
40385         * modules/poll (Makefile.am): Likewise.
40386         * modules/posixtm (Makefile.am): Likewise.
40387         * modules/posixver (Makefile.am): Likewise.
40388         * modules/putenv (Makefile.am): Likewise.
40389         * modules/quote (Makefile.am): Likewise.
40390         * modules/quotearg (Makefile.am): Likewise.
40391         * modules/raise (Makefile.am): Likewise.
40392         * modules/read-file (Makefile.am): Likewise.
40393         * modules/readline (Makefile.am): Likewise.
40394         * modules/readlink (Makefile.am): Likewise.
40395         * modules/readtokens (Makefile.am): Likewise.
40396         * modules/readutmp (Makefile.am): Likewise.
40397         * modules/realloc (Makefile.am): Likewise.
40398         * modules/regex (Makefile.am): Likewise.
40399         * modules/rename (Makefile.am): Likewise.
40400         * modules/rename-dest-slash (Makefile.am): Likewise.
40401         * modules/rijndael (Makefile.am): Likewise.
40402         * modules/rmdir (Makefile.am): Likewise.
40403         * modules/rpmatch (Makefile.am): Likewise.
40404         * modules/safe-read (Makefile.am): Likewise.
40405         * modules/safe-write (Makefile.am): Likewise.
40406         * modules/same (Makefile.am): Likewise.
40407         * modules/save-cwd (Makefile.am): Likewise.
40408         * modules/savedir (Makefile.am): Likewise.
40409         * modules/setenv (Makefile.am): Likewise.
40410         * modules/settime (Makefile.am): Likewise.
40411         * modules/sha1 (Makefile.am): Likewise.
40412         * modules/sig2str (Makefile.am): Likewise.
40413         * modules/snprintf (Makefile.am): Likewise.
40414         * modules/stdlib-safer (Makefile.am): Likewise.
40415         * modules/stpcpy (Makefile.am): Likewise.
40416         * modules/stpncpy (Makefile.am): Likewise.
40417         * modules/strcase (Makefile.am): Likewise.
40418         * modules/strcasestr (Makefile.am): Likewise.
40419         * modules/strchrnul (Makefile.am): Likewise.
40420         * modules/strcspn (Makefile.am): Likewise.
40421         * modules/strdup (Makefile.am): Likewise.
40422         * modules/strerror (Makefile.am): Likewise.
40423         * modules/strftime (Makefile.am): Likewise.
40424         * modules/strndup (Makefile.am): Likewise.
40425         * modules/strnlen (Makefile.am): Likewise.
40426         * modules/strpbrk (Makefile.am): Likewise.
40427         * modules/strsep (Makefile.am): Likewise.
40428         * modules/strstr (Makefile.am): Likewise.
40429         * modules/strtod (Makefile.am): Likewise.
40430         * modules/strtoimax (Makefile.am): Likewise.
40431         * modules/strtok_r (Makefile.am): Likewise.
40432         * modules/strtol (Makefile.am): Likewise.
40433         * modules/strtoll (Makefile.am): Likewise.
40434         * modules/strtoul (Makefile.am): Likewise.
40435         * modules/strtoull (Makefile.am): Likewise.
40436         * modules/strtoumax (Makefile.am): Likewise.
40437         * modules/strverscmp (Makefile.am): Likewise.
40438         * modules/time_r (Makefile.am): Likewise.
40439         * modules/timegm (Makefile.am): Likewise.
40440         * modules/tmpfile-safer (Makefile.am): Likewise.
40441         * modules/unistd-safer (Makefile.am): Likewise.
40442         * modules/unlinkdir (Makefile.am): Likewise.
40443         * modules/userspec (Makefile.am): Likewise.
40444         * modules/utime (Makefile.am): Likewise.
40445         * modules/utimecmp (Makefile.am): Likewise.
40446         * modules/utimens (Makefile.am): Likewise.
40447         * modules/vasnprintf (Makefile.am): Likewise.
40448         * modules/vasprintf (Makefile.am): Likewise.
40449         * modules/vsnprintf (Makefile.am): Likewise.
40450         * modules/xalloc (Makefile.am): Likewise.
40451         * modules/xgetcwd (Makefile.am): Likewise.
40452         * modules/xnanosleep (Makefile.am): Likewise.
40453         * modules/xreadlink (Makefile.am): Likewise.
40454         * modules/xstrtod (Makefile.am): Likewise.
40455         * modules/xstrtol (Makefile.am): Likewise.
40456         * modules/xstrtold (Makefile.am): Likewise.
40457         * modules/yesno (Makefile.am): Likewise.
40458
40459 2006-10-12  Jim Meyering  <jim@meyering.net>
40460
40461         * m4/getloadavg.m4: Revert the change below.
40462
40463         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
40464         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
40465         fail with a symlink, which is what coreutils' ./bootstrap now
40466         creates by default.
40467
40468 2006-10-12  Bruno Haible  <bruno@clisp.org>
40469
40470         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
40471         mingw.
40472         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
40473         MSVC and mingw explicitly.
40474
40475 2006-10-11  Simon Josefsson  <jas@extundo.com>
40476             Bruno Haible  <bruno@clisp.org>
40477
40478         Add support for multiple gnulib-tool invocations in the scope of a
40479         single configure.ac file.
40480         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
40481         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
40482         with the same contents as the _LIBADD variable.
40483         (func_emit_initmacro_start, func_emit_initmacro_end,
40484         func_emit_initmacro_done): New functions.
40485         (func_import, func_create_testdir): Invoke them. Allow the identifiers
40486         gl_LIBOBJS and gl_LTLIBOBJS.
40487
40488 2006-10-11  Bruno Haible  <bruno@clisp.org>
40489
40490         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
40491         (func_create_testdir): Don't create po/Makefile.am, don't invoke
40492         autoreconf. Instead, invoke autopoint explicitly but move back the
40493         *.m4 files from gnulib.
40494
40495 2006-10-11  Bruno Haible  <bruno@clisp.org>
40496
40497         * gnulib-tool (func_usage): Make module names after --create-testdir
40498         optional.
40499         (func_create_testdir): If no module was specified, use nearly all
40500         modules.
40501
40502 2006-10-12  Jim Meyering  <jim@meyering.net>
40503
40504         Big performance improvement for fts-based tools that use FTS_NOSTAT.
40505         Avoid spurious inode-mismatch problems on non-POSIX file systems.
40506         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
40507         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
40508         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
40509         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
40510         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
40511         (fts_set_stat_required): New function.
40512         (fts_open): Defer the calls to fts_stat, if possible or requested.
40513         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
40514         into fts_stat itself.
40515         (fts_read): Perform any required (deferred) fts_stat call.
40516         (fts_build): Likewise, for the directory we're about to open and read.
40517         In the readdir loop, carefully decide whether each entry will require
40518         an eventual call to fts_stat, using dirent.d_type info if available.
40519         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
40520         a command line argument into this function.  Update all callers.
40521         Map a return value of FTS_DOT to FTS_D for a command line argument.
40522         * modules/fts (Depends-on): Add d-type.  Alphabetize.
40523         Thanks to Miklos Szeredi for his tenacity and for the initial
40524         bug report about "find" failing on a FUSE-based file system.
40525
40526         * lib/fts.c (fts_open): Use consistent indentation.
40527
40528 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
40529
40530         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
40531         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
40532         reported by Jim Meyering.  All uses of cache variables renamed
40533         to match Autoconf's.
40534         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
40535         the other one.
40536
40537         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
40538         Fix misspelling in diagnostic.
40539
40540 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
40541
40542         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
40543         defined.  Problem reported by Matthew Woehlke.
40544
40545         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
40546         Add support for Tandem NonStop R series.
40547         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
40548         Use new macro.
40549
40550         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
40551         (has_trailing_slash): Omit size arg; all callers changed.
40552         Omit 'inline', since it doesn't help performance and we'd
40553         need to configure it.
40554         Don't count //, ///, etc. as having a trailing slash.
40555         As a side effect, this removes a C99ism reported by Matthew Woehlke.
40556         (rpl_rename_dest_slash): On failure, use rename's errno rather
40557         than (in some cases) an incorrect or junk errno.
40558         Simplify code by removing need to compute length; this does
40559         cause it to make two passes instead of one over the file name,
40560         but it's worth it.
40561
40562         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
40563         change, since Autoconf's version may no longer be appropriate now
40564         that we are using CVS Autoconf's version.  Add support for Tandem.
40565
40566 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
40567             Bruno Haible  <bruno@clisp.org>
40568
40569         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
40570         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
40571         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
40572         gl_AC_TYPE_LONG_LONG.
40573
40574         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
40575         instead of HAVE_LONG_LONG.
40576         * lib/printf-args.c (printf_fetchargs): Likewise.
40577         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
40578         * lib/vasnprintf.c (VASNPRINTF): Likewise.
40579         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
40580         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
40581         gl_AC_TYPE_LONG_LONG.
40582
40583 2006-10-11  Bruno Haible  <bruno@clisp.org>
40584
40585         * m4/longlong.m4: Add comments.
40586         * m4/ulonglong.m4: Likewise.
40587
40588 2006-10-10  Bruno Haible  <bruno@clisp.org>
40589
40590         Make it possible to #define stpcpy, strdup to aliases.
40591         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
40592         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
40593
40594 2006-10-10  Bruno Haible  <bruno@clisp.org>
40595
40596         Make it possible to #define gcd to an alias.
40597         * lib/gcd.c: Include config.h.
40598
40599 2006-10-10  Bruno Haible  <bruno@clisp.org>
40600
40601         Make it possible to #define c_isascii to an alias.
40602         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
40603         defined. Undefine the macros before defining them, to avoid gcc
40604         warnings.
40605         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
40606         define NO_C_CTYPE_MACROS early.
40607
40608 2006-10-10  Bruno Haible  <bruno@clisp.org>
40609
40610         Make it possible to #define set_program_name to an alias.
40611         * lib/progname.c: Don't undefine set_program_name; instead, undefine
40612         ENABLE_RELOCATABLE early.
40613
40614 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
40615
40616         Port to Tandem NSK OSS, which has 64-bit signed int but at most
40617         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
40618         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
40619         More generally, don't assume that 64-bit signed int is available
40620         if unsigned int is, and vice versa.
40621         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
40622         unsigned symbols, not on their signed counterparts.
40623         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
40624         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
40625         (UINT64_C, UINTMAX_C):
40626         Likewise.
40627         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
40628         unsigned counterparts.
40629         (Have_long_long, Unsigned): New macros.
40630         (Int): Renamed from INT.
40631         (strtoimax): Use the new macros.
40632         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
40633         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
40634         * modules/inttypes (inttypes.h): Substitute
40635         HAVE_UNSIGNED_LONG_LONG_INT.
40636         * modules/stdint (stdint.h): Likewise.
40637         (Files): Add m4/ulonglong.m4.
40638
40639 2006-10-10  Bruno Haible  <bruno@clisp.org>
40640
40641         Fix a gcc -Wshadow warning.
40642         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
40643         to 'bucket'.
40644         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
40645         gl_linked_indexof_from_to): Likewise.
40646         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
40647         Likewise.
40648         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
40649         Likewise.
40650         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
40651         Reported by Eric Blake.
40652
40653 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
40654
40655         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
40656         for NetBSD.  Problem reported by Bruno Haible.
40657
40658 2006-10-09  Jim Meyering  <jim@meyering.net>
40659
40660         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
40661         Patch from Bruno Haible.
40662
40663 2006-10-09  Jim Meyering  <jim@meyering.net>
40664
40665         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
40666         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
40667         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
40668
40669 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
40670
40671         Don't include <config.h> twice; this doesn't work in some cases,
40672         e.g., when config.h has "#define intmax_t long long int" and
40673         we include <config.h>, <inttypes.h>, <config.h> in that order.
40674         Problem reported by Matthew Woehlke in:
40675         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
40676         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
40677         * lib/fts-cycle.c: Don't include config.h.
40678         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
40679         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
40680         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
40681         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
40682         inttypes.h.
40683         * lib/xstrtoumax.c: Likewise.
40684         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
40685         __strtol and the like, so that this module is more like its siblings.
40686         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
40687         Remove; no longer needed now that we assume gnulib inttypes.h.
40688
40689 2006-10-08  Bruno Haible  <bruno@clisp.org>
40690
40691         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
40692         option.
40693
40694 2006-10-07  Jim Meyering  <jim@meyering.net>
40695
40696         * modules/inttypes (inttypes.h): Revert what seems to have been
40697         an inadvertent part of today's change: use "|", not "/" in the
40698         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
40699
40700 2006-10-07  Bruno Haible  <bruno@clisp.org>
40701
40702         * modules/sublist: New file.
40703
40704 2006-10-07  Bruno Haible  <bruno@clisp.org>
40705
40706         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
40707         * modules/argz (argz.h): Likewise.
40708         * modules/arpa_inet (arpa/inet.h): Likewise.
40709         * modules/byteswap (byteswap.h): Likewise.
40710         * modules/configmake (configmake.h): Likewise.
40711         * modules/fcntl (fcntl.h): Likewise.
40712         * modules/fnmatch (fnmatch.h): Likewise.
40713         * modules/getopt (getopt.h): Likewise.
40714         * modules/glob (glob.h): Likewise.
40715         * modules/inttypes (inttypes.h): Likewise.
40716         * modules/netinet_in (netinet/in.h): Likewise.
40717         * modules/poll (poll.h): Likewise.
40718         * modules/stdbool (stdbool.h): Likewise.
40719         * modules/stdint (stdint.h): Likewise.
40720         * modules/sys_select (sys/select.h): Likewise.
40721         * modules/sys_socket (sys/socket.h): Likewise.
40722         * modules/sys_stat (sys/stat.h): Likewise.
40723         * modules/sysexits (sysexits.h): Likewise.
40724         * modules/unistd (unistd.h): Likewise.
40725         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40726         Add a "DO NOT EDIT" comment to the generated file.
40727         (func_import): Likewise for gnulib-comp.m4.
40728
40729 2006-10-07  Bruno Haible  <bruno@clisp.org>
40730
40731         * lib/gl_sublist.h: New file.
40732         * lib/gl_sublist.c: New file.
40733
40734 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
40735
40736         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
40737         name (relative to the original working directory) and the file
40738         name component (relative to the temporary working directory).  All
40739         callers changed.
40740         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
40741         * lib/mkdir-p.c (make_dir_parents): Likewise.
40742         * lib/mkdir-p.h (make_dir_parents): Likewise.
40743
40744 2006-10-06  Eric Blake  <ebb9@byu.net>
40745
40746         Define several macros for use by the clean-temp module.
40747         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
40748         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
40749         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
40750
40751         * lib/clean-temp.h (close_stream_temp): New declaration.
40752         * lib/clean-temp.c (includes): Pull in headers according to what
40753         other modules are in use.
40754         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
40755
40756 2006-10-06  Bruno Haible  <bruno@clisp.org>
40757
40758         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
40759         instead of fopen, fwriteerror.
40760
40761 2006-10-06  Bruno Haible  <bruno@clisp.org>
40762
40763         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
40764         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
40765         int.
40766         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
40767         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
40768         Return an error indicator.
40769         Suggested by Eric Blake.
40770
40771 2006-10-06  Bruno Haible  <bruno@clisp.org>
40772
40773         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
40774         Reported by Eric Blake.
40775
40776 2006-10-06  Bruno Haible  <bruno@clisp.org>
40777
40778         * modules/closeout (Description): Mention stderr too.
40779
40780 2006-10-06  Bruno Haible  <bruno@clisp.org>
40781         and Paul Eggert  <eggert@cs.ucla.edu>
40782
40783         * lib/closeout.c (close_stdout): Also close stderr.
40784         * lib/closeout.h: Update comment.
40785
40786 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
40787
40788         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
40789         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
40790         * lib/dirchownmod.c: Include lchown.h.
40791         * lib/lchown.c: Don't include files that lchown.h now includes.
40792         Don't declare chown, since lchown.h now does that.
40793         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
40794         (lchown): Define to rpl_chown if lchown is declared but
40795         does not exist.  Declare using a prototype if lchown is not
40796         declared.  Add a copyright notice.
40797         * lib/mkstemp.h: Include <unistd.h>.
40798         * lib/openat.c: Include lchown.h.
40799
40800         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
40801         we now test for that separately.
40802         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
40803         rather than O_NOFOLLOW, when testing whether it's possible to
40804         avoid a race condition reliably.
40805         * lib/savewd.c (savewd_chdir): Likewise.
40806
40807         Remove macros that are no longer needed now that stdint.h is
40808         reliable.
40809         * lib/fsusage.c (UINTMAX_MAX): Remove.
40810         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
40811         * lib/utimecmp.c (SIZE_MAX): Remove.
40812
40813         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
40814
40815         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
40816         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
40817         O_NOATIME works.
40818
40819 2006-10-05  Bruno Haible  <bruno@clisp.org>
40820
40821         * lib/gl_list.h (gl_sortedlist_search_from_to,
40822         gl_sortedlist_indexof_from_to): New declarations.
40823         (gl_list_implementation): New fields sortedlist_search_from_to,
40824         sortedlist_indexof_from_to.
40825         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
40826         inline functions.
40827         * lib/gl_list.c (gl_sortedlist_search_from_to,
40828         gl_sortedlist_indexof_from_to): New functions.
40829         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
40830         function.
40831         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
40832         (gl_array_sortedlist_search_from_to): New function.
40833         (gl_array_list_implementation): Update.
40834         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
40835         function.
40836         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
40837         (gl_carray_sortedlist_search_from_to): New function.
40838         (gl_carray_list_implementation): Update.
40839         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
40840         gl_linked_sortedlist_indexof_from_to): New functions.
40841         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
40842         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
40843         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
40844         gl_tree_sortedlist_indexof_from_to): New functions.
40845         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
40846         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
40847         Update.
40848         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
40849         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
40850         Update.
40851
40852 2006-10-05  Bruno Haible  <bruno@clisp.org>
40853
40854         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
40855         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
40856         (struct gl_list_implementation): Add fields search_from_to,
40857         indexof_from_to. Remove fields search, indexof.
40858         (gl_list_search): Use the search_from_to method.
40859         (gl_list_search_from, gl_list_search_from_to): New functions.
40860         (gl_list_indexof): Use the indexof_from_to method.
40861         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
40862         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
40863         (gl_list_search_from, gl_list_search_from_to): New functions.
40864         (gl_list_indexof): Use the indexof_from_to method.
40865         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
40866         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
40867         gl_array_indexof. Add start_index, end_index arguments.
40868         (gl_array_search_from_to): Renamed from gl_array_search. Add
40869         start_index, end_index arguments.
40870         (gl_array_remove, gl_array_list_implementation): Update.
40871         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
40872         gl_carray_indexof. Add start_index, end_index arguments.
40873         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
40874         start_index, end_index arguments.
40875         (gl_carray_remove, gl_carray_list_implementation): Update.
40876         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
40877         gl_linked_search. Add start_index, end_index arguments.
40878         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
40879         start_index, end_index arguments.
40880         (gl_linked_remove): Update.
40881         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
40882         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
40883         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
40884         field to 'size_t'.
40885         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
40886         gl_tree_search. Add start_index, end_index arguments.
40887         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
40888         start_index, end_index arguments.
40889         (gl_tree_remove): Update.
40890         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
40891         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
40892         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
40893         function.
40894         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
40895         gl_tree_search. Add start_index, end_index arguments.
40896         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
40897         start_index, end_index arguments.
40898         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
40899         Update.
40900         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
40901
40902 2006-10-05  Bruno Haible  <bruno@clisp.org>
40903
40904         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
40905
40906         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
40907         fwriteerror_temp): New declarations.
40908         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
40909         (descriptors): New variable.
40910         (cleanup): First, close the descriptors.
40911         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
40912         fclose_temp, fwriteerror_temp): New functions.
40913
40914 2006-10-04  Jim Meyering  <jim@meyering.net>
40915
40916         * lib/fts.c (fts_open): Tiny comment change.
40917
40918 2006-10-04  Bruno Haible  <bruno@clisp.org>
40919
40920         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
40921         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
40922         gl_LOCK_BODY.
40923         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
40924         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
40925         gl_LOCK_EARLY_BODY.
40926         (gl_LOCK): Require gl_LOCK_BODY.
40927
40928 2006-10-04  Bruno Haible  <bruno@clisp.org>
40929
40930         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
40931         (gl_oset_search_atleast): New declaration.
40932         (struct gl_oset_implementation): Add field 'search_atleast'.
40933         (gl_oset_search_atleast): New inline function.
40934         * lib/gl_oset.c (gl_oset_search_atleast): New function.
40935         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
40936         (gl_array_oset_implementation): Update.
40937         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
40938         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
40939         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
40940
40941 2006-10-04  Bruno Haible  <bruno@clisp.org>
40942
40943         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
40944
40945 2006-10-03  Bruno Haible  <bruno@clisp.org>
40946
40947         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
40948         from gl_avltreehash_list_implementation.
40949
40950 2006-10-03  Bruno Haible  <bruno@clisp.org>
40951
40952         * lib/gl_oset.c (gl_oset_add): Fix return type.
40953
40954 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
40955
40956         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
40957
40958 2006-10-02  Eric Blake  <ebb9@byu.net>
40959
40960         * modules/strnlen (Depends-on): Add extensions.
40961
40962 2006-10-02  Eric Blake  <ebb9@byu.net>
40963
40964         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
40965         definition in 2.60+.
40966
40967 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
40968
40969         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
40970         checks.
40971
40972 2006-10-02  Bruno Haible  <bruno@clisp.org>
40973
40974         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
40975         to the AUTOMAKE_OPTIONS.
40976         Reported by Jim Meyering.
40977
40978 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
40979
40980         Work around bug in Solaris 10 /proc file system:
40981         /proc/self/fd/NNN/.. isn't the parent directory of
40982         the directory whose file descriptor is NNN.  This needs to
40983         be worked around at run time, not compile time, since a
40984         program might be built on Solaris 8, where things work, and
40985         run on Solaris 10.
40986         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
40987         to use the following interface instead:
40988         (OPENAT_BUFFER_SIZE): New macro.
40989         (openat_proc_name): New function.
40990         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
40991         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
40992         Likewise.
40993         * lib/openat-proc.c: New file.
40994         * modules/openat (Files): Add lib/openat-proc.c.
40995         (Depends-on): Add same-inode, stdbool.
40996         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
40997
40998 2006-09-29  Bruno Haible  <bruno@clisp.org>
40999
41000         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
41001         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
41002         argument. Set stdout_closed before testing for ferror, not after.
41003         (fwriteerror, fwriteerror_no_ebadf): New functions.
41004
41005 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41006
41007         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
41008
41009 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
41010
41011         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
41012         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
41013
41014 2006-09-28  Jim Meyering  <jim@meyering.net>
41015
41016         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
41017         Include <unistd.h>.
41018
41019 2006-09-28  Bruno Haible  <bruno@clisp.org>
41020
41021         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
41022         * modules/linkedhash-list (Depends-on): Likewise.
41023         * modules/rbtreehash-list (Depends-on): Likewise.
41024
41025 2006-09-28  Bruno Haible  <bruno@clisp.org>
41026
41027         * lib/strndup.h: Simplify the redefinition of strndup.
41028         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
41029         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
41030
41031 2006-09-28  Bruno Haible  <bruno@clisp.org>
41032
41033         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
41034         * lib/gl_linkedhash_list.c: Likewise.
41035         * lib/gl_rbtreehash_list.c: Likewise.
41036
41037 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
41038
41039         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
41040         getaddrinfo.
41041
41042         * lib/__fpending.h: Don't include <stdio_ext.h> unless
41043         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
41044         it causes <stdio_ext.h> to cause a compile-time error.
41045         Problem reported by Nelson H. F. Beebe.
41046         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
41047         of HAVE_DECL___PENDING.
41048
41049         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
41050         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
41051         declaration.
41052
41053 2006-09-27  Jim Meyering  <jim@meyering.net>
41054
41055         This file could end up with a definition for a function
41056         named __strndup, rather than rpl_strndup on a system with
41057         incomplete weak_alias support.
41058         * lib/strndup.c (strndup): Rename from __strndup.
41059         Remove #defines that used to map __strndup to strndup.
41060         Don't use K&R prototypes.
41061         Remove LIBC-related code, since this file is not sync'd with glibc.
41062         * lib/strndup.h: Revamp, accordingly.
41063         * m4/strndup.m4: Modernize.
41064
41065 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
41066
41067         * modules/savewd (Depends-on): Add 'raise'.
41068         * lib/savewd.c: Include <signal.h>, for 'raise'.
41069
41070 2006-09-26  Jim Meyering  <jim@meyering.net>
41071
41072         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
41073         when we detect Darwin 8.7.0's acl_get_file bug.
41074         Rearrange to perform the new (below) run-test while $LIBS
41075         contains any acl-related library.  Set USE_ACL at the end.
41076         (gl_ACL_GET_FILE): New function.
41077
41078 2006-09-26  Eric Blake  <ebb9@byu.net>
41079
41080         * lib/verror.c: Include <config.h> unconditionally.
41081
41082 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
41083
41084         * modules/clock-time (Maintainer): Add self.
41085         * modules/getlogin_r (Depends-on): Add extensions.
41086
41087 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41088
41089         * modules/clock-time: New module.
41090         * modules/nanosleep (Depends-on): Add clock-time.
41091         * modules/gethrxtime (Depends-on): Likewise.
41092         * modules/gettime (Depends-on): Likewise.
41093         * modules/settime (Depends-on): Likewise.
41094
41095         * modules/fts-lgpl: Depend on openat.
41096         * modules/mkancesdirs: Depend on savewd.
41097         * modules/mkdir-p: Likewise.
41098
41099 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41100
41101         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
41102
41103         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
41104         `gl_have_arbitrary_file_name_length_limit' to
41105         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
41106         actually works between configure runs.
41107
41108 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41109             Bruno Haible  <bruno@clisp.org>
41110
41111         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
41112
41113 2006-09-25  Jim Meyering  <jim@meyering.net>
41114
41115         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
41116         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
41117
41118 2006-09-25  Eric Blake  <ebb9@byu.net>
41119
41120         * gnulib-tool (func_import, func_create_testdir): Fix typos in
41121         exec's in 2006-09-18 patch when shuffling fds.
41122
41123 2006-09-25  Bruno Haible  <bruno@clisp.org>
41124
41125         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
41126         Reported by Jim Meyering.
41127
41128 2006-09-24  Jim Meyering  <jim@meyering.net>
41129
41130         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
41131         compare a pointer against a literal "0".  That caused failures with
41132         at least HP-UX's hpcc.
41133
41134 2006-09-22  Simon Josefsson  <jas@extundo.com>
41135
41136         * modules/gc-sha1:
41137         * modules/gc-md4:
41138         * modules/gc-hmac-sha1:
41139         * modules/gc-hmac-md5:
41140         * modules/gc-des:
41141         * modules/gc-arcfour: Distribute more files.
41142
41143 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41144
41145         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
41146         (gl_linked_iterator_from_to): Initialize struct completely.
41147         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
41148         (gl_tree_iterator_from_to): Likewise
41149         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
41150         * lib/gl_array_list.c [lint] (gl_array_iterator)
41151         (gl_array_iterator_from_to): Likewise.
41152         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
41153         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
41154         (gl_carray_iterator_from_to): Likewise.
41155
41156         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
41157         * lib/md4.c (md4_process_block): Remove unused variable.
41158         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
41159         parentheses for clarity.
41160
41161 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41162
41163         * modules/bison-i18n (Depends-on): Add gettext.
41164
41165 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41166
41167         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
41168         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41169         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
41170         also add missing comma that caused broken test.
41171         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
41172         stdlib.h, for `abort'.
41173         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
41174         variables.
41175         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
41176         include unistd.h if present, for `rmdir'.
41177         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
41178         variables.
41179         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
41180         in the process include standard headers for prototypes.
41181         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
41182         gets declared on GNU/Linux.
41183         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
41184         unistd.h, for `rmdir'.
41185         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
41186
41187         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
41188         always true.
41189         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
41190
41191         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
41192
41193 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41194
41195         * gnulib-tool (func_version): Create output all at once.  This
41196         may help avoid triggering unnecessary SIGPIPEs, and at any
41197         rate it doesn't hurt.
41198
41199 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41200             Bruno Haible  <bruno@clisp.org>
41201
41202         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
41203         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41204         * m4/signed.m4 (bh_C_SIGNED): Likewise.
41205
41206         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
41207         (gl_FUNC_VASPRINTF): Invoke it.
41208
41209 2006-09-22  Bruno Haible  <bruno@clisp.org>
41210
41211         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
41212         getloadavg.c as first argument.
41213
41214 2006-09-22  Bruno Haible  <bruno@clisp.org>
41215
41216         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
41217         at the beginning of the gl_INIT macro.
41218         * modules/getloadavg (configure.ac): Pass $gl_source_base to
41219         gl_GETLOADAVG.
41220
41221 2006-09-22  Bruno Haible  <bruno@clisp.org>
41222
41223         * gnulib-tool (func_create_megatestdir): Don't include the config-h
41224         module.
41225         Suggested by Ralf Wildenhues.
41226
41227 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
41228
41229         Import this patch from libc:
41230
41231         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
41232
41233         * lib/regex_internal.c (re_string_reconstruct): Handle
41234         offset < pstr->valid_raw_len && pstr->offsets_needed case.
41235         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
41236         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
41237         re_string_context_at.
41238
41239         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
41240         now requires it.
41241         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
41242         gl_REGEX now does it for us.
41243         (gl_REGEX): Add test taken from
41244         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
41245
41246         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
41247         Check that large offsets work.  Modernize Autoconf usages.
41248         Prefer "yes" to mean a good thing rather than a bad.
41249         Don't put "#define mkstemp" in config.h, as this might interfere
41250         with standard system headers that "#define mkstemp mkstemp64".
41251
41252         * modules/mkstemp (Depends-on): Add extensions, so that
41253         mkstemp is visible on some platforms.
41254         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
41255         (Include): Change to "mkstemp.h" from <stdlib.h>.
41256         (Files): Add mkstemp.h.
41257
41258         * lib/mkstemp.h: New file, since some standard headers
41259         #define mkstemp.
41260         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
41261         Include "mkstemp.h".
41262         Make the _LIBC code resemble glibc original more,
41263         e.g., use K&R style.
41264         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
41265         (mkstemp): Remove, since mkstemp.h does this for us.
41266         * lib/stdlib--.h: Include mkstemp.h.
41267
41268         Import this patch from libc:
41269
41270         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
41271
41272         * lib/tempname.c (__gen_tempname): Change attempts_min
41273         into a macro.  Use preprocessor to decide how to initialize
41274         attempts [Coverity CID 67].
41275
41276 2006-09-20  Bruno Haible  <bruno@clisp.org>
41277
41278         * lib/mkdtemp.c: Import from libc.
41279         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
41280                 * sysdeps/posix/tempname.c (__gen_tempname): Change
41281                 attempts_min into a macro.  Use preprocessor to decide how to
41282                 initialize attempts [Coverity CID 67].
41283         2001-11-27  Paul Eggert  <eggert@twinsun.com>
41284                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
41285                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
41286
41287 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41288
41289         * gnulib-tool (func_exit): New function, to allow to pass the
41290         exit status portably through the trap.  Use everywhere.
41291         (--help, --version): Signal a write error.
41292         (trap): catch SIGPIPE, for write errors.
41293         Exit at the end of the trap, with the correct exit status.
41294
41295 2006-09-19  Karl Berry  <karl@gnu.org>
41296
41297         * doc/gnulib.texi: note about the license texinfo files.
41298
41299 2006-09-19  Eric Blake  <ebb9@byu.net>
41300
41301         * gnulib-tool: Avoid space-tab.
41302
41303 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
41304
41305         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
41306         that prevented coreutils 6.1 from building.  Problem reported
41307         by Petter Reinholdtsen.
41308
41309 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
41310
41311         * gnulib-tool (avoidlist): Fix typo that broke options like
41312         --avoid=lock that are used by coreutils bootstrap.
41313
41314 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
41315
41316         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
41317         more systematically.
41318
41319 2006-09-18  Jim Meyering  <jim@meyering.net>
41320
41321         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
41322
41323 2006-09-18  Bruno Haible  <bruno@clisp.org>
41324
41325         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
41326
41327 2006-09-18  Bruno Haible  <bruno@clisp.org>
41328
41329         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
41330         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
41331         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
41332         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
41333         * m4/gettext.m4: Require autoconf >= 2.52.
41334         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
41335         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
41336         of gl_cv_header_inttypes_h.
41337
41338 2006-09-18  Bruno Haible  <bruno@clisp.org>
41339
41340         * lib/javaversion.c: Include configmake.h.
41341
41342 2006-09-18  Bruno Haible  <bruno@clisp.org>
41343
41344         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
41345         avoid that the while loops be executed in a subshell.
41346
41347 2006-09-18  Bruno Haible  <bruno@clisp.org>
41348
41349         * MODULES.html.sh (func_module): Break long lines.
41350         Suggested by Bruce Korb <bkorb@gnu.org>.
41351
41352 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41353
41354         Speed up by a factor of 1.12.
41355         * gnulib-tool (nl): New variable.
41356         (func_import): Rewrite include directive extraction to only read each
41357         directive once.
41358
41359 2006-09-17  Bruno Haible  <bruno@clisp.org>
41360
41361         * modules/javaversion (Makefile.am): Remove DEFS setting.
41362         (Depends-on): Add configmake, for PKGDATADIR definition.
41363
41364 2006-09-17  Bruno Haible  <bruno@clisp.org>
41365
41366         * gnulib-tool (func_create_testdir): Rewrite all files at once.
41367
41368 2006-09-17  Bruno Haible  <bruno@clisp.org>
41369
41370         * gnulib-tool (func_append): New function, stolen from libtool.m4.
41371         (func_modules_transitive_closure, func_modules_add_dummy,
41372         func_modules_to_filelist, func_import, func_create_testdir,
41373         func_create_megatestdir, ...): Use it wherever possible.
41374         Suggested by Ralf Wildenhues.
41375
41376 2006-09-16  Karl Berry  <karl@gnu.org>
41377
41378         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
41379         to avoid sectioning errors.
41380         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
41381         [ifinfo]: blank line after @center-ed titles.
41382         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
41383         Spell FSF address consistently with others.
41384         (These changes approved by rms.)
41385
41386 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41387
41388         Speed up by a factor of 1.61.
41389         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
41390         already checked module names again.
41391
41392 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41393
41394         Speed up by a factor of 1.13.
41395         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
41396         for new_files, and the input to func_add_or_update.
41397
41398 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41399
41400         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
41401         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
41402
41403 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
41404
41405         * modules/mkancesdirs (Depends-on): Add fcntl.
41406         * modules/savewd: New file.
41407         * MODULES.html.sh (File system functions): Add savewd.
41408
41409         * modules/configmake (Makefile.am): Add support for the
41410         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
41411
41412 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
41413
41414         * m4/savewd.m4: New file.
41415
41416 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
41417
41418         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
41419         (dirchownmod): New arg FD.  All callers changed.
41420         Use FD rather than opening the directory ourself, as opening is
41421         now the caller's responsibility.
41422         * lib/dirchownmod.h: Likewise.
41423         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
41424         hosts that require <sys/types.h> before <sys/stat.h>.  Include
41425         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
41426         (test_dir): Remove.
41427         (mkancesdirs): Return length of prefix of FILE that has already
41428         been made, or -2 if there is a child doing the work.  Redo
41429         algorithm so that it is O(N) rather than O(N**2).  Optimize away
41430         ".", and treat ".." specially since it might stray back into
41431         already-created areas.  Use a subprocess if necessary.  New arg
41432         WD; all users changed.  MAKE_DIR function should now return 1
41433         if it creates a directory that is not readable.  Return -2 if
41434         a child process is spun off.
41435         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
41436         Adjust signature to match code.
41437         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
41438         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
41439         all users changed.
41440         * lib/savewd.c, lib/savewd.h: New files.
41441
41442 2006-09-15  Jim Meyering  <jim@meyering.net>
41443
41444         * modules/rename-dest-slash: New module.
41445         * MODULES.html.sh (posix_compat): Add it here.
41446
41447         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
41448
41449 2006-09-15  Jim Meyering  <jim@meyering.net>
41450
41451         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
41452         file.
41453
41454         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
41455
41456 2006-09-15  Jim Meyering  <jim@meyering.net>
41457
41458         * lib/rename-dest-slash.c (has_trailing_slash): Use
41459         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
41460         (rpl_rename_dest_slash): Perform the cheaper trailing slash
41461         test before testing whether SRC is a directory.
41462         Suggestions from Bruno Haible.
41463
41464         Avoid a warning about an unused variable.
41465         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
41466         into the #ifdef block where it's used.
41467
41468         * lib/rename-dest-slash.c: New file.
41469
41470 2006-09-14  Bruno Haible  <bruno@clisp.org>
41471
41472         * lib/allocsa.c: Include <config.h> unconditionally.
41473         * lib/asnprintf.c: Likewise.
41474         * lib/asprintf.c: Likewise.
41475         * lib/c-strcasecmp.c: Likewise.
41476         * lib/c-strcasestr.c: Likewise.
41477         * lib/c-strncasecmp.c: Likewise.
41478         * lib/c-strstr.c: Likewise.
41479         * lib/classpath.c: Likewise.
41480         * lib/clean-temp.c: Likewise.
41481         * lib/concatpath.c: Likewise.
41482         * lib/copy-file.c: Likewise.
41483         * lib/csharpcomp.c: Likewise.
41484         * lib/csharpexec.c: Likewise.
41485         * lib/execute.c: Likewise.
41486         * lib/fatal-signal.c: Likewise.
41487         * lib/findprog.c: Likewise.
41488         * lib/fwriteerror.c: Likewise.
41489         * lib/gl_array_list.c: Likewise.
41490         * lib/gl_array_oset.c: Likewise.
41491         * lib/gl_avltree_list.c: Likewise.
41492         * lib/gl_avltree_oset.c: Likewise.
41493         * lib/gl_avltreehash_list.c: Likewise.
41494         * lib/gl_carray_list.c: Likewise.
41495         * lib/gl_linked_list.c: Likewise.
41496         * lib/gl_linkedhash_list.c: Likewise.
41497         * lib/gl_list.c: Likewise.
41498         * lib/gl_oset.c: Likewise.
41499         * lib/gl_rbtree_list.c: Likewise.
41500         * lib/gl_rbtree_oset.c: Likewise.
41501         * lib/gl_rbtreehash_list.c: Likewise.
41502         * lib/imaxabs.c: Likewise.
41503         * lib/imaxdiv.c: Likewise.
41504         * lib/javacomp.c: Likewise.
41505         * lib/javaexec.c: Likewise.
41506         * lib/javaversion.c: Likewise.
41507         * lib/linebreak.c: Likewise.
41508         * lib/localcharset.c: Likewise.
41509         * lib/lock.c: Likewise.
41510         * lib/mbchar.c: Likewise.
41511         * lib/mbswidth.c: Likewise.
41512         * lib/mkdtemp.c: Likewise.
41513         * lib/pipe.c: Likewise.
41514         * lib/printf-args.c: Likewise.
41515         * lib/printf-parse.c: Likewise.
41516         * lib/progname.c: Likewise.
41517         * lib/progreloc.c: Likewise.
41518         * lib/readlink.c: Likewise.
41519         * lib/sh-quote.c: Likewise.
41520         * lib/stpcpy.c: Likewise.
41521         * lib/stpncpy.c: Likewise.
41522         * lib/strcasecmp.c: Likewise.
41523         * lib/strcasestr.c: Likewise.
41524         * lib/strcspn.c: Likewise.
41525         * lib/striconv.c: Likewise.
41526         * lib/strncasecmp.c: Likewise.
41527         * lib/strnlen1.c: Likewise.
41528         * lib/strstr.c: Likewise.
41529         * lib/strtok_r.c: Likewise.
41530         * lib/tls.c: Likewise.
41531         * lib/tmpdir.c: Likewise.
41532         * lib/unicodeio.c: Likewise.
41533         * lib/unsetenv.c: Likewise.
41534         * lib/vasnprintf.c: Likewise.
41535         * lib/vasprintf.c: Likewise.
41536         * lib/wait-process.c: Likewise.
41537         * lib/xallocsa.c: Likewise.
41538         * lib/xsetenv.c: Likewise.
41539         * lib/xstriconv.c: Likewise.
41540
41541 2006-09-13  Simon Josefsson  <jas@extundo.com>
41542
41543         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
41544         that internally, suggested by Ralf Wildenhues
41545         <Ralf.Wildenhues@gmx.de>.
41546
41547 2006-09-13  Simon Josefsson  <jas@extundo.com>
41548
41549         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
41550         @LIBOBJS@.
41551         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41552
41553 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
41554
41555         * lib/_fpending.c: Include <config.h> unconditionally, since we no
41556         longer worry about uses that don't define HAVE_CONFIG_H.
41557         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
41558         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
41559         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
41560         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
41561         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
41562         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
41563         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
41564         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
41565         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
41566         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
41567         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
41568         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
41569         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
41570         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
41571         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
41572         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
41573         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
41574         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
41575         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
41576         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
41577         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
41578         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
41579         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
41580         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
41581         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
41582         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
41583         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
41584         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
41585         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
41586         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
41587         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
41588         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
41589         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
41590         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
41591         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
41592         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
41593         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
41594         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
41595         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
41596         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
41597         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
41598         Likewise.
41599
41600 2006-09-13  Eric Blake  <ebb9@byu.net>
41601
41602         * lib/getopt.c: Fix typo in last commit.
41603
41604 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41605
41606         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
41607         dgettext.
41608
41609 2006-09-12  Jim Meyering  <jim@meyering.net>
41610
41611         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
41612         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
41613         Reported by Nelson H. F. Beebe.
41614
41615 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
41616
41617         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
41618         program_invocation_name and program_invocation_short_name are
41619         initialized.
41620         * lib/argp-namefrob.h: Move declarations of program_invocation_name
41621         and program_invocation_short_name to argp.h, so they are visible
41622         to user programs.
41623         * lib/argp.h: Likewise
41624
41625 2006-09-10  Bruno Haible  <bruno@clisp.org>
41626
41627         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
41628         m4/inttypes_h.m4, m4/uintmax_t.m4.
41629
41630 2006-09-10  Bruno Haible  <bruno@clisp.org>
41631
41632         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
41633         gl_AC_TYPE_UINTMAX_T.
41634
41635 2006-09-10  Bruno Haible  <bruno@clisp.org>
41636
41637         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
41638
41639 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
41640
41641         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
41642         convention.  Text proposed by Bruno Haible.
41643         (struct argp_option): Document the use of N_() wrappers.
41644
41645         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
41646         '\v', and translate the two parts separately, instead of feeding
41647         the whole string to gettext.  This allows to exclude
41648         '\v' from the strings visible to the translator by writing doc
41649         strings as N_("..") "\v" N_("..").
41650
41651 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
41652
41653         * config/srclist.txt: Undo latest change; the bug was fixed.
41654
41655 2006-09-09  Bruno Haible  <bruno@clisp.org>
41656
41657         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
41658         assignments if building a library without libtool.
41659         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
41660         in func_emit_lib_Makefile_am.
41661         (func_import): When building a static library libfoo.a, arrange to
41662         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
41663         (func_create_testdir): Likewise.
41664         * modules/gc (configure.ac, Makefile.am): If building statically,
41665         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
41666         * modules/iconvme (configure.ac, Makefile.am): Likewise.
41667         * modules/striconv (configure.ac, Makefile.am): Likewise.
41668         Based on a suggestion by Ralf Wildenhues.
41669
41670 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41671
41672         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
41673         Check for unistd.h too, since Autoconf doesn't assume POSIX.
41674         Also:
41675
41676         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41677         Add year_2050_test to catch glibc bug 2821
41678         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
41679
41680         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
41681         Prefer #ifdef to #if.
41682
41683         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
41684         Return from 'main' instead of calling 'exit'.
41685
41686 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41687
41688         * lib/mktime.c (guess_time_tm): Fix bug where mktime
41689         returned the maximum time_t value rather than (time_t) -1.
41690         Problem originally reported by William Bardwell
41691         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
41692
41693         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
41694         Moved to here ...
41695         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
41696         ... from here.
41697
41698 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41699
41700         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
41701         2821 is fixed.
41702
41703 2006-09-08  Jim Meyering  <jim@meyering.net>
41704
41705         Don't make generated files read-only.  That would bother too many
41706         people.  However, do retain the ability to work when targets are
41707         read-only: remove the destination and temporary files before writing
41708         them (when generated via sed or echo), or by using the -f option for
41709         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
41710         * modules/alloca-opt, modules/argz, modules/arpa_inet:
41711         * modules/byteswap, modules/configmake, modules/fcntl:
41712         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
41713         * modules/localcharset, modules/netinet_in, modules/poll:
41714         * modules/stdbool, modules/stdint, modules/sys_select:
41715         * modules/sys_socket, modules/sys_stat, modules/sysexits:
41716
41717 2006-09-08  Jim Meyering  <jim@meyering.net>
41718
41719         Avoid new build failure on FreeBSD 6.0.
41720         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
41721         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
41722         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
41723
41724 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41725
41726         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
41727
41728 2006-09-07  Jim Meyering  <jim@meyering.net>
41729
41730         Fix global typo in last change: use chmod u-w, not chmod u-x.
41731         Spotted by Paul Eggert and Bruce Korb.
41732         * modules/alloca-opt, modules/argz, modules/arpa_inet:
41733         * modules/byteswap, modules/configmake, modules/fcntl:
41734         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
41735         * modules/localcharset, modules/netinet_in, modules/poll:
41736         * modules/stdbool, modules/stdint, modules/sys_select:
41737         * modules/sys_socket, modules/sys_stat, modules/sysexits:
41738
41739 2006-09-06  Jim Meyering  <jim@meyering.net>
41740
41741         Make generated files be read-only.
41742         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
41743         Ensure that each generated file is now read-only.
41744         * modules/argz: Likewise.
41745         * modules/arpa_inet: Likewise.
41746         * modules/byteswap: Likewise.
41747         * modules/configmake: Likewise.
41748         * modules/fcntl: Likewise.
41749         * modules/fnmatch: Likewise.
41750         * modules/getopt: Likewise.
41751         * modules/glob: Likewise.
41752         * modules/inttypes: Likewise.
41753         * modules/netinet_in: Likewise.
41754         * modules/poll: Likewise.
41755         * modules/stdbool: Likewise.
41756         * modules/stdint: Likewise.
41757         * modules/sys_select: Likewise.
41758         * modules/sys_socket: Likewise.
41759         * modules/sys_stat: Likewise.
41760         * modules/sysexits: Likewise.
41761         * modules/localcharset: Same as above, but continue using temporary
41762         file named "t-$@" (why different?) rather than the "$@-t" used
41763         everywhere else.
41764
41765         * modules/sysexits (Makefile.am): Replace literal occurrences
41766         of "sysexit.h" more readable, and more consistent, "$@".
41767
41768 2006-09-06  Bruno Haible  <bruno@clisp.org>
41769
41770         * modules/striconv: New file.
41771         * modules/xstriconv: New file.
41772         * MODULES.html.sh (Internationalization functions): Add striconv,
41773         xstriconv.
41774
41775 2006-09-06  Bruno Haible  <bruno@clisp.org>
41776
41777         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
41778         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
41779         not using libtool correctly.
41780
41781 2006-09-06  Bruno Haible  <bruno@clisp.org>
41782
41783         * lib/striconv.h: New file.
41784         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
41785         iconvstring.c.
41786         * lib/xstriconv.h: New file.
41787         * lib/xstriconv.c: New file.
41788
41789 2006-09-06  Bruno Haible  <bruno@clisp.org>
41790
41791         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41792         lib_..._LDFLAGS.
41793
41794 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41795
41796         * lib/argz_.h: Sync from Libtool.
41797
41798         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
41799                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41800
41801         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
41802
41803 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
41804
41805         * modules/trim: New file.
41806
41807 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
41808
41809         * lib/trim.h: New file.
41810         * lib/trim.c: New file.
41811
41812 2006-09-05  Bruno Haible  <bruno@clisp.org>
41813
41814         * MODULES.html.sh (String handling): Add trim.
41815
41816 2006-09-04  Karl Berry  <karl@gnu.org>
41817
41818         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
41819         until next release.
41820
41821 2006-09-03  Bruno Haible  <bruno@clisp.org>
41822
41823         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
41824         correctly.
41825
41826 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41827
41828         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
41829         not gl_GETLOADAVG.  Omit unneeded semicolons.
41830         Problems reported by Ralf Wildenhues in
41831         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
41832         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
41833         at the end, which is the usual gnulib style.
41834
41835         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
41836         of doing all the work ourselves.
41837         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
41838         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
41839
41840 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41841
41842         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
41843         Problem reported by Ralf Wildenhues in
41844         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
41845
41846         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
41847         HAVE_STRUCT_STATFS_F_FSTYPENAME.
41848
41849 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41850
41851         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
41852         yesterday's patch by changing test -n to test -z.
41853
41854 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41855
41856         * modules/getloadavg (Files): Add m4/getloadavg.m4.
41857         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
41858         the former is now obsolescent.
41859
41860         * modules/chdir-long (Depends-on): Add fcntl.
41861
41862 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41863
41864         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
41865         obsolescent, and programs should use gnulib instead.
41866         * m4/getloadavg.m4: New file, with contents taken from Autoconf
41867         but with prefixes changed.
41868
41869 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41870
41871         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
41872         or stdbool.h, because they might not exist while configuring.
41873
41874         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
41875         Don't include unistd.h or limits.h; not needed, since chdir-long.h
41876         does that for us.
41877         (O_DIRECTORY): Remove.
41878
41879 2006-08-31  Eric Blake  <ebb9@byu.net>
41880
41881         * gnulib-tool: Don't let emacs change spaces to TAB.
41882
41883 2006-08-31  Bruno Haible  <bruno@clisp.org>
41884
41885         * gnulib-tool: When calling func_import more than once, do it in a
41886         subshell.
41887         Reported by Eric Blake <ebb9@byu.net>.
41888
41889 2006-08-31  Bruno Haible  <bruno@clisp.org>
41890
41891         * gnulib-tool (nl): Remove variable.
41892         (sed_transform_lib_file): Use more robust test for config-h module.
41893         (func_import): Fix typo in 2006-08-25 patch.
41894
41895 2006-08-31  Bruno Haible  <bruno@clisp.org>
41896
41897         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
41898         specified, augment Makefile.am variables instead of assigning them.
41899
41900 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
41901
41902         Work around a bug in both the Linux and SunOS 64-bit kernels:
41903         nanosleep mishandles sleeps for longer than 2**31 seconds.
41904         Problem reported by Frank v Waveren in
41905         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
41906         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
41907         Check for nanosleep bug.
41908         (LIB_NANOSLEEP): Append clock_gettime library if needed.
41909
41910 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
41911
41912         Work around a bug in both the Linux and SunOS 64-bit kernels:
41913         nanosleep mishandles sleeps for longer than 2**31 seconds.
41914         Problem reported by Frank v Waveren in
41915         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
41916         * lib/nanosleep.c (BILLION): New constant.
41917         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
41918         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
41919         implementation.
41920
41921 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
41922
41923         * modules/nanosleep (Depends-on): Add gettime.
41924
41925 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
41926         and Simon Josefsson  <jas@extundo.com>
41927         and Oskar Liljeblad  <oskar@osk.mine.nu>
41928
41929         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
41930         * gnulib-tool (func_import): New license type 'unmodifiable license
41931         text'.
41932         * modules/fdl: Use it.  Longer description.
41933         * module/gpl, module/lgpl: New files.
41934
41935 2006-08-30  Jim Meyering  <jim@meyering.net>
41936
41937         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
41938         shadowing the parameter.
41939
41940 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41941
41942         Sync from Libtool:
41943
41944         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41945
41946         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
41947         sharing with gnulib.  Report by Eric Blake.
41948
41949 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
41950
41951         * modules/isapipe: New file.
41952         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
41953
41954 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
41955
41956         * modules/configmake (Makefile.am): Add a comment, and omit
41957         the CONFIGMAKE_ prefix from generated macro names.  Suggested
41958         by Bruno Haible.
41959
41960 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
41961
41962         * m4/isapipe.m4: New file.
41963
41964 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
41965
41966         * lib/isapipe.c, lib/isapipe.h: New files.
41967
41968 2006-08-29  Jim Meyering  <jim@meyering.net>
41969
41970         * modules/configmake (Makefile.am): Make configmake.h depend on
41971         Makefile.  Otherwise, a stale configmake.h could hang around.
41972
41973 2006-08-29  Eric Blake  <ebb9@byu.net>
41974
41975         * lib/error.c (error_at_line, print_errno_message): Match libc, after
41976         resolution of upstream bug 3044.
41977
41978 2006-08-29  Bruno Haible  <bruno@clisp.org>
41979
41980         * modules/localcharset (Depends-on): Add configmake.
41981         (Makefile.am): Remove setting of LIBDIR through DEFS.
41982
41983 2006-08-29  Bruno Haible  <bruno@clisp.org>
41984
41985         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
41986         defined.
41987
41988 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
41989
41990         * modules/fcntl: New file.
41991         * modules/chdir-safer (Depends-on): Add fcntl.
41992         * modules/fts: Likewise.
41993         * modules/mkdir-p: Likewise.
41994
41995         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
41996         This undoes the most recent change, since we're now addressing the
41997         problem in a different way.
41998
41999         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
42000         into output, since the output might be called Makefile.am even
42001         if $makefile_name is something different.
42002         (func_import): Use $makefile_am rather than
42003         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
42004         empty.
42005
42006         * modules/inttypes (Files): Add m4/inttypes-h.m4.
42007
42008 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42009
42010         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
42011         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
42012         recent change to stdint.m4, since we're now addressing the problem in a
42013         different way.
42014
42015 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42016
42017         * m4/fcntl_h.m4: New file.
42018
42019 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42020
42021         * lib/fcntl_.h: New file.
42022         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
42023         the fcntl module.
42024         * lib/dirchownmod.c: Likewise.
42025         * lib/fts.c: Likewise.
42026
42027         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
42028         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
42029         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
42030         just before including <inttypes.h>, to avoid circular inclusion.
42031
42032 2006-08-28  Jim Meyering  <jim@meyering.net>
42033
42034         * doc/visibility.texi: Actually read and correct the grammar of the
42035         sentence affected by yesterday's change.
42036
42037 2006-08-28  Eric Blake  <ebb9@byu.net>
42038
42039         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
42040         needs wrapper.
42041
42042 2006-08-28  Eric Blake  <ebb9@byu.net>
42043
42044         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
42045
42046 2006-08-28  Eric Blake  <ebb9@byu.net>
42047
42048         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
42049
42050 2006-08-28  Bruno Haible  <bruno@clisp.org>
42051
42052         * modules/c-strstr: New file, from GNU gettext.
42053         * MODULES.html.sh (String handling): Add c-strstr.
42054
42055 2006-08-28  Bruno Haible  <bruno@clisp.org>
42056
42057         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
42058         macros.
42059         Reported by Eric Blake.
42060
42061 2006-08-28  Bruno Haible  <bruno@clisp.org>
42062
42063         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
42064         (VASNPRINTF): Return a string of length > INT_MAX without failing.
42065         * lib/vasprintf.c: Include errno.h, limits.h.
42066         (EOVERFLOW): New fallback definition.
42067         (vasprintf): Test here whether the string length is > INT_MAX.
42068         * lib/vsnprintf.c: Include errno.h, limits.h.
42069         (EOVERFLOW): New fallback definition.
42070         (vsnprintf): Fix bug when generated string was too long for the buffer.
42071         Test here whether the string length is > INT_MAX.
42072
42073 2006-08-28  Bruno Haible  <bruno@clisp.org>
42074
42075         * lib/inttypes_.h (SCNX*): Remove definitions.
42076         Reported by Eric Blake.
42077
42078 2006-08-28  Bruno Haible  <bruno@clisp.org>
42079
42080         * lib/c-strstr.h: New file, from GNU gettext.
42081         * lib/c-strstr.c: New file, from GNU gettext.
42082
42083 2006-08-28  Bruno Haible  <bruno@clisp.org>
42084
42085         * gnulib-tool: Reorder some statements.
42086
42087 2006-08-28  Bruno Haible  <bruno@clisp.org>
42088
42089         * gnulib-tool: New option --makefile-name.
42090         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
42091         $makefile_name.
42092         (func_import): Write $makefile_name to the cache file, and read it from
42093         there unless explicitly specified. Use $makefile_name as file name
42094         instead of Makefile.am. Adjust the recommendations accordingly.
42095
42096 2006-08-28  Bruno Haible  <bruno@clisp.org>
42097
42098         * gnulib-tool (func_verify_module): Check against misapplying patch.
42099
42100 2006-08-28  Bruno Haible  <bruno@clisp.org>
42101
42102         * gnulib-tool (func_relativize, func_relconcat): New functions.
42103         Give an error if --local-dir is given with --update.
42104         Remove trailing slashes from $local_gnulib_dir.
42105         (func_import): Store the relativized $local_gnulib_dir in
42106         gnulib-cache.m4, and read it from there if not specified explicitly.
42107
42108 2006-08-28  Bruno Haible  <bruno@clisp.org>
42109
42110         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
42111         is the current directory. Respect also $local_gnulib_dir.
42112
42113 2006-08-28  Bruno Haible  <bruno@clisp.org>
42114             Simon Josefsson  <jas@extundo.com>
42115
42116         BeOS portability.
42117         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
42118
42119 2006-08-27  Jim Meyering  <jim@meyering.net>
42120
42121         * doc/visibility.texi: Remove duplicate word: "pointer".
42122
42123 2006-08-26  Bruno Haible  <bruno@clisp.org>
42124
42125         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
42126         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
42127         (Makefile.am): Create inttypes.h from inttypes_.h.
42128         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
42129
42130         * modules/imaxabs: New file.
42131
42132         * modules/imaxdiv: New file.
42133
42134 2006-08-26  Bruno Haible  <bruno@clisp.org>
42135
42136         * m4/inttypes.m4: New file.
42137         * m4/_inttypes_h.m4: Remove file.
42138         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
42139         PRI_MACROS_BROKEN.
42140         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
42141
42142         * m4/imaxabs.m4: New file.
42143
42144         * m4/imaxdiv.m4: New file.
42145
42146 2006-08-26  Bruno Haible  <bruno@clisp.org>
42147
42148         * lib/inttypes_.h: New file.
42149         * lib/inttypes.h: Remove file.
42150         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
42151
42152         * lib/imaxabs.c: New file.
42153
42154         * lib/imaxdiv.c: New file.
42155
42156 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
42157
42158         New config-h module, so that "make" output needn't be cluttered
42159         by -DHAVE_CONFIG_H.
42160         * MODULES.html.sh (Support for building libraries and executables):
42161         Add config-h.
42162         * modules/config-h: New file.
42163         * gnulib-tool (nl, sed_transform_lib_file): New vars.
42164         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
42165         the config-h module is used.
42166
42167         New configmake module, so that "make" output needn't be cluttered
42168         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
42169         * MODULES.html.sh (Support for building libraries and executables):
42170         Add configmake.
42171         * modules/configmake: New file.
42172
42173 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
42174
42175         * m4/config-h.m4: New file.
42176
42177 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
42178
42179         * config/srclist.txt: Add elisp-comp.
42180
42181 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
42182
42183         * MODULES.html.sh (Support for building libraries and executables):
42184         Add elisp-comp.
42185         * build-aux/elisp-comp: New file.
42186         * modules/elisp-comp: New file.
42187
42188 2006-08-24  Bruno Haible  <bruno@clisp.org>
42189
42190         * gnulib-tool (func_create_testdir): Use non-default values of
42191         sourcebase and m4base.
42192
42193 2006-08-24  Bruno Haible  <bruno@clisp.org>
42194
42195         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
42196         HTML structure.
42197
42198 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
42199
42200         * modules/openat (Depends-on): Add lchown.
42201
42202 2006-08-23  Bruno Haible  <bruno@clisp.org>
42203
42204         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
42205         of gl_LOCK_EARLY instead of gl_LOCK.
42206
42207 2006-08-23  Bruno Haible  <bruno@clisp.org>
42208
42209         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
42210         on OSF/1 to no.
42211         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
42212
42213 2006-08-23  Bruno Haible  <bruno@clisp.org>
42214
42215         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
42216         as unusable.
42217
42218         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
42219         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
42220         (gl_LOCK): New macro.
42221
42222 2006-08-22  Simon Josefsson  <jas@extundo.com>
42223
42224         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
42225         to md5 module.
42226
42227 2006-08-22  Simon Josefsson  <jas@extundo.com>
42228
42229         * MODULES.html.sh: Add "Support for maintaining and release
42230         projects".
42231
42232         * build-aux/gnupload: New file, from coreutils.
42233
42234 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
42235
42236         Avoid the need for AC_LIBSOURCES in m4 macros.
42237         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
42238         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
42239         * modules/check-version (EXTRA_DIST): Add check-version.h.
42240         * modules/crc (EXTRA_DIST): Add crc.h.
42241         * modules/des (EXTRA_DIST): Add des.h.
42242         * modules/gc (EXTRA_DIST): Add gc.h.
42243         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
42244         * modules/getline (EXTRA_DIST): Add getline.h.
42245         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
42246         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
42247         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
42248         * modules/md2 (EXTRA_DIST): Add md2.h.
42249         * modules/md4 (EXTRA_DIST): Add md4.h.
42250         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
42251         * modules/read-file (EXTRA_DIST): Add read-file.h.
42252         * modules/readline (EXTRA_DIST): Add readline.h.
42253         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
42254         rijndael-api-fst.h.
42255
42256 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
42257
42258         * m4/rijndael.m4 (gl_ARCFOUR):
42259         * m4/arctwo.m4 (gl_ARCTWO):
42260         * m4/check-version.m4 (gl_CHECK_VERSION):
42261         * m4/crc.m4 (gl_CRC):
42262         * m4/des.m4 (gl_DES):
42263         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
42264         * m4/gc.m4 (gl_GC):
42265         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
42266         * m4/getline.m4 (gl_FUNC_GETLINE):
42267         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
42268         * m4/hmac-md5.m4 (gl_HMAC_MD5):
42269         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
42270         * m4/md2.m4 (gl_MD2):
42271         * m4/md4.m4 (gl_MD4):
42272         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
42273         * m4/read-file.m4 (gl_FUNC_READ_FILE):
42274         * m4/readline.m4 (gl_FUNC_READLINE):
42275         * m4/rijndael.m4 (gl_RIJNDAEL):
42276         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
42277         to get the necessary .h files and whatnot.
42278
42279 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
42280
42281         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
42282         gnulib rather than the other way around.
42283         * config/srclistvars.sh (COREUTILS): Remove.
42284
42285 2006-08-22  Jim Meyering  <jim@meyering.net>
42286
42287         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
42288
42289         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
42290
42291 2006-08-22  Eric Blake  <ebb9@byu.net>
42292
42293         * modules/regexprops-generic: New file.
42294         * MODULES.html.sh (Support for building documentation): List it.
42295
42296 2006-08-22  Eric Blake  <ebb9@byu.net>
42297
42298         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
42299         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42300         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
42301         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
42302
42303 2006-08-22  Bruno Haible  <bruno@clisp.org>
42304
42305         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
42306         and lib_LTLIBRARIES like the other lib_* variables.
42307
42308 2006-08-22  Bruno Haible  <bruno@clisp.org>
42309
42310         * build-aux/x-to-1.in: New file, from GNU gettext.
42311
42312 2006-08-22  Bruno Haible  <bruno@clisp.org>
42313
42314         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
42315         <utmpx.h> exists.
42316
42317 2006-08-22  Bruno Haible  <bruno@clisp.org>
42318
42319         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
42320         <utmpx.h> exists.
42321
42322 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
42323
42324         BeOS portability.
42325         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
42326         exist.
42327         Problem reported by Bruno Haible.
42328
42329 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
42330
42331         Avoid the need for AC_LIBSOURCES in m4 macros.
42332         * modules/acl (EXTRA_DIST): Add acl.h.
42333         * modules/argmatch (Files): Add m4/argmatch.m4.
42334         (configure.ac): Add gl_ARGMATCH.
42335         (EXTRA_DIST): Renamed from lib_SOURCES, for
42336         consistency with the other modules.  Remove argmatch.c.
42337         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
42338         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
42339         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
42340         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
42341         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
42342         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
42343         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
42344         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
42345         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
42346         * modules/closeout (EXTRA_DIST): Add closeout.h.
42347         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
42348         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
42349         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
42350         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
42351         dirname.h; remove basename.c and stripslash.c.
42352         * modules/exclude (EXTRA_DIST): Add exclude.h.
42353         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
42354         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
42355         * modules/file-type (EXTRA_DIST): Add file-type.h.
42356         * modules/filemode (EXTRA_DIST): Add filemode.h.
42357         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
42358         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
42359         * modules/fpending (EXTRA_DIST): Add __fpending.h.
42360         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
42361         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
42362         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
42363         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
42364         * modules/getdate (EXTRA_DIST): Add getdate.c.
42365         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
42366         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
42367         * modules/getpass (EXTRA_DIST): Add getpass.h.
42368         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
42369         * modules/group-member (EXTRA_DIST): Add group-member.h.
42370         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
42371         * modules/hash (EXTRA_DIST): Add hash.h.
42372         * modules/human (EXTRA_DIST): Add human.h.
42373         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
42374         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
42375         * modules/lchown (EXTRA_DIST): Add lchown.h.
42376         * modules/long-options (EXTRA_DIST): Add long-options.h.
42377         * modules/lstat (EXTRA_DIST): Add lstat.h.
42378         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
42379         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
42380         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
42381         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
42382         * modules/memxor (EXTRA_DIST): Add memxor.h.
42383         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
42384         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
42385         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
42386         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
42387         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
42388         * modules/physmem (EXTRA_DIST): Add physmem.h.
42389         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
42390         * modules/posixver (EXTRA_DIST): Add posixver.h.
42391         * modules/quote (EXTRA_DIST): Add quote.h.
42392         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
42393         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
42394         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
42395         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
42396         regex_internal.h regexec.c.
42397         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
42398         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
42399         * modules/same (EXTRA_DIST): Add same.h.
42400         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
42401         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
42402         * modules/savedir (EXTRA_DIST): Add savedir.h.
42403         * modules/sha1 (EXTRA_DIST): Add sha1.h.
42404         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
42405         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
42406         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
42407         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
42408         * modules/strdup (EXTRA_DIST): Add strdup.h.
42409         * modules/strftime (EXTRA_DIST): Add strftime.h.
42410         * modules/strndup (EXTRA_DIST): Add strndup.h.
42411         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
42412         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
42413         * modules/time_r (EXTRA_DIST): Add time_r.h.
42414         * modules/timespec (EXTRA_DIST): Add timespec.h.
42415         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
42416         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
42417         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
42418         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
42419         * modules/userspec (EXTRA_DIST): Add userspec.h.
42420         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
42421         * modules/utimens (EXTRA_DIST): Add utimens.h.
42422         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
42423         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
42424         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
42425         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
42426         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
42427         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
42428         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
42429         * modules/yesno (EXTRA_DIST): Add yesno.h.
42430
42431 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
42432
42433         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
42434
42435         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
42436         * m4/dev-ino.m4, same-inode.m4: Remove.
42437
42438         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
42439         * m4/acl.m4 (AC_FUNC_ACL):
42440         * m4/backupfile.m4 (gl_BACKUPFILE):
42441         * m4/c-strtod.m4 (gl_C99_STRTOLD):
42442         * m4/canon-host.m4 (gl_CANON_HOST):
42443         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
42444         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
42445         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
42446         * m4/cloexec.m4 (gl_CLOEXEC):
42447         * m4/close-stream.m4 (gl_CLOSE_STREAM):
42448         * m4/closeout.m4 (gl_CLOSEOUT):
42449         * m4/dirfd.m4 (gl_FUNC_DIRFD):
42450         * m4/dirname.m4 (gl_DIRNAME):
42451         * m4/exclude.m4 (gl_EXCLUDE):
42452         * m4/exitfail.m4 (gl_EXITFAIL):
42453         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
42454         * m4/file-type.m4 (gl_FILE_TYPE):
42455         * m4/filemode.m4 (gl_FILEMODE):
42456         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
42457         * m4/fpending.m4 (gl_FUNC_FPENDING):
42458         * m4/fprintftime.m4 (gl_FPRINTFTIME):
42459         * m4/fts.m4 (gl_FUNC_FTS):
42460         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
42461         * m4/getdate.m4 (gl_GETDATE):
42462         * m4/gethrxtime.m4 (gl_GETHRXTIME):
42463         * m4/getpagesize.m4 (gl_GETPAGESIZE):
42464         * m4/getpass.m4 (gl_FUNC_GETPASS):
42465         * m4/gettime.m4 (gl_GETTIME):
42466         * m4/getugroups.m4 (gl_GETUGROUPS):
42467         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
42468         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
42469         * m4/hard-locale.m4 (gl_HARD_LOCALE):
42470         * m4/hash.m4 (gl_HASH):
42471         * m4/idcache.m4 (gl_IDCACHE):
42472         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
42473         * m4/lchown.m4 (gl_FUNC_LCHOWN):
42474         * m4/long-options.m4 (gl_LONG_OPTIONS):
42475         * m4/lstat.m4 (gl_FUNC_LSTAT):
42476         * m4/md5.m4 (gl_MD5):
42477         * m4/memcasecmp.m4 (gl_MEMCASECMP):
42478         * m4/memcoll.m4 (gl_MEMCOLL):
42479         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
42480         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
42481         * m4/memxor.m4 (gl_MEMXOR):
42482         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
42483         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
42484         * m4/modechange.m4 (gl_MODECHANGE):
42485         * m4/mountlist.m4 (gl_MOUNTLIST):
42486         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
42487         * m4/openat.m4 (gl_FUNC_OPENAT):
42488         * m4/pathmax.m4 (gl_PATHMAX):
42489         * m4/physmem.m4 (gl_PHYSMEM):
42490         * m4/posixtm.m4 (gl_POSIXTM):
42491         * m4/posixver.m4 (gl_POSIXVER):
42492         * m4/quote.m4 (gl_QUOTE):
42493         * m4/quotearg.m4 (gl_QUOTEARG):
42494         * m4/readtokens.m4 (gl_READTOKENS):
42495         * m4/readutmp.m4 (gl_READUTMP):
42496         * m4/regex.m4 (gl_REGEX):
42497         * m4/safe-read.m4 (gl_SAFE_READ):
42498         * m4/safe-write.m4 (gl_SAFE_WRITE):
42499         * m4/same.m4 (gl_SAME):
42500         * m4/save-cwd.m4 (gl_SAVE_CWD):
42501         * m4/savedir.m4 (gl_SAVEDIR):
42502         * m4/settime.m4 (gl_SETTIME):
42503         * m4/sha1.m4 (gl_SHA1):
42504         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
42505         * m4/stat-macros.m4 (gl_STAT_MACROS):
42506         * m4/stat-time.m4 (gl_STAT_TIME):
42507         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
42508         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
42509         * m4/strdup.m4 (gl_FUNC_STRDUP):
42510         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
42511         * m4/strndup.m4 (gl_FUNC_STRNDUP):
42512         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
42513         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
42514         * m4/time_r.m4 (gl_TIME_R):
42515         * m4/timespec.m4 (gl_TIMESPEC):
42516         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
42517         * m4/unlinkdir.m4 (gl_UNLINKDIR):
42518         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
42519         * m4/userspec.m4 (gl_USERSPEC):
42520         * m4/utimecmp.m4 (gl_UTIMECMP):
42521         * m4/utimens.m4 (gl_UTIMENS):
42522         * m4/xalloc.m4 (gl_XALLOC):
42523         * m4/xgetcwd.m4 (gl_XGETCWD):
42524         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
42525         * m4/xreadlink.m4 (gl_XREADLINK):
42526         * m4/xstrtod.m4 (gl_XSTRTOD):
42527         * m4/yesno.m4 (gl_YESNO):
42528         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
42529         to get the necessary .h files and whatnot.
42530
42531 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
42532             Bruno Haible  <bruno@clisp.org>
42533
42534         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
42535         /bin/sh understanding of '!' conditional negation.
42536
42537 2006-08-21  Jim Meyering  <jim@meyering.net>
42538
42539         * modules/openat (Depends-on): Really alphabetize.
42540
42541         * modules/acl (Depends-on): Add error and quote.
42542
42543         * check-module (find_included_lib_files): Add at-func.c to the
42544         ok-to-include-more-than-once white list.
42545
42546         * modules/openat (Depends-on): Add lstat.  Alphabetize.
42547
42548 2006-08-21  Bruno Haible  <bruno@clisp.org>
42549
42550         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42551         Emit a pkgdata_DATA variable only if some snippets add contents to it.
42552         Reported by Martin Lambers <marlam@marlam.de>.
42553
42554 2006-08-21  Bruno Haible  <bruno@clisp.org>
42555
42556         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
42557         specify an installation location, don't emit a noinst_LIBRARIES or
42558         noinst_LTLIBRARIES assignment.
42559
42560 2006-08-21  Bruno Haible  <bruno@clisp.org>
42561
42562         BeOS portability.
42563         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
42564         BeOS has mbrtowc() but no <wctype.h>.
42565
42566 2006-08-21  Bruno Haible  <bruno@clisp.org>
42567
42568         BeOS portability.
42569         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
42570         exist.
42571
42572 2006-08-21  Bruno Haible  <bruno@clisp.org>
42573
42574         BeOS portability.
42575         * lib/mbchar.h: Include <wctype.h> only if it exists.
42576
42577 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
42578
42579         Remove files that are no longer needed by their respective modules.
42580         * m4/obstack.m4: Remove.
42581         * m4/strerror_r.m4: Remove.
42582         * m4/uint32_t.m4: Remove.
42583         * m4/uintptr_t.m4: Remove.
42584         * m4/ullong_max.m4: Remove.
42585         * m4/xstrtoimax.m4: Remove.
42586         * m4/xstrtoumax.m4: Remove.
42587
42588         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
42589         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
42590         dependencies now capture this.
42591
42592         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
42593         Do not use AC_LIBSOURCES, since gnulib modules now do this.
42594         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
42595         * m4/human.m4 (gl_HUMAN): Likewise.
42596         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
42597         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
42598
42599         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
42600
42601         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
42602         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
42603         stdint.
42604         * m4/human.m4 (gl_HUMAN): Likewise.
42605         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
42606         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
42607         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
42608         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
42609         * m4/xstrtol (gl_XSTRTOL): Likewise.
42610
42611         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
42612         AC_TYPE_LONG_LONG_INT.
42613         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
42614         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
42615         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
42616         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
42617
42618         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
42619         on stdbool.
42620
42621         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
42622         (gl_PREREQ_XSTRTOUL): Remove.
42623
42624         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
42625
42626         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
42627         mode.
42628
42629 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
42630
42631         Add and change modules to make it easier for coreutils to use
42632         gnulib-tool.
42633         * modules/backupfile (Files): Remove m4/d-ino.m4.
42634         (Depends-on): Add d-ino.
42635         * modules/cycle-check (Depends-on): Add stdint.
42636         (lib_SOURCES): Add cycle-check.h.
42637         * modules/d-ino: New module.
42638         * modules/d-type: New module.
42639         * modules/error (Files): Remove m4/strerror_r.m4.
42640         * modules/filemode (Files): Add m4/st_dm_mode.m4.
42641         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
42642         m4/inttypes_h.m4, m4/uintmax_t.m4.
42643         (Depends-on): Add stdint.
42644         (lib_SOURCES): Add fsusage.h.
42645         * modules/getcwd (Files): Remove d-ino.m4.
42646         (Depends-on): Add d-ino.
42647         * modules/getndelim2 (Depends-on): Add stdint.
42648         * modules/glob (Files): Remove m4/d-type.m4.
42649         (Depends-on): Add d-type.
42650         * modules/host-os: New module.
42651         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
42652         m4/inttypes_h.m4, m4/uintmax_t.m4.
42653         * Depends-on: Add stdint.
42654         (lib_SOURCES): Add human.h.
42655         * modules/inttostr (Files): Remove m4/intmax_t.m4,
42656         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
42657         m4/uintmax_t.m4, m4/ulonglong.m4.
42658         (Depends-on): Add stdint.
42659         (EXTRA_DIST): Add inttostr.h.
42660         * modules/lchmod: New module.
42661         * modules/link-follow: New module.
42662         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
42663         (Depends-on): Add lchmod.
42664         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
42665         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
42666         (Depends-on): Add stdint.
42667         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
42668         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
42669         (Depends-on): Add stdint.
42670         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
42671         * modules/perl: New module.
42672         * modules/regex (Depends-on): Add stdint.
42673         * modules/rmdir-errno: New module.
42674         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
42675         m4/intmax_t.m4.
42676         (Depends-on): Add stdint.
42677         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
42678         m4/uintmax_t.m4.
42679         (Depends-on): Add stdint.
42680         * modules/unlink-busy: New module.
42681         * modules/utimecmp (Depends-on): Add stdint.
42682         * modules/uptime: New module.
42683         * modules/winsz-ioctl: New module.
42684         * modules/winsz-termios: New module.
42685         * modules/xnanosleep (Depends-on): Add nanosleep.
42686         * modules/ullong_max: Remove.
42687         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
42688         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
42689         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
42690         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
42691         (Depends-on): Add inttypes.
42692         (lib_SOURCES): Add xstrtol.h.
42693         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
42694         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
42695         * MODULES.html.sh: Move 'assert' into the assert section.
42696         Move 'dummy' into the linking section.
42697         Remove ullong_max.
42698         Add section for compatibility checks for POSIX:2001 functions,
42699         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
42700         winsz-ioctl, and winsz-termios into it.
42701         Add lchmod.
42702         Add top-level Misc section and put host-os, perl, and uptime
42703         into it.
42704
42705 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
42706
42707         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
42708         now assume the stdint module.  Do not include inttypes.h.
42709         * lib/fsusage.h: Likewise.
42710         * lib/getndelim2.c: Likewise.
42711         * lib/human.h: Likewise.
42712         * lib/inttostr.h: Likewise.
42713         * lib/obstack.c: Likewise.
42714         * lib/regex_internal.h: Likewise.
42715         * lib/tempname.c: Likewise.
42716         * lib/utimecmp.c: Likewise.
42717         * lib/xstrtol.h: Likewise.
42718
42719         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
42720
42721         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
42722         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
42723         * lib/xtime.h: Likewise.
42724
42725 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
42726
42727         * modules/openat (Files): Add lib/fchmodat.c.
42728         Fixes problem reported by Jay Youngman.
42729
42730 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
42731
42732         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
42733         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
42734
42735 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
42736             Bruno Haible  <bruno@clisp.org>
42737
42738         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
42739         and is a script that invokes bison. Tighten the code. Add comments.
42740
42741 2006-08-18  Jim Meyering  <jim@meyering.net>
42742
42743         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
42744         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
42745         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
42746         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
42747
42748 2006-08-18  Bruno Haible  <bruno@clisp.org>
42749
42750         * modules/bison-i18n: New file.
42751         * MODULES.html.sh (Internationalization functions): Add it.
42752
42753 2006-08-18  Bruno Haible  <bruno@clisp.org>
42754
42755         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
42756         sys/statvfs.h. When getmntinfo was found, check its declaration and
42757         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
42758
42759 2006-08-18  Bruno Haible  <bruno@clisp.org>
42760
42761         * m4/bison-i18n.m4: New file, from bison.
42762
42763 2006-08-18  Bruno Haible  <bruno@clisp.org>
42764
42765         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
42766         (ME_DUMMY): Treat "kernfs" as a dummy.
42767         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
42768
42769 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
42770
42771         Update from coreutils.
42772
42773         2006-08-15  Jim Meyering  <jim@meyering.net>
42774
42775         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
42776
42777         2006-01-17  Jim Meyering  <jim@meyering.net>
42778
42779         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
42780
42781         2006-01-11  Jim Meyering  <jim@meyering.net>
42782
42783         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
42784         Check for the lchmod function.
42785
42786 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
42787
42788         Update from coreutils.
42789
42790         * lib/__fpending.h: Add copyright notice.
42791         * lib/fprintftime.h: Likewise.
42792         * lib/savedir.c: Use (C) in copyright notice.
42793         * lib/savedir.h: Likewise.
42794
42795         2006-08-15  Jim Meyering  <jim@meyering.net>
42796
42797         * lib/at-func.c: New file, with the logic of all emulated at-functions.
42798         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
42799         in support of the EXPECTED_ERRNO macro.
42800         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
42801         definitions.  Instead, define the appropriate symbols and include
42802         "at-func.c".
42803         * lib/mkdirat.c (mkdirat): Likewise.
42804         * lib/fchmodat.c (fchmodat): Likewise.
42805         (ENOSYS): Remove definition.
42806         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
42807         it.  Don't include "unistd--.h" -- it wasn't ever used.
42808
42809         2006-01-17  Jim Meyering  <jim@meyering.net>
42810
42811         Rewrite fts.c not to change the current working directory,
42812         by using openat, fstatat, fdopendir, etc..
42813
42814         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
42815         (HAVE_OPENAT_SUPPORT): Define.
42816         [_LIBC] (fchdir): Don't undef or define; no longer used.
42817         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
42818         Now, this `function' always succeeds, and consumes its file descriptor
42819         parameter -- so callers must not close such FDs.  Update callers.
42820         (diropen_fd, opendirat, cwd_advance_fd): New functions.
42821         (diropen): Add parameter, SP.  Adjust all callers.
42822         Implement using diropen_fd, rather than open.
42823         (fts_open): Initialize new member, fts_cwd_fd.
42824         Remove fts_rft-setting code.
42825         (fts_close): Close fts_cwd_fd, if necessary.
42826         (__opendir2): Define in terms of opendir or opendirat,
42827         depending on whether the FST_NOCHDIR flag is set.
42828         (fts_build): Since fts_safe_changedir consumes its FD, and since
42829         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
42830         and close the dup'd file descriptor upon failure.
42831         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
42832         (fts_safe_changedir): Tweak semantics to reflect that this function
42833         now calls cwd_advance_fd and hence consumes its FD argument.
42834         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
42835         [struct FTS] (fts_rft): Remove now-unused member.
42836         [struct FTS] (fts_cycle.state): Improve comment.
42837
42838         * lib/openat.c (openat_needs_fchdir): New function.
42839         * lib/openat.h (openat_needs_fchdir): Declare it.
42840
42841 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
42842
42843         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
42844         Problem and fix reported by Pádraig Brady in
42845         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
42846
42847 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42848
42849         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
42850
42851 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42852
42853         * lib/memcoll.c (memcoll): Optimize for the common case where the
42854         arguments are bytewise equal.
42855
42856 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42857
42858         * doc/regexprops-generic.texi: Add a copyright notice.
42859
42860 2006-08-15  Bruno Haible  <bruno@clisp.org>
42861
42862         * modules/tmpdir (License): Change to LGPL.
42863
42864 2006-08-15  Bruno Haible  <bruno@clisp.org>
42865
42866         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
42867         module.
42868
42869 2006-08-14  Simon Josefsson  <jas@extundo.com>
42870
42871         * config/srclist.txt: Add gnupload.
42872
42873 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42874
42875         Change copyright notice from LGPL 2 to GPL 2, since that's the
42876         standard form used in the gnulib repository.
42877         * tests/test-lock.c: Likewise.
42878         * tests/test-stdint.c: Likewise.
42879         * tests/test-tls.c: Likewise.
42880
42881         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
42882         prelude-manager.  User shorter URLs for GNU projects, without '?'.
42883         Add copyright notice.
42884
42885         * check-module: Add copyright notice.  Output a copyright
42886         notice if "--version" is specified.
42887         * modules/COPYING: New file.
42888         * tests/test-getaddrinfo.c: Add copyright notice.
42889         * tests/test-verify.c: Likewise.
42890
42891 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42892
42893         Change copyright notice from LGPL 2 to GPL 2, since that's the
42894         standard form used in the gnulib repository.
42895         * lib/lock.c: LGPL -> GPL.
42896         * lib/lock.h: Likewise.
42897         * lib/strnlen1.c: Likewise.
42898         * lib/strnlen1.h: Likewise.
42899         * lib/tls.c: Likewise.
42900         * lib/tls.h: Likewise.
42901         * lib/tmpdir.c: Likewise.
42902
42903         * lib/TODO: Remove; this belongs only in coreutils.
42904
42905 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42906
42907         Add copyright notices to long-enough files that lack them, since
42908         otherwise the files aren't clearly free.  Use the same notice that
42909         getdate.texi already uses.
42910         * doc/alloca-opt.texi: Add copyright notice.
42911         * doc/alloca.texi: Likewise.
42912         * doc/ctime.texi: Likewise.
42913         * doc/functions.texi: Likewise.
42914         * doc/gcd.texi: Likewise.
42915         * doc/gnulib-tool.texi: Likewise.
42916         * doc/inet_ntoa.texi: Likewise.
42917         * doc/visibility.texi: Likewise.
42918
42919         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
42920         * doc/quote.texi: Add copyright notice.
42921
42922         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
42923         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
42924         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
42925         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
42926         is now obsolete, and give a pointer to the Sun list.
42927         Add copyright notice.
42928
42929 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42930
42931         * config/srclistvars.sh: Add copyright notice.
42932
42933 2006-08-14  Eric Blake  <ebb9@byu.net>
42934
42935         Import the following change from libc:
42936
42937         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
42938
42939         Upstream bug 2997.
42940         * lib/misc/error.c: Add space between program name and message if file
42941         name is missing.
42942
42943 2006-08-12  Karl Berry  <karl@gnu.org>
42944
42945         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
42946         remove, these originate in gnulib now.
42947
42948 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42949
42950         * doc/Makefile (standards.info standards.html standards.dvi):
42951         Also depend on make-stds.texi.
42952
42953 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
42954
42955         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
42956         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
42957
42958         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
42959         in wchar_t.  Problem reported by Eric Blake.
42960
42961         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
42962         LEN is smaller than SIZE.  Suggested by Bruno Haible.
42963         Also, help the compiler to keep LEN in a register.
42964
42965 2006-08-11  Eric Blake  <ebb9@byu.net>
42966
42967         * users.txt: Sort.  Add tar.
42968
42969 2006-08-11  Bruno Haible  <bruno@clisp.org>
42970
42971         * users.txt: New file.
42972
42973 2006-08-11  Bruno Haible  <bruno@clisp.org>
42974
42975         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
42976         before <wchar.h>. Needed for OSF/1 and BSD/OS.
42977
42978 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
42979
42980         * modules/snprintf (Depends-on): Remove minmax.
42981         (Maintainer): Add self and Bruno.
42982
42983 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
42984
42985         * lib/.cppi-disable: Add snprintf.h, socket_.h.
42986         * lib/snprintf.c: Include <errno.h> and <limits.h>.
42987         (EOVERFLOW): Define if the system does not.
42988         Do not include "minmax.h"; it wasn't used.
42989         (snprintf): Don't assume size_t promotes to an unsigned type.
42990         Fix bug when generated string was too long for the buffer: the
42991         buffer's contents are supposed to be the initial prefix of the
42992         output.  Don't assume vasnprintf returns EOVERFLOW if the size
42993         exceeds INT_MAX; do the check ourselves.
42994
42995         Import the following changes from libc:
42996
42997         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
42998
42999         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
43000         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
43001         set wc to the byte which couldn't be converted.
43002         (re_string_reconstruct): Don't clear valid_raw_len before calling
43003         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
43004         tip_context using re_string_context_at.
43005
43006         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
43007
43008         * lib/posix/regex.h: g++ still cannot handled [restrict].
43009
43010         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
43011
43012         * lib/posix/regex.h: Remove special handling for VMS.
43013
43014 2006-08-10  Jim Meyering  <jim@meyering.net>
43015
43016         * modules/same-inode: New module.
43017         * modules/dev-ino: New module.
43018         * modules/cycle-check: Depend on these modules, rather than simply
43019         including their .h files.
43020         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
43021         required via m4/cycle-check.m4.
43022         * modules/same: Depend on new same-inode module, rather than
43023         including same-inode.h.
43024         * modules/chdir-safer: New file.
43025
43026         * modules/chown (Depends-on): Add stat-macros.
43027
43028 2006-08-10  Jim Meyering  <jim@meyering.net>
43029
43030         * m4/cycle-check.m4: New file.
43031         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
43032         * m4/dev-ino.m4, m4/same-inode.m4: New files.
43033
43034 2006-08-10  Eric Blake  <ebb9@byu.net>
43035
43036         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
43037         in from original proposal.
43038
43039 2006-08-10  Eric Blake  <ebb9@byu.net>
43040         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43041
43042         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
43043         namespace.
43044
43045 2006-08-10  Bruno Haible  <bruno@clisp.org>
43046
43047         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
43048         as well.
43049
43050 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43051
43052         Sync from coreutils.
43053
43054         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
43055
43056         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
43057         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
43058
43059 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43060
43061         * modules/restrict: Remove; no longer needed now that we assume
43062         Autoconf 2.59 or later.
43063         * MODULES.html.sh: Remove 'restrict'.
43064         * modules/argp (Depends-on): Remove 'restrict'.
43065         * modules/base64 (Depends-on): Likewise.
43066         * modules/gc (Depends-on): Likewise.
43067         * modules/getaddrinfo (Depends-on): Likewise.
43068         * modules/glob (Depends-on): Likewise.
43069         * modules/inet_ntop (Depends-on): Likewise.
43070         * modules/inet_pton (Depends-on): Likewise.
43071         * modules/memxor (Depends-on): Likewise.
43072         * modules/regex (Depends-on): Likewise.
43073         * modules/strtok_r (Depends-on): Likewise.
43074         * modules/time_r (Depends-on): Likewise.
43075
43076 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43077
43078         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
43079         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
43080         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
43081         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
43082         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
43083         * m4/memxor.m4 (gl_MEMXOR): Likewise.
43084         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
43085         gl_C_RESTRICT replaced by AC_C_RESTRICT.
43086
43087         Merge from coreutils.
43088         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
43089         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
43090         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
43091         * m4/time_r.m4 (gl_TIME_R): Likewise.
43092
43093 2006-08-09  Karl Berry  <karl@gnu.org>
43094
43095         * config/srclist.txt: no more gettext-tools, per Bruno.
43096
43097 2006-08-08  Eric Blake  <ebb9@byu.net>
43098
43099         * modules/verror: New module.
43100         * MODULES.html.sh: Document it.
43101
43102 2006-08-08  Eric Blake  <ebb9@byu.net>
43103
43104         * lib/verror.h, lib/verror.c: New files.
43105
43106 2006-08-08  Eric Blake  <ebb9@byu.net>
43107
43108         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
43109         verror_at_line output complies with GNU Coding Standards even when
43110         file is NULL.
43111
43112 2006-08-07  Bruno Haible  <bruno@clisp.org>
43113
43114         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
43115         versions of AIX.
43116         Reported by Ralf Wildenhues.
43117
43118 2006-08-07  Bruno Haible  <bruno@clisp.org>
43119
43120         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
43121         in an AC_DEFUN. Needed so that the autoconf snippets can use
43122         AC_REQUIRE.
43123
43124 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43125
43126         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43127         Initialize pkgdata_DATA.
43128         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
43129         overriding it.
43130
43131 2006-08-06  Eric Blake  <ebb9@byu.net>
43132
43133         * lib/error.h: Fold in some upstream changes from glibc.
43134         * lib/error.c: Likewise.
43135
43136 2006-08-04  Bruno Haible  <bruno@clisp.org>
43137
43138         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43139         Make the mostlyclean-local rule depend on mostlyclean-generic.
43140         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
43141
43142 2006-07-31  Bruno Haible  <bruno@clisp.org>
43143
43144         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
43145         <stdlib.h>, <string.h>.
43146
43147 2006-07-30  Bruno Haible  <bruno@clisp.org>
43148
43149         * modules/readlink (License): Change to LGPL.
43150
43151 2006-07-30  Bruno Haible  <bruno@clisp.org>
43152
43153         * modules/javaversion (Makefile.am): Distribute javaversion.java and
43154         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
43155         set PKGDATADIR to point to it.
43156
43157 2006-07-30  Bruno Haible  <bruno@clisp.org>
43158
43159         * modules/csharpexec (configure.ac): Comment out macro invocation.
43160         * modules/javaexec (configure.ac): Likewise.
43161         * modules/javacomp-script (configure.ac): Likewise.
43162
43163         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
43164
43165 2006-07-30  Bruno Haible  <bruno@clisp.org>
43166
43167         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
43168         linked-list.
43169
43170 2006-07-30  Bruno Haible  <bruno@clisp.org>
43171
43172         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
43173
43174 2006-07-30  Bruno Haible  <bruno@clisp.org>
43175
43176         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43177         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
43178         get removed.
43179
43180 2006-07-29  Bruno Haible  <bruno@clisp.org>
43181
43182         Make it possible for gnulib-tool to work with locally modified or
43183         augmented gnulib repositories.
43184         * gnulib-tool (func_usage): Document --local-dir option.
43185         (local_gnulib_dir): New variable.
43186         Handle --local-dir option.
43187         (func_lookup_file): New function.
43188         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
43189         (func_get_description, func_get_filelist, func_get_description,
43190         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
43191         func_get_automake_snippet, func_get_include_directive,
43192         func_get_license, func_get_maintainer): Use func_lookup_file.
43193         (func_import, func_create_testdir): Use func_lookup_file.
43194
43195 2006-07-29  Bruno Haible  <bruno@clisp.org>
43196
43197         * modules/setenv (Depends-on): Add unistd.
43198
43199 2006-07-29  Bruno Haible  <bruno@clisp.org>
43200
43201         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
43202
43203 2006-07-29  Bruno Haible  <bruno@clisp.org>
43204
43205         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
43206
43207 2006-07-29  Bruno Haible  <bruno@clisp.org>
43208
43209         * gnulib-tool (import, update): If there is no Makefile.am, look at
43210         aclocal.m4, instead of bailing out.
43211
43212 2006-07-29  Bruno Haible  <bruno@clisp.org>
43213
43214         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
43215         Categorize the options by when they are useful.
43216
43217 2006-07-29  Bruno Haible  <bruno@clisp.org>
43218
43219         * gnulib-tool (func_usage): Document option --no-libtool.
43220         Handle option --no-libtool.
43221         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
43222         for changed semantics of $libtool variable.
43223         (func_import): Likewise. If libtool is not used, show this through
43224         an option --no-libtool.
43225         (func_create_testdir): Update.
43226
43227 2006-07-29  Bruno Haible  <bruno@clisp.org>
43228
43229         * gnulib-tool (func_import): Extend error message about missing
43230         --doc-base.
43231
43232 2006-07-29  Bruno Haible  <bruno@clisp.org>
43233
43234         * gnulib-tool (func_import): Don't create the $docbase directory if
43235         there is no file to store there.
43236
43237 2006-07-29  Bruno Haible  <bruno@clisp.org>
43238
43239         * gnulib-tool (autoconf_minversion): If a --dir option is given and
43240         relevant, look for configure.ac there, not in the current directory.
43241         Also use a simple search for AC_PREREQ, not "autoconf --trace".
43242
43243 2006-07-29  Bruno Haible  <bruno@clisp.org>
43244
43245         * gnulib-tool (SORT): New variable.
43246         (func_usage): Undocument --assume-autoconf option.
43247         Remove --assume-autoconf option handling.
43248         (autoconf_minversion): Determine from the contents of configure.ac.
43249         (func_import): Remove autoconf_minversion handling.
43250         Suggested by Eric Blake.
43251
43252 2006-07-29  Bruno Haible  <bruno@clisp.org>
43253
43254         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
43255
43256 2006-07-29  Bruno Haible  <bruno@clisp.org>
43257
43258         * config/srclist.txt (*setenv.[ch]): Remove rules.
43259
43260 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43261
43262         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
43263
43264 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43265
43266         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
43267         arpa/inet.h.
43268
43269 2006-07-28  Simon Josefsson  <jas@extundo.com>
43270
43271         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
43272         * modules/inet_pton (Depends-on): Likewise.
43273
43274 2006-07-28  Simon Josefsson  <jas@extundo.com>
43275
43276         * m4/netinet_in_h.m4: New file.
43277
43278 2006-07-28  Simon Josefsson  <jas@extundo.com>
43279
43280         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
43281         #include's.
43282
43283 2006-07-28  Simon Josefsson  <jas@extundo.com>
43284
43285         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
43286         #include's.
43287
43288 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
43289
43290         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
43291         setgid on directories only if they set these bits.
43292         * lib/modechange.h: Remove obsolete comment about masks.
43293
43294 2006-07-28  Eric Blake  <ebb9@byu.net>
43295
43296         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
43297         macro expansion.
43298
43299 2006-07-28  Bruno Haible  <bruno@clisp.org>
43300
43301         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
43302
43303 2006-07-28  Bruno Haible  <bruno@clisp.org>
43304
43305         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
43306
43307 2006-07-28  Bruno Haible  <bruno@clisp.org>
43308
43309         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43310         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
43311         Define fallbacks.
43312         Avoids link error on FreeBSD 4.x.
43313         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43314
43315         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
43316         encoding.
43317         * lib/mbswidth.c (iswcntrl): Likewise.
43318
43319 2006-07-27  Bruno Haible  <bruno@clisp.org>
43320
43321         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
43322         test.
43323
43324 2006-07-27  Bruno Haible  <bruno@clisp.org>
43325
43326         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
43327         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
43328         defined.
43329
43330 2006-07-26  Eric Blake  <ebb9@byu.net>
43331
43332         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
43333
43334 2006-07-26  Eric Blake  <ebb9@byu.net>
43335
43336         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
43337         like mingw that lack mkstemp.
43338         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
43339         avoid compilation warning on mingw.
43340
43341 2006-07-26  Bruno Haible  <bruno@clisp.org>
43342
43343         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
43344         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
43345         INT_FAST*_MIN, INTPTR_MIN.
43346
43347 2006-07-25  Bruno Haible  <bruno@clisp.org>
43348
43349         * modules/version-etc (Depends-on): Add stdarg.
43350
43351 2006-07-25  Bruno Haible  <bruno@clisp.org>
43352
43353         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
43354         complex commands.
43355
43356 2006-07-25  Bruno Haible  <bruno@clisp.org>
43357
43358         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
43359         defined in <stdarg.h> or config.h.
43360
43361 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
43362
43363         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
43364         (gl_STDIO_SAFER): Remove.
43365
43366 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
43367
43368         * MODULES.html.sh (File stream based Input/Output):
43369         Add fopen-safer, tmpfile-safer; remove stdio-safer.
43370         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
43371         * modules/fopen-safer, modules/tmpfile-safer: New files.
43372         * modules/stdio-safer: Remove.
43373
43374 2006-07-24  Bruno Haible  <bruno@clisp.org>
43375
43376         * modules/tmpdir: New file.
43377         * MODULES.html.sh (File system functions): Add it.
43378
43379 2006-07-24  Bruno Haible  <bruno@clisp.org>
43380
43381         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
43382         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
43383
43384 2006-07-24  Bruno Haible  <bruno@clisp.org>
43385
43386         * modules/clean-temp: New file.
43387
43388 2006-07-24  Bruno Haible  <bruno@clisp.org>
43389
43390         * m4/tmpdir.m4: New file, from GNU gettext.
43391
43392 2006-07-24  Bruno Haible  <bruno@clisp.org>
43393
43394         * lib/tmpdir.h: New file, from GNU gettext.
43395         * lib/tmpdir.c: New file, from GNU gettext.
43396
43397 2006-07-24  Bruno Haible  <bruno@clisp.org>
43398
43399         * lib/clean-temp.h: New file, from GNU gettext.
43400         * lib/clean-temp.c: New file, from GNU gettext.
43401
43402 2006-07-23  Eric Blake  <ebb9@byu.net>
43403
43404         * modules/stdio-safer (Files): Add tmpfile-safer.c.
43405         (Depends-on): Add binary-io.
43406
43407 2006-07-23  Eric Blake  <ebb9@byu.net>
43408
43409         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
43410
43411 2006-07-23  Eric Blake  <ebb9@byu.net>
43412
43413         * lib/tmpfile-safer.c: New file.
43414         * lib/stdio-safer.h (fopen_safer): Add prototype.
43415         * lib/stdio--.h (tmpfile): Make safer.
43416
43417 2006-07-23  Bruno Haible  <bruno@clisp.org>
43418
43419         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
43420         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
43421         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
43422         gl_linked_remove_at): Use it.
43423
43424 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43425         and Simon Josefsson <jas@extundo.com>
43426
43427         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
43428
43429         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
43430
43431 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43432
43433         * modules/close-stream: New file.
43434         * modules/closeout (Description): Make it clear that it exits
43435         with a diagnostic on error.
43436         (Depends-on): Add close-stream.  Remove fpending, stdbool.
43437         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
43438
43439 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43440
43441         * m4/close-stream.m4: New file.
43442
43443 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43444
43445         * lib/close-stream.c, lib/close-stream.h: New files.
43446
43447 2006-07-22  Bruno Haible  <bruno@clisp.org>
43448
43449         Merge from GNU gettext 0.15.
43450
43451         2006-05-01  Bruno Haible  <bruno@clisp.org>
43452
43453                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
43454
43455         2006-07-22  Bruno Haible  <bruno@clisp.org>
43456
43457                 * modules/javaversion: New file.
43458                 * MODULES.html.sh (Java): Add javaversion.
43459
43460         2006-03-12  Bruno Haible  <bruno@clisp.org>
43461
43462                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
43463
43464         2005-12-04  Bruno Haible  <bruno@clisp.org>
43465
43466                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
43467                 (untested).
43468
43469         2006-06-21  Bruno Haible  <bruno@clisp.org>
43470
43471                 Avoid warnings from recent versions of mcs.
43472                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
43473                 -o, -L, -r any more. Use options documented since mcs-1.0
43474                 instead. Similarly for -g.
43475
43476         2005-12-04  Bruno Haible  <bruno@clisp.org>
43477
43478                 * build-aux/csharpcomp.sh.in: Suffix for resources is
43479                 .resources, not .resource.
43480
43481         2005-07-09  Bruno Haible  <bruno@clisp.org>
43482
43483                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
43484                 add a .dll suffix.
43485                 Reported by Mark Junker <mjscod@gmx.de>.
43486
43487         2006-07-22  Bruno Haible  <bruno@clisp.org>
43488
43489                 * modules/gettext: Upgrade to gettext-0.15.
43490                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
43491                 m4/visibility.m4.
43492                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
43493
43494 2006-07-22  Bruno Haible  <bruno@clisp.org>
43495
43496         Merge from GNU gettext 0.15.
43497
43498         2006-03-25  Bruno Haible  <bruno@clisp.org>
43499
43500                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
43501
43502         2006-07-21  Bruno Haible  <bruno@clisp.org>
43503
43504                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
43505                 "1.1".
43506
43507         2006-05-09  Bruno Haible  <bruno@clisp.org>
43508
43509                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
43510                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
43511                 for the conftestver execution.
43512
43513         2006-05-01  Bruno Haible  <bruno@clisp.org>
43514
43515                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
43516                 optional target-version argument. Verify that the compiler
43517                 groks source of the specified source-version, or add -source
43518                 option as necessary. Verify that the compiler produces
43519                 bytecode in the specified target-version, or add -target and
43520                 -source options as necessary. Make the result of the test
43521                 available as variable CONF_JAVAC. Also log error output in
43522                 config.log.
43523
43524         2006-03-11  Bruno Haible  <bruno@clisp.org>
43525
43526                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
43527
43528         2006-05-09  Bruno Haible  <bruno@clisp.org>
43529
43530                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
43531                 CLASSPATH_SEPARATOR to a semicolon.
43532
43533         2006-03-12  Bruno Haible  <bruno@clisp.org>
43534
43535                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
43536                 available as variable CONF_JAVA, for subsequent autoconf
43537                 tests. Also log error output in config.log.
43538
43539         2006-07-19  Bruno Haible  <bruno@clisp.org>
43540
43541                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
43542                 that getline works on glibc2 systems. Needed to avoid trouble
43543                 in relocatable.c.
43544                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
43545
43546         2005-12-04  Bruno Haible  <bruno@clisp.org>
43547
43548                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
43549                 launcher (untested).
43550
43551         2005-12-04  Bruno Haible  <bruno@clisp.org>
43552
43553                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
43554
43555         2006-07-22  Bruno Haible  <bruno@clisp.org>
43556
43557                 * gettext.m4: Update from GNU gettext-0.15.
43558                 * nls.m4: Likewise.
43559                 * po.m4: Likewise.
43560                 * inttypes-pri.m4: Likewise.
43561                 * inttypes-h.m4: Renamed from inttypes.m4.
43562                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
43563
43564 2006-07-22  Bruno Haible  <bruno@clisp.org>
43565
43566         Merge from GNU gettext 0.15.
43567
43568         2005-07-05  Bruno Haible  <bruno@clisp.org>
43569
43570                 * printf-args.c (printf_fetchargs): Work around broken
43571                 definition of wint_t on mingw.
43572
43573         2005-02-12  Bruno Haible  <bruno@clisp.org>
43574
43575                 * xallocsa.h: Add extern "C" for C++.
43576
43577         2006-05-17  Bruno Haible  <bruno@clisp.org>
43578
43579                 Cygwin portability.
43580                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
43581
43582         2006-04-30  Bruno Haible  <bruno@clisp.org>
43583
43584                 * progreloc.c: Include <mach-o/dyld.h> if available.
43585                 (find_executable): Use _NSGetExecutablePath when possible.
43586
43587         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
43588
43589                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
43590                 function.
43591
43592         2005-12-29  Bruno Haible  <bruno@clisp.org>
43593
43594                 * progreloc.c (set_program_name_and_installdir): Fix
43595                 compilation error.
43596
43597         2005-12-04  Bruno Haible  <bruno@clisp.org>
43598
43599                 Cygwin portability.
43600                 * progreloc.c: Include <windows.h> also on Cygwin.
43601                 (find_executable): Add support for Cygwin.
43602                 (set_program_name_and_installdir): Handle also platforms with
43603                 nonempty EXEEXT.
43604
43605         2006-07-11  Bruno Haible  <bruno@clisp.org>
43606
43607                 * javacomp.c: Fix a comment.
43608                 Reported by Jim Meyering.
43609
43610         2006-04-30  Bruno Haible  <bruno@clisp.org>
43611
43612                 * javacomp.h (compile_java_class): Add source_version,
43613                 target_version arguments.
43614                 * javacomp.c: Rewritten to choose only a compiler that
43615                 respects the specified source_version and target_version.
43616
43617         2006-06-27  Bruno Haible  <bruno@clisp.org>
43618
43619                 Assume correct S_ISDIR macro.
43620                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
43621
43622         2006-07-22  Bruno Haible  <bruno@clisp.org>
43623
43624                 * javaversion.h: New file, from GNU gettext.
43625                 * javaversion.c: New file, from GNU gettext.
43626                 * javaversion.java: New file, from GNU gettext.
43627                 * javaversion.class: New file, from GNU gettext.
43628
43629         2006-05-17  Bruno Haible  <bruno@clisp.org>
43630
43631                 Cygwin portability.
43632                 * javaexec.c (execute_java_class): Test for jview program
43633                 also on Cygwin.
43634
43635         2006-04-09  Bruno Haible  <bruno@clisp.org>
43636
43637                 * fatal-signal.c: Don't include string.h.
43638                 (at_fatal_signal): Use a copying loop instead of memcpy.
43639
43640         2005-12-04  Bruno Haible  <bruno@clisp.org>
43641
43642                 * csharpexec.c: Add support for 'clix' launcher (untested).
43643                 (execute_csharp_using_sscli): New function.
43644                 (execute_csharp_program): Call it.
43645
43646         2006-06-21  Bruno Haible  <bruno@clisp.org>
43647
43648                 Avoid warnings from recent versions of mcs.
43649                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
43650                 -o, -L, -r any more. Use options documented since mcs-1.0
43651                 instead. Similarly for -g.
43652
43653         2005-07-09  Bruno Haible  <bruno@clisp.org>
43654
43655                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
43656                 add a .dll suffix.
43657                 Reported by Mark Junker <mjscod@gmx.de>.
43658
43659         2006-06-17  Bruno Haible  <bruno@clisp.org>
43660
43661                 * config.charset: Update for NetBSD 3.0.
43662
43663         2006-05-17  Bruno Haible  <bruno@clisp.org>
43664
43665                 Cygwin portability.
43666                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
43667
43668         2006-05-16  Bruno Haible  <bruno@clisp.org>
43669
43670                 * localcharset.c [CYGWIN]: Include <windows.h>.
43671                 (get_charset_aliases): For Cygwin, return the same CPxxx
43672                 aliases list as under WIN32.
43673                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
43674                 the environment variables. Fall back to GetACP().
43675
43676         2006-04-05  Bruno Haible  <bruno@clisp.org>
43677
43678                 * config.charset: Update Juan Manuel Guerrero's address.
43679
43680         2005-02-12  Bruno Haible  <bruno@clisp.org>
43681
43682                 * allocsa.h: Add extern "C" for C++.
43683
43684         2005-02-10  Bruno Haible  <bruno@clisp.org>
43685
43686                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
43687                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
43688
43689         2006-07-22  Bruno Haible  <bruno@clisp.org>
43690
43691                 * gettext.h: Update to GNU gettext-0.15.
43692
43693 2006-07-22  Bruno Haible  <bruno@clisp.org>
43694
43695         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
43696         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
43697         lib-prefix.m4, longdouble.m4, ssize_t.m4.
43698
43699 2006-07-21  Eric Blake  <ebb9@byu.net>
43700
43701         * modules/stdlib-safer: New file.
43702         * MODULES.html.sh (File stream based Input/Output): Add
43703         stdlib-safer.
43704
43705 2006-07-21  Eric Blake  <ebb9@byu.net>
43706
43707         * lib/stdlib-safer.h: New file from coreutils, required by
43708         stdlib--.h.
43709
43710 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
43711
43712         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
43713
43714 2006-07-20  Bruno Haible  <bruno@clisp.org>
43715
43716         * gnulib-tool: Recognize new option --assume-autoconf.
43717         (autoconf_minversion): New variable.
43718         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
43719
43720 2006-07-20  Bruno Haible  <bruno@clisp.org>
43721
43722         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
43723
43724 2006-07-19  Derek R. Price  <derek@ximbiot.com>
43725
43726         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
43727         Reindent and repaginate.
43728
43729 2006-07-19  Derek Price  <derek@ximbiot.com>
43730
43731         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
43732         Correct grammar.
43733
43734 2006-07-17  Bruno Haible  <bruno@clisp.org>
43735
43736         * modules/list: New file.
43737         * modules/array-list: New file.
43738         * modules/carray-list, modules/carray-list-tests: New files.
43739         * modules/linked-list, modules/linked-list-tests: New files.
43740         * modules/avltree-list, modules/avltree-list-tests: New files.
43741         * modules/rbtree-list, modules/rbtree-list-tests: New files.
43742         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
43743         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
43744         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
43745         * modules/oset: New file.
43746         * modules/array-oset: New file.
43747         * modules/avltree-oset, modules/avltree-oset-tests: New files.
43748         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
43749         * tests/test-carray_list.c: New file.
43750         * tests/test-linked_list.c: New file.
43751         * tests/test-avltree_list.c: New file.
43752         * tests/test-rbtree_list.c: New file.
43753         * tests/test-linkedhash_list.c: New file.
43754         * tests/test-avltreehash_list.c: New file.
43755         * tests/test-rbtreehash_list.c: New file.
43756         * tests/test-avltree_oset.c: New file.
43757         * tests/test-rbtree_oset.c: New file.
43758         * MODULES.html.sh (Container data structures): New section.
43759
43760 2006-07-17  Bruno Haible  <bruno@clisp.org>
43761
43762         * m4/gl_list.m4: New file.
43763
43764 2006-07-17  Bruno Haible  <bruno@clisp.org>
43765
43766         * lib/gl_list.h: New file.
43767         * lib/gl_list.c: New file.
43768         * lib/gl_array_list.h: New file.
43769         * lib/gl_array_list.c: New file.
43770         * lib/gl_carray_list.h: New file.
43771         * lib/gl_carray_list.c: New file.
43772         * lib/gl_linked_list.h: New file.
43773         * lib/gl_linked_list.c: New file.
43774         * lib/gl_anylinked_list1.h: New file.
43775         * lib/gl_anylinked_list2.h: New file.
43776         * lib/gl_avltree_list.h: New file.
43777         * lib/gl_avltree_list.c: New file.
43778         * lib/gl_anyavltree_list1.h: New file.
43779         * lib/gl_anyavltree_list2.h: New file.
43780         * lib/gl_rbtree_list.h: New file.
43781         * lib/gl_rbtree_list.c: New file.
43782         * lib/gl_anyrbtree_list1.h: New file.
43783         * lib/gl_anyrbtree_list2.h: New file.
43784         * lib/gl_anytree_list1.h: New file.
43785         * lib/gl_anytree_list2.h: New file.
43786         * lib/gl_linkedhash_list.h: New file.
43787         * lib/gl_linkedhash_list.c: New file.
43788         * lib/gl_anyhash_list1.h: New file.
43789         * lib/gl_anyhash_list2.h: New file.
43790         * lib/gl_avltreehash_list.h: New file.
43791         * lib/gl_avltreehash_list.c: New file.
43792         * lib/gl_rbtreehash_list.h: New file.
43793         * lib/gl_rbtreehash_list.c: New file.
43794         * lib/gl_anytreehash_list1.h: New file.
43795         * lib/gl_anytreehash_list2.h: New file.
43796
43797         * lib/gl_oset.h: New file.
43798         * lib/gl_oset.c: New file.
43799         * lib/gl_array_oset.h: New file.
43800         * lib/gl_array_oset.c: New file.
43801         * lib/gl_avltree_oset.h: New file.
43802         * lib/gl_avltree_oset.c: New file.
43803         * lib/gl_rbtree_oset.h: New file.
43804         * lib/gl_rbtree_oset.c: New file.
43805         * lib/gl_anytree_oset.h: New file.
43806
43807 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
43808
43809         * m4/mkancesdirs.m4: New file.
43810         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
43811         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
43812         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
43813         it.
43814
43815 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
43816
43817         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
43818         * lib/mkancesdirs.h: New files.
43819         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
43820         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
43821         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
43822         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
43823         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
43824         callers changed.  Revamp internals significantly, by not
43825         attempting to create directories that are temporarily more
43826         permissive than the final results.  Do not attempt to use
43827         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
43828         This removes some race conditions, fixes some bugs, and simplifies
43829         things.  Use new dirchownmod function to do owner and mode changes.
43830         * lib/mkdir-p.h: Likewise.
43831         * lib/modechange.c (octal_to_mode): New function.
43832         (struct mode_change): New member mentioned.
43833         (make_node_op_equals): New arg mentioned.  All callers changed.
43834         (mode_compile): Keep track of which mode bits the user has explicitly
43835         mentioned.
43836         (mode_adjust): New arg DIR, so that we implement the X op correctly.
43837         New arg PMODE_BITS, to keep track of which mode bits the user
43838         mentioned; it treats S_ISUID and S_ISGID speciall.
43839         All callers changed.
43840         * lib/modechange.h: Likewise.
43841
43842 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
43843
43844         * MODULES.html.sh: Add mkancestors.
43845         * modules/mkancesdirs: New module.
43846         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
43847         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
43848         The chdir-safer and afs files are now orphans; I'll remove them
43849         unless someone speaks up.
43850         Add lib/dirchownmod.c, lib/dirchownmod.h.
43851         (Depends-on): Remove alloca, chown, save-cwd, dirname.
43852         Add lchown, mkancesdirs.
43853         (Maintainer): Add self.
43854
43855 2006-07-15  Karl Berry  <karl@gnu.org>
43856
43857         * gnulib-tool: help message wording/arrangement.
43858
43859 2006-07-14  Simon Josefsson  <jas@extundo.com>
43860
43861         * doc/gnulib.texi (Libtool and Windows): New section.
43862
43863 2006-07-12  Simon Josefsson  <jas@extundo.com>
43864
43865         * modules/gendocs (License): Fix license, approved by Karl.
43866
43867 2006-07-12  Eric Blake  <ebb9@byu.net>
43868
43869         * MODULES.html.sh: Add gendocs.
43870
43871 2006-07-11  Eric Blake  <ebb9@byu.net>
43872
43873         * modules/fdl: New module, to install doc/fdl.texi.
43874         * MODULES.html.sh: Add new section for documentation modules.
43875         * gnulib-tool: Avoid space-tab.
43876         (--doc-base): New option, to manage files from doc.
43877
43878 2006-07-11  Eric Blake  <ebb9@byu.net>
43879
43880         * m4/absolute-header.m4: Fix comments to match recent change.
43881
43882 2006-07-11  Eric Blake  <ebb9@byu.net>
43883
43884         * gnulib-tool: List --doc-base before --tests-base.
43885
43886 2006-07-11  Derek R. Price  <derek@ximbiot.com>
43887
43888         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
43889
43890 2006-07-11  Bruno Haible  <bruno@clisp.org>
43891
43892         * README: Mention where to put documentation.
43893
43894 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43895
43896         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
43897
43898 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
43899
43900         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
43901         to stdint.m4.
43902
43903 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
43904
43905         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
43906         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
43907         "no/such/file/stdint.h" when there is no such file, so that
43908         the resulting C code can be parsed by dodgy compilers.
43909         Problems reported by Bob Proulx.
43910
43911 2006-07-10  Derek R. Price  <derek@ximbiot.com>
43912
43913         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
43914         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
43915         macros into the GNU _D_EXACT_NAMLEN.
43916         * lib/savedir.c:  Likewise.
43917         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
43918
43919 2006-07-10  Derek R. Price  <derek@ximbiot.com>
43920         and Paul Eggert  <eggert@cs.ucla.edu>
43921
43922         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
43923         * m4/savedir.m4:
43924         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
43925         macros into the GNU _D_EXACT_NAMLEN.
43926
43927 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
43928
43929         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
43930         around the absolute name, to work around a problem with the HP-UX
43931         11.23 native C compiler, reported by Bob Proulx.
43932
43933 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
43934
43935         * doc/maintain.texi, make-stds.texi: Sync from
43936         <http://savannah.gnu.org/projects/gnustandards>.
43937
43938 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
43939
43940         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
43941
43942 2006-07-09  Jim Meyering  <jim@meyering.net>
43943
43944         * m4/glob.m4: Remove a doubled word in a comment.
43945
43946 2006-07-09  Jim Meyering  <jim@meyering.net>
43947
43948         * lib/argp-pv.c: Remove a doubled word in a comment.
43949         * lib/check-version.c (check_version): Likewise.
43950         * lib/javacomp.c (compile_java_class): Likewise.
43951
43952 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
43953
43954         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
43955         for the benefit of people using Autoconf 2.60.  If you want to
43956         support older Autoconf versions you can copy m4/onceonly_2_57.m4
43957         (or m4/onceonly.m4, if pre-2.57) manually.
43958
43959 2006-07-08  Jim Meyering  <jim@meyering.net>
43960
43961         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
43962         comment.
43963         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
43964         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
43965         comment.
43966
43967 2006-07-08  Jim Meyering  <jim@meyering.net>
43968
43969         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
43970
43971 2006-07-07  Simon Josefsson  <jas@extundo.com>
43972
43973         * tests/test-crc.c: Change expected crc value, the test vector
43974         were probably computed using the old broken crc.c?
43975
43976 2006-07-06  Simon Josefsson  <jas@extundo.com>
43977
43978         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
43979         now the canonical place for the M4 file).
43980
43981         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
43982         from the sys_socket dependency now.
43983
43984         * modules/inet_pton (Files): Ditto.
43985
43986         * modules/inet_ntop (Files): Ditto.
43987
43988 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
43989
43990         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
43991         not gl_PREREQ_GETUSERSHELL.
43992
43993 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43994
43995         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
43996         with only one argument, for Autoconf 2.60.
43997         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
43998         expand to nothing, so add a shell command to avoid syntax error.
43999         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
44000
44001 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44002
44003         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
44004
44005 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
44006
44007         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
44008         no longer needed.  Check for isblank decl.
44009         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
44010         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
44011         of existence.
44012
44013 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
44014
44015         * lib/getloadavg.c: Use __VMS, not VMS.
44016         * lib/getopt.c: Likewise.
44017         * lib/getpagesize.h: Likewise.
44018         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
44019         and probably does not work.
44020
44021 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
44022
44023         * lib/.cppi-disable: Add wcwidth.
44024         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
44025         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
44026         (ISGRAPH): Remove.  All uses changed to isgraph.
44027         (FOLD) [!defined _LIBC]: Remove special case.
44028         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
44029         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
44030         HAVE_ISBLANK.
44031         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
44032         case.
44033
44034 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
44035
44036         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
44037         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
44038         brackets.  Other minor changes to suppress some compiler
44039         warnings.
44040
44041 2006-07-06  Derek R. Price  <derek@ximbiot.com>
44042         and Paul Eggert  <eggert@cs.ucla.edu>
44043
44044         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
44045         of invoking obsolescent AC_HEADER_DIRENT macro.
44046         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
44047         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
44048         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44049         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
44050         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
44051         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44052         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
44053         * m4/readdir.m4: Remove; no longer needed.
44054
44055 2006-07-06  Derek R. Price  <derek@ximbiot.com>
44056         and Paul Eggert  <eggert@cs.ucla.edu>
44057
44058         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
44059         Don't worry about this obsolete case any more.
44060         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
44061         directories.
44062         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
44063         worry about this obsolete case any more.
44064         * lib/fts.c: Likewise.
44065         * lib/getcwd.c: Likewise.
44066         * lib/glob.h: Likewise.
44067         * lib/savedir.c: Likewise.
44068
44069 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
44070
44071         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
44072         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
44073         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
44074         needed.
44075         All uses removed.
44076         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44077         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
44078         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
44079         needed.
44080         * m4/getdate.m4 (gl_GETDATE): Likewise.
44081         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
44082         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
44083         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44084         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44085         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
44086         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44087         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
44088         needed.
44089
44090 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
44091
44092         * lib/memcasecmp.c: Include <limits.h>.
44093         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
44094         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
44095         Don't assume isdigit succeeds only on '0' through '9'.
44096
44097 2006-07-05  Eric Blake  <ebb9@byu.net>
44098
44099         * modules/getaddrinfo (Depends-on): Add snprintf.
44100
44101 2006-07-05  Eric Blake  <ebb9@byu.net>
44102
44103         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
44104         to avoid 'header present but could not be compiled' on cygwin.
44105
44106 2006-07-05  Eric Blake  <ebb9@byu.net>
44107
44108         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
44109         missing from netdb.h.
44110         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
44111
44112 2006-07-05  Derek R. Price  <derek@ximbiot.com>
44113
44114         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
44115         no longer needed.
44116         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
44117         * m4/getdate.m4 (gl_GETDATE): Likewise.
44118         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
44119         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
44120         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44121         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44122         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44123
44124 2006-07-05  Derek R. Price  <derek@ximbiot.com>
44125
44126         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
44127         All uses of is_space replaced by isspace.
44128         * lib/exit.h: Don't talk about STDC_HEADERS.
44129         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
44130         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
44131         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
44132         replaced by isprint etc.
44133         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
44134         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
44135         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
44136         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
44137         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
44138         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
44139
44140 2006-07-05  Bruno Haible  <bruno@clisp.org>
44141
44142         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
44143         the function exists, before testing against AIX.
44144         Reported by Martin Lambers <marlam@marlam.de>.
44145
44146 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
44147
44148         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
44149         From Mark D. Baushke.
44150
44151 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
44152
44153         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
44154         to the absolute name, not just one, to bypass Sun C 5.8's
44155         "warning: #include of /usr/include/... may be non-portable".
44156
44157 2006-07-04  Eric Blake  <ebb9@byu.net>
44158
44159         * modules/dirname-tests: New test module.
44160         * tests/test-dirname.c: New file, replacing dirname.c
44161         TEST_DIRNAME section that was recently deleted.
44162
44163 2006-07-04  Bruno Haible  <bruno@clisp.org>
44164
44165         Assume ANSI C header files and <ctype.h> functions.
44166         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
44167         (mbsnwidth): Use isprint, iscntrl instead.
44168
44169 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
44170
44171         Merge from coreutils.
44172         * MODULES.html.sh: Add xstrtold.
44173         * modules/xstrtold: New file.
44174         * modules/cycle-check (Files): Add lib/same-inode.h.
44175         * modules/dirname (Files): Add m4/double-slash-root.m4.
44176         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
44177         * modules/mkdir-p (Files): Add lib/same-inode.h.
44178         * modules/same (Files): Add lib/same-inode.h.
44179
44180 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
44181
44182         * m4/absolute-header.m4: Renamed from full-header-path.m4.
44183         This is to keep the terminology clean; POSIX talks about
44184         "absolute pathnames", not "full pathnames", but the GNU
44185         Coding Standards say to use "path" for something else;
44186         so use "absolute" to keep both sides happy.
44187         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
44188         Set gl_absolute_header, not gl_full_header_path.
44189         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
44190         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
44191         All uses changed.
44192
44193         Merge from coreutils.
44194
44195         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
44196
44197         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
44198         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
44199         want to require the building of c-strtod.o.
44200         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
44201         needs -lm directly.
44202         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
44203
44204         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
44205
44206         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
44207         --as-needed option if available.  Problem reported by Albert Chin in
44208         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
44209         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
44210         cc merely issues a bunch of annoying warnings for --as-needed
44211         (this problem was reported by Bob Proulx).  Also, try linking with
44212         -lm to detect a bug in binutils 2.16 (this problem was reported
44213         by Ralf Wildenhues).
44214
44215         2006-06-18  Jim Meyering  <jim@meyering.net>
44216
44217         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
44218         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
44219         macro.
44220         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
44221         also check for glibc-2.4's abort-inducing bug.
44222
44223         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
44224         Low-probability clean-up should be to use rmdir to get rid of
44225         the just-created directory, not unlink.
44226
44227         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
44228         configure fail, and request a bug report to inform us about it.
44229         Add a comment that, barring reports to the contrary, in 2007 we'll
44230         assume ftruncate is universally available.
44231
44232         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
44233
44234         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
44235
44236         2006-03-12  Jim Meyering  <jim@meyering.net>
44237
44238         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
44239         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
44240         * m4/same.m4 (gl_SAME): Likewise.
44241         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
44242
44243         2006-03-11  Eric Blake  <ebb9@byu.net>
44244
44245         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
44246         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
44247         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
44248         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
44249
44250 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
44251
44252         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
44253         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
44254         reported by Mark D. Baushke, one in
44255         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
44256
44257         Merge from coreutils.
44258
44259         * lib/.cppi-disable: Add stdint_.h.
44260         * lib/.cvsignore: Add stdint.h.
44261
44262         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
44263
44264         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
44265         both double and long double versions.
44266         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
44267         * lib/xstrtold.c: New file.
44268         * lib/xstrtod.h (xstrtold): New decl.
44269
44270         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
44271
44272         * lib/filemode.c (setst): Remove.
44273         (strmode): Rewrite to avoid setst.  This makes the code shorter,
44274         (arguably) clearer, and the generated code is a bit smaller on my
44275         Debian GNU/Linux stable x86 host.
44276
44277         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
44278
44279         * lib/filemode.c: Include "filemode.h" first, to test the interface.
44280         Assume that filemode.h includes sys/types.h and sys/stat.h.
44281         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
44282         (ftypelet): Reorder to put common cases first, for efficiency.
44283         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
44284         to do 'M'.
44285         (strmode): Renamed from mode_string, and now stores 12 bytes instead
44286         of 10, for compatibility with FreeBSD.  All callers changed.
44287         (filemodestring): Now stores 12 bytes instead of 10, and sets file
44288         types that can't be deduced solely from st_mode.  First arg is now a
44289         const pointer.
44290         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
44291         (strmode): Renamed from mode_string.
44292         (filemodestring): New decl.
44293         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
44294         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
44295         needed.
44296         (S_ISPORT, S_ISWHT): New macros, if not already defined.
44297
44298         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
44299
44300         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
44301         fsusage.h now does that.  Include fsusage.h first, to test interface.
44302         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
44303         at most one method (the old code could have generated decls that
44304         didn't conform to C89, not that this was ever exercised).
44305         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
44306
44307         2006-03-19  Jim Meyering  <jim@meyering.net>
44308
44309         Work even in a chroot where d_ino values for entries in "/"
44310         don't match the stat.st_ino values for the same names.
44311         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
44312         number, iterate through all entries again, using lstat instead.
44313         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
44314         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
44315
44316         * lib/getcwd.c (__getcwd): Clarify a comment.
44317         Use memcpy in place of a call to strcpy.
44318
44319         2006-03-12  Jim Meyering  <jim@meyering.net>
44320
44321         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
44322         matches that of the current directory (which we're about to chdir ".."
44323         out of), then save the dev-ino of the parent, instead.
44324
44325         * lib/same-inode.h (SAME_INODE): New file/macro.
44326         * lib/chdir-safer.c (SAME_INODE): Remove definition.
44327         Include "same-inode.h", instead.
44328         * lib/same.c: Likewise.
44329         * lib/cycle-check.h: Include "same-inode.h".
44330         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
44331         * lib/cycle-check.c (SAME_INODE): Remove definition.
44332         * lib/root-dev-ino.h: Include "same-inode.h".
44333
44334         2006-03-11  Eric Blake  <ebb9@byu.net>
44335
44336         * lib/same.c (same_name): s/base_name/last_component/
44337         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
44338         * lib/filenamecat.c (file_name_concat): Likewise.
44339
44340         2006-03-11  Eric Blake  <ebb9@byu.net>,
44341                     Paul Eggert  <eggert@cs.ucla.edu>
44342
44343         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
44344         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
44345         drive prefix.
44346         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
44347         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
44348         (last_component): New method.
44349         * lib/dirname.c (dir_len): Determine when drive letters need a
44350         subsequent slash.  Preserve // when it is special.
44351         (dir_name): Don't append dot when drive letter is absolute.
44352         [TEST_DIRNAME]: Move into a full-blown gnulib test.
44353         * lib/basename.c (base_name): New semantics - malloc the result.
44354         Preserve // when it is special.  Preserve relative files that look
44355         like drive letters.
44356         (base_len): Preserve // when it is special.
44357         (last_component): New method, similar to old base_name semantics.
44358         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
44359         base_name.  Strip redundant slashes from ///.
44360
44361 2006-07-03  Jim Meyering  <jim@meyering.net>
44362
44363         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
44364         macro is used before the first cycle_check call.
44365
44366 2006-07-03  Eric Blake  <ebb9@byu.net>
44367
44368         * modules/dirname (Depends-on): Add xstrndup.
44369
44370 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
44371
44372         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
44373         test cases, so that config.log is a bit easier to follow.
44374
44375 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
44376
44377         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
44378         both are 64 bits, since this seems to be the tradition, and this
44379         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
44380         we ever run into a host that prefers long long to long in this
44381         case, we'll need another configure-time test.  Problem reported by
44382         Jim Meyering.
44383
44384 2006-07-02  Eric Blake  <ebb9@byu.net>
44385
44386         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
44387
44388 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
44389
44390         * modules/inttypes (Depends-on): No longer depends on stdint.
44391         * modules/stdint (Description): Say more about assumptions.
44392         Say that the fast types might differ.  Say macros are used.
44393         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
44394         (Makefile.am): Revise list of substituted symbols to match
44395         new stdint.m4.
44396         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
44397         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
44398         * tests/test-stdint.c (verify_same_types)
44399         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
44400         the code conforms to C99/C89.
44401         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
44402         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
44403
44404 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
44405
44406         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
44407         but fix a bug, by requiring at least 64 bits.
44408         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
44409         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
44410         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
44411         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
44412
44413         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
44414         changes.  Make 2.59 a prerequisite.  Check and substitute for
44415         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
44416         inttypes.h.  Do not use special include files; just use the
44417         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
44418         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
44419         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
44420         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
44421         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
44422         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
44423         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
44424         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
44425         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
44426         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
44427         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
44428         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
44429         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
44430         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
44431         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
44432         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
44433         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
44434         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
44435         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
44436         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
44437         WINT_MAX.  Check for C99 conformance more strictly, by detecting
44438         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
44439         not check for things that C99 does not require, e.g., int8_t.  If
44440         a test isn't needed unless <stdint.h> isn't working, and is
44441         unlikely to be needed for any other reason, then don't do it
44442         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
44443         size_t, since we assume C89 freestanding at least.  Do not check
44444         for sig_atomic_t, wchar_t, or wint_t, since the code now does
44445         the right thing even if the types are not defined.  Instead use:
44446         (gl_STDINT_TYPE_PROPERTIES): New macro.
44447         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
44448         testing whether <sys/types.h> clashes, as Autoconf does this for
44449         us now.  All uses removed.
44450         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
44451         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
44452         (gl_CHECK_TYPE_SAME):
44453         Remove; no longer needed.
44454         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
44455         exists, since we'll return 0 anyway in that case.
44456         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
44457
44458 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
44459
44460         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
44461         possible collision with system files.
44462         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
44463         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
44464         WCHAR_MIN and WCHAR_MAX in this case.
44465         (<stddef.h>): Do not include; no longer needed.
44466         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
44467         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
44468         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
44469         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
44470         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
44471         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
44472         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
44473         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
44474         !defined(__c99))]: Include in this case too, since it's harmless
44475         now.
44476         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
44477         dangerous to do so.
44478         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
44479         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
44480         (_STDINT_MIN, _STDINT_MAX): New macros.
44481         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
44482         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
44483         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
44484         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
44485         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
44486         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
44487         macros, not typedefs; this simplifies things quite a bit.
44488         Use long int for all types narrower than int64_t.
44489         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
44490         Define in terms of long long int or int64_t or long int,
44491         not int64_t or int32_t.  This saves some compile-time testing.
44492         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
44493         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
44494         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
44495         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
44496         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
44497         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
44498         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
44499         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
44500         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
44501         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
44502         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
44503         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
44504         undef any previous version and define our own version, for
44505         simplicity and consistency with the new macros for types.
44506         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
44507         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
44508         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
44509         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
44510         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
44511         @WINT_T_SUFFIX@ to keep things simple here.
44512         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
44513         Simplify by assuming typical 8/16/32/64 host, since we're
44514         already doing that elsewhere anyway.
44515         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
44516         and assume long long int is 64 bits if available.  This
44517         speeds up 'configure'.
44518
44519 2006-07-01  Eric Blake  <ebb9@byu.net>
44520
44521         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
44522         Reported by Andreas Buening.
44523
44524 2006-07-01  Eric Blake  <ebb9@byu.net>
44525
44526         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
44527
44528 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
44529
44530         * lib/getaddrinfo.c: fixed typo
44531
44532 2006-06-29  Jim Meyering  <jim@meyering.net>
44533
44534         * modules/strftime (Maintainer): Add my name, since with the
44535         FPRINTFTIME changes strftime.c has forked from glibc.
44536
44537 2006-06-29  Eric Blake  <ebb9@byu.net>
44538
44539         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
44540
44541 2006-06-29  Eric Blake  <ebb9@byu.net>
44542
44543         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
44544
44545 2006-06-29  Eric Blake  <ebb9@byu.net>
44546
44547         * lib/stat_.h: New file.
44548
44549 2006-06-29  Eric Blake  <ebb9@byu.net>
44550
44551         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
44552         unused static function.
44553
44554 2006-06-29  Eric Blake  <ebb9@byu.net>
44555
44556         * doc/functions.texi (Function Portability): Document missing lstat
44557         on mingw.
44558
44559 2006-06-29  Eric Blake  <ebb9@byu.net>
44560
44561         * MODULES.html.sh: Add sys_stat.
44562         * modules/sys_stat: New module.
44563         * modules/mkstemp (Depends-on): Add sys_stat.
44564
44565 2006-06-29  Derek R. Price  <derek@ximbiot.com>
44566
44567         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
44568
44569 2006-06-29  Derek R. Price  <derek@ximbiot.com>
44570
44571         * m4/c-bs-a.m4: Removed.
44572
44573 2006-06-29  Derek R. Price  <derek@ximbiot.com>
44574
44575         * lib/strftime.c: Assume strftime() exists.
44576
44577 2006-06-29  Derek Price  <derek@ximbiot.com>
44578
44579         * modules/c-bs-a: Removed - \a is C89.
44580         * MODULES.html.sh: Remove c-bs-a.
44581
44582 2006-06-29  Bruno Haible  <bruno@clisp.org>
44583
44584         * modules/wcwidth (License): Change to LGPL.
44585
44586 2006-06-28  Simon Josefsson  <jas@extundo.com>
44587
44588         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
44589         on _WIN32.
44590
44591         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
44592         getnameinfo.
44593
44594 2006-06-28  Simon Josefsson  <jas@extundo.com>
44595
44596         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
44597
44598 2006-06-28  Simon Josefsson  <jas@extundo.com>
44599
44600         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
44601         functions there.  It will succeed on Windows XP, but on Windows
44602         2000 and (presumably) earlier, it will fail, and use the internal
44603         re-implementation.
44604         (use_win32_p): New function.
44605         (getaddrinfo): Use strtoul on servname, to support numeric ports.
44606         Support AI_NUMERICSERV to disable getservbyname.
44607         (getnameinfo): New function, only supports
44608         NI_NUMERICHOST|NI_NUMERICSERV for now.
44609
44610         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
44611         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
44612         getnameinfo.
44613
44614 2006-06-28  Eric Blake  <ebb9@byu.net>
44615
44616         * modules/wcwidth: New file.
44617         * modules/mbchar (Depends-on): Add wcwidth.
44618         * modules/mbswidth (Depends-on): Add wcwidth.
44619         * MODULES.html.sh: Add wcwidth.
44620
44621 2006-06-28  Eric Blake  <ebb9@byu.net>
44622
44623         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
44624         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
44625
44626 2006-06-28  Eric Blake  <ebb9@byu.net>
44627
44628         * lib/xvasprintf.h: Fix comments.
44629
44630 2006-06-28  Eric Blake  <ebb9@byu.net>
44631
44632         * lib/mbchar.h (wcwidth): Include wcwidth.h.
44633         * lib/mbswidth.c (wcwidth): Move from here...
44634         * lib/wcwidth.h: ...to this new file.
44635
44636 2006-06-28  Derek R. Price  <derek@ximbiot.com>
44637
44638         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
44639
44640         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
44641         it's obsolete.
44642         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
44643
44644 2006-06-28  Derek R. Price  <derek@ximbiot.com>
44645
44646         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
44647         Autoconf 2.60 says this stuff was obsolete.
44648
44649 2006-06-28  Bruno Haible  <bruno@clisp.org>
44650
44651         * modules/wcwidth (Files): Add m4/wchar_t.m4.
44652
44653 2006-06-28  Bruno Haible  <bruno@clisp.org>
44654
44655         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
44656         gt_TYPE_WCHAR_T.
44657
44658 2006-06-28  Bruno Haible  <bruno@clisp.org>
44659
44660         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
44661         declaration for wcwidth.
44662         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
44663
44664 2006-06-28  Bruno Haible  <bruno@clisp.org>
44665
44666         * lib/mkdtemp.c [MINGW]: Include <io.h>.
44667         (mkdir): Define using _mkdir.
44668
44669 2006-06-28  Bruno Haible  <bruno@clisp.org>
44670
44671         * lib/getaddrinfo.h: Fix POSIX URL.
44672         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
44673         _WIN32.
44674         (use_win32_p): Make static.
44675         (getaddrinfo): Reject service name if it is empty or does not consist
44676         solely of decimal digits, or if its value is > 65535.
44677         (getnameinfo): Remove useless casts.
44678
44679 2006-06-27  Simon Josefsson  <jas@extundo.com>
44680
44681         * modules/sys_select: New file, suggested by Bruno Haible, Paul
44682         Eggert and Martin Lambers.
44683
44684 2006-06-27  Simon Josefsson  <jas@extundo.com>
44685
44686         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
44687         Eggert and Martin Lambers.
44688
44689 2006-06-27  Bruno Haible  <bruno@clisp.org>
44690
44691         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
44692         result to 0, not to empty.
44693         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
44694
44695 2006-06-27  Bruno Haible  <bruno@clisp.org>
44696
44697         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
44698
44699 2006-06-26  Simon Josefsson  <jas@extundo.com>
44700
44701         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
44702         present.
44703
44704 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
44705
44706         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
44707         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
44708         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
44709
44710 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
44711
44712         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
44713
44714 2006-06-26  Bruno Haible  <bruno@clisp.org>
44715
44716         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
44717
44718 2006-06-26  Bruno Haible  <bruno@clisp.org>
44719
44720         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
44721
44722 2006-06-26  Bruno Haible  <bruno@clisp.org>
44723
44724         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
44725         SGI C compiler in pre-C99 mode.
44726         Suggested by Mark D. Baushke and Larry Jones.
44727
44728 2006-06-26  Bruno Haible  <bruno@clisp.org>
44729
44730         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
44731         WCHAR_MAX.
44732         Reported by Mark D. Baushke and Larry Jones.
44733
44734 2006-06-26  Bruno Haible  <bruno@clisp.org>
44735
44736         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
44737         in pre-C99 mode.
44738         Suggested by Mark D. Baushke and Larry Jones.
44739
44740 2006-06-23  Simon Josefsson  <jas@extundo.com>
44741             Bruno Haible  <bruno@clisp.org>
44742
44743         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
44744         Emit mostlyclean-local rule.
44745         (func_emit_tests_Makefile_am): Likewise.
44746         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
44747
44748 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
44749
44750         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
44751
44752 2006-06-23  Bruno Haible  <bruno@clisp.org>
44753
44754         * tests/test-stdint.c: Update to match ISO C 99 Technical
44755         Corrigendum 1.
44756
44757 2006-06-23  Bruno Haible  <bruno@clisp.org>
44758
44759         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
44760
44761 2006-06-23  Bruno Haible  <bruno@clisp.org>
44762
44763         * lib/stdint_.h: Treat IRIX like OpenBSD.
44764
44765 2006-06-23  Bruno Haible  <bruno@clisp.org>
44766
44767         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
44768         ISO C 99 Technical Corrigendum 1.
44769
44770 2006-06-22  Simon Josefsson  <jas@extundo.com>
44771
44772         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
44773         MinGW.
44774
44775 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
44776
44777         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
44778         needed.  Some compiler complained about some of them.  Problem reported
44779         by Larry Jones in
44780         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
44781
44782 2006-06-21  Simon Josefsson  <jas@extundo.com>
44783
44784         * tests/test-getaddrinfo.c: New file.
44785
44786         * modules/getaddrinfo-tests: New file.
44787
44788         * MODULES.html.sh: Add inet_pton.
44789
44790         * modules/inet_pton: New file.
44791
44792 2006-06-21  Simon Josefsson  <jas@extundo.com>
44793
44794         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
44795         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
44796         of using the (limited) gnulib implementation on Windows XP.
44797
44798         * m4/inet_pton.m4: New file.
44799
44800 2006-06-21  Simon Josefsson  <jas@extundo.com>
44801
44802         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
44803         variable.
44804
44805         * lib/socket_.h: Don't define WINVER.
44806
44807         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
44808         slightly modified to work in gnulib.
44809
44810 2006-06-21  Simon Josefsson  <jas@extundo.com>
44811
44812         * doc/gnulib.texi (Windows sockets): Add.
44813
44814 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
44815
44816         * lib/read-file.c (fread_file): Start with buffer allocation of
44817         0 bytes rather than 1 byte; this simplifies the code.
44818         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
44819         code to free buffer and save/restore errno.
44820         (internal_read_file): Remove unused local.
44821
44822 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
44823
44824         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
44825         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
44826         Problem reported by Denis Excoffier in
44827         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
44828
44829 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44830
44831         * modules/sys_socket, modules/socklen: Include sys/types since
44832         FreeBSD 4.x's sys/socket.h needs it.
44833
44834 2006-06-19  Simon Josefsson  <jas@extundo.com>
44835
44836         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
44837
44838 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
44839
44840         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
44841
44842 2006-06-19  Bruno Haible  <bruno@clisp.org>
44843
44844         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
44845         and FULL_PATH_INTTYPES_H in angle brackets.
44846         Reported by Mark D. Baushke <mdb@gnu.org>.
44847
44848 2006-06-17  Eric Blake  <ebb9@byu.net>
44849
44850         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
44851         errno.
44852
44853 2006-06-17  Bruno Haible  <bruno@clisp.org>
44854
44855         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
44856         <sys/inttypes.h>.
44857
44858 2006-06-17  Bruno Haible  <bruno@clisp.org>
44859
44860         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
44861         whether errno is declared. Assume <errno.h> declares errno.
44862
44863 2006-06-17  Bruno Haible  <bruno@clisp.org>
44864
44865         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
44866
44867 2006-06-17  Bruno Haible  <bruno@clisp.org>
44868
44869         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
44870         problem on Solaris 2.5.1.
44871
44872 2006-06-16  Eric Blake  <ebb9@byu.net>
44873
44874         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
44875         * lib/unicodeio.c [!defined errno]: Likewise.
44876         * lib/strtol.c [!defined errno]: Likewise.
44877         * lib/strtod.c [!defined errno]: Likewise.
44878
44879 2006-06-15  Eric Blake  <ebb9@byu.net>
44880
44881         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
44882
44883 2006-06-15  Eric Blake  <ebb9@byu.net>
44884
44885         * config/srclist.txt (ssize_t.m4): Lose sync.
44886
44887 2006-06-15  Bruno Haible  <bruno@clisp.org>
44888
44889         * modules/stdint (Files): Include m4/full-header-path.m4,
44890         m4/size_max.m4, m4/wchar_t.m4.
44891         (Makefile.am): Many more substitutions.
44892         * modules/stdint-tests: New file.
44893         * tests/test-stdint.c: New file.
44894
44895 2006-06-15  Bruno Haible  <bruno@clisp.org>
44896
44897         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
44898         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
44899         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
44900         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
44901         gl_CHECK_TYPE_SAME): New macros.
44902
44903 2006-06-15  Bruno Haible  <bruno@clisp.org>
44904
44905         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
44906
44907 2006-06-15  Bruno Haible  <bruno@clisp.org>
44908
44909         * lib/stdint_.h: Rewritten to be fully auto-configured.
44910         Fixes bug on HP-UX/IA64.
44911
44912 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
44913
44914         * lib/getdate.y (__attribute__): Don't define if already defined.
44915         Problem reported by Larry Jones.
44916         * lib/utimens.c (__attribute__): Likewise.
44917
44918 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
44919
44920         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
44921         reported by Andreas Schwab.
44922
44923 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44924             Bruno Haible  <bruno@clisp.org>
44925
44926         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
44927         check for the declaration of strnlen and a run test that exposes the
44928         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
44929         rpl_strndup.
44930
44931 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44932             Bruno Haible  <bruno@clisp.org>
44933
44934         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
44935
44936 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44937
44938         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
44939         compile test, for Tru64 4.0D.
44940
44941 2006-05-28  Karl Berry  <karl@gnu.org>
44942
44943         * config/srclist.txt (printf-args.c): lose sync.
44944
44945 2006-05-26  Martin Lambers  <marlam@marlam.de>
44946
44947         * lib/getpass.c: Updates the test for the native W32 API, and adds
44948         missing includes, thus fixing compilation warnings.
44949
44950 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44951
44952         * lib/exclude.c (exclude_fnmatch): New function.
44953         (excluded_file_name): Call exclude_fnmatch.
44954         * lib/exclude.h (excluded_file_name): New prototype
44955
44956 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
44957
44958         * lib/tempname.c (small_open, large_open): New macros.
44959         (__open, __open64) [!_LIBC]: Remove.
44960         (__gen_tempname): Use small_open and large_open instead of __open
44961         and __open64.  This fixes a portability bug on HP-UX 11.11i
44962         reported by Simon Wing-Tang in
44963         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
44964
44965 2006-05-24  Bruno Haible  <bruno@clisp.org>
44966
44967         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
44968         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
44969         Reported by Thorsten Maerz <torte@netztorte.de> via
44970         Aaron Stone <aaron@serendipity.cx>.
44971
44972 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
44973
44974         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
44975         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
44976         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
44977         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
44978         not really conditional on the cache.
44979         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
44980
44981 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
44982
44983         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
44984         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
44985         (my_usleep): Don't mishandle maximum value.
44986
44987 2006-05-19  Jim Meyering  <jim@meyering.net>
44988
44989         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
44990
44991 2006-05-17  Bruno Haible  <bruno@clisp.org>
44992
44993         Cygwin portability.
44994         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
44995
44996 2006-05-17  Bruno Haible  <bruno@clisp.org>
44997
44998         * lib/stdint_.h: Fix recognition of Cygwin.
44999
45000 2006-05-15  Bruno Haible  <bruno@clisp.org>
45001
45002         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
45003         on libtool patch by Ralf Wildenhues.
45004
45005 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
45006
45007         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
45008         test for C99 conformance; (bool) 0.5 is an integer constant
45009         expression, but (bool) -0.5 is not.  Problem reported by Fedor
45010         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
45011
45012 2006-05-11  Simon Josefsson  <jas@extundo.com>
45013
45014         * m4/xvasprintf.m4: Fix obvious typo.
45015
45016 2006-05-11  Jim Meyering  <jim@meyering.net>
45017
45018         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
45019         James Lemley.
45020
45021 2006-05-10  Simon Josefsson  <jas@extundo.com>
45022
45023         * lib/md4.c: Typo fix, update copyright years.
45024         (K1, K2): Don't use L because it turn computations into 64-bit on
45025         64-bit platforms.
45026
45027 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
45028
45029         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
45030         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
45031         unwanted sign propagation, e.g., on hosts with 64-bit int.
45032         There still are some problems with reeelly weird theoretical hosts
45033         (e.g., 33-bit int) but it's not worth worrying about now.
45034         * lib/sha1.c (rol): Likewise.
45035         (K1, K2, K3, K4): Remove unnecessary L suffix.
45036
45037 2006-05-10  Bruno Haible  <bruno@clisp.org>
45038
45039         * lib/des.c: Cast to avoid warnings.
45040
45041 2006-05-09  Bruno Haible  <bruno@clisp.org>
45042
45043         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
45044         (Depends-on): Depend also on xsize, stdarg.
45045         (configure.ac): Add gl_XVASPRINTF.
45046
45047 2006-05-09  Bruno Haible  <bruno@clisp.org>
45048
45049         * m4/xvasprintf.m4: New file.
45050
45051 2006-05-09  Bruno Haible  <bruno@clisp.org>
45052
45053         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
45054         (EOVERFLOW): Define fallback value.
45055         (xstrcat): New function.
45056         (xvasprintf): Recognize the special case of a string concatenation.
45057
45058 2006-05-08  Eric Blake  <ebb9@byu.net>
45059
45060         * gnulib-tool (func_version): Base copyright year on CVS date.
45061         (func_emit_copyright_notice): New function.
45062         (func_emit_lib_Makefile_am): Use it.
45063         (func_emit_tests_Makefile_am): Likewise.
45064         (func_import): Likewise.
45065
45066 2006-05-08  Bruno Haible  <bruno@clisp.org>
45067
45068         * modules/stdarg: New file.
45069         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
45070
45071 2006-05-08  Bruno Haible  <bruno@clisp.org>
45072
45073         * m4/stdarg.m4: New file, from GNU gettext.
45074
45075 2006-05-08  Bruno Haible  <bruno@clisp.org>
45076
45077         * config/srclist.txt (build-aux/config.rpath): different from latest
45078         release.
45079
45080 2006-05-08  Bruno Haible  <bruno@clisp.org>
45081
45082         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
45083
45084 2006-05-05  Jim Meyering  <jim@meyering.net>
45085
45086         * m4/warning.m4: New file, derived from bison's file by the same name.
45087
45088 2006-05-03  Bruno Haible  <bruno@clisp.org>
45089
45090         * lib/stdint_.h: Shorter URL.
45091         * lib/inttypes.h: Likewise.
45092
45093 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
45094
45095         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
45096
45097 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
45098
45099         * lib/verify.h: Document the internals better.  Most of this change
45100         was written by Bruno Haible.
45101
45102 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
45103
45104         * doc/verify.texi: New file, partly based on a proposal by
45105         Bruno Haible.
45106
45107 2006-05-02  Bruno Haible  <bruno@clisp.org>
45108
45109         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
45110         test from here...
45111         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
45112
45113 2006-04-29  Bruno Haible  <bruno@clisp.org>
45114
45115         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
45116         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
45117
45118 2006-04-29  Bruno Haible  <bruno@clisp.org>
45119
45120         * gnulib-tool: Make --update option actually work.
45121
45122 2006-04-29  Bruno Haible  <bruno@clisp.org>
45123
45124         * doc/gcd.texi: New file.
45125         * doc/gnulib.texi: Include it.
45126
45127 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
45128
45129         * lib/getdate.y (get_date): When adding relative date, start with the
45130         initial time, not with the result of the first mktime call.
45131
45132 2006-04-25  Bruno Haible  <bruno@clisp.org>
45133
45134         * gnulib-tool (func_import): Output the include directives in three
45135         blocks, sorted separately.
45136         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45137
45138 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
45139
45140         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
45141         to define main with arguments, for C++.  Reported by Eric Blake.
45142         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
45143         Prefer 'int main ()' to 'int main (void)', for C++.
45144         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
45145         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
45146         for 'main', for C99 and C++.
45147
45148 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
45149
45150         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
45151         Don't assume that exit status -1 is valid.
45152         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45153         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
45154         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45155         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
45156         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
45157         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
45158         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
45159         functions can be used without declaring them, or that you can
45160         exit with status -1.
45161         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45162
45163 2006-04-24  Karl Berry  <karl@gnu.org>
45164
45165         * config/srclist.txt (longdouble.m4): sync lost.
45166
45167 2006-04-24  Eric Blake  <ebb9@byu.net>
45168
45169         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
45170
45171 2006-04-24  Bruno Haible  <bruno@clisp.org>
45172
45173         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
45174         poll() implementation in AIX.
45175         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45176
45177 2006-04-24  Bruno Haible  <bruno@clisp.org>
45178
45179         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
45180         assigned exactly once.
45181
45182 2006-04-23  Claudio Fontana  <claudio@gnu.org>
45183             Bruno Haible  <bruno@clisp.org>
45184
45185         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
45186         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
45187         for AM_CPPFLAGS.
45188
45189 2006-04-23  Bruno Haible  <bruno@clisp.org>
45190
45191         * modules/copy-file: Depend on unistd.
45192         * modules/execute: Likewise.
45193         * modules/fatal-signal: Likewise.
45194         * modules/findprog: Likewise.
45195         * modules/mkdtemp : Likewise.
45196         * modules/pipe: Likewise.
45197         * modules/wait-process: Likewise.
45198
45199 2006-04-23  Bruno Haible  <bruno@clisp.org>
45200
45201         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
45202         condition was already detected.
45203         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45204
45205 2006-04-23  Bruno Haible  <bruno@clisp.org>
45206
45207         * lib/copy-file.c: Include <unistd.h> unconditionally.
45208         * lib/execute.c: Likewise.
45209         * lib/fatal-signal.c: Likewise.
45210         * lib/findprog.c: Likewise.
45211         * lib/mkdtemp.c: Likewise.
45212         * lib/pipe.h: Likewise.
45213         * lib/pipe.c: Likewise.
45214         * lib/wait-process.h: Likewise.
45215
45216 2006-04-23  Bruno Haible  <bruno@clisp.org>
45217
45218         * gnulib-tool (func_usage): Fix --import description. Document
45219         --update.
45220         (func_import): Create temporary file in a temporary directory, if
45221         --dry-run is specified. Silence errors from 'grep' when there are no
45222         m4 files in $m4dir.
45223         (func_create_testdir): Silence errors from 'grep' when there are no
45224         m4 files in $m4dir.
45225         Reported by Karl Berry <karl@freefriends.org>.
45226
45227 2006-04-20  Bruno Haible  <bruno@clisp.org>
45228
45229         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
45230         one argument, so that the code will be portable to Autoconf 2.60.
45231         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
45232         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45233         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
45234
45235 2006-04-19  Derek Price  <derek@ximbiot.com>
45236             Eric Blake  <ebb9@byu.net>
45237
45238         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
45239         rather than "/full/path.h".  Update comment to match.  Shorten &
45240         generalize m4_translit call via AS_TR_CPP.
45241
45242 2006-04-19  Derek Price  <derek@ximbiot.com>
45243             Eric Blake  <ebb9@byu.net>
45244
45245         * lib/inttypes.h: Correct grammar in comment.
45246
45247 2006-04-18  Derek Price  <derek@ximbiot.com>
45248             Paul Eggert  <eggert@cs.ucla.edu>
45249
45250         * modules/inttypes: New file.
45251         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
45252
45253 2006-04-18  Derek Price  <derek@ximbiot.com>
45254             Paul Eggert  <eggert@cs.ucla.edu>
45255
45256         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
45257         New files.
45258
45259 2006-04-18  Derek Price  <derek@ximbiot.com>
45260             Paul Eggert  <eggert@cs.ucla.edu>
45261
45262         * lib/inttypes.h: New file.
45263         * lib/strtoimax.c: Assume <inttypes.h>.
45264
45265 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
45266
45267         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
45268         isn't mounted.  Problem reported by Kir Kolyshkin.
45269
45270 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
45271
45272         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
45273         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
45274         Derek R. Price.
45275         * lib/regex.h (RE_DUP_MAX): Update comment to match current
45276         implementation.
45277
45278 2006-04-12  Eric Blake  <ebb9@byu.net>
45279
45280         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
45281         is now done automatically by the corresponding Autoconf macro.
45282
45283 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
45284
45285         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
45286         time_r.h.
45287
45288 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45289
45290         Merge regex changes from libc, removing some of our
45291         POSIX-conformance changes that were rejected and redoing them in a
45292         less-intrusive way.
45293
45294         * lib/regcomp.c (re_compile_internal, init_dfa):
45295         Length arg is now size_t, not Idx.  All uses changed.
45296         (peek_token): Forward decl now says internal_function.
45297         (__re_error_msgid, __re_error_msgid_idx):
45298         Now static rather than extern with attribute_hidden.
45299         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
45300         For some reason libc prefers K&R style defns for external functions.
45301         (regerror) [!defined _LIBC]: Likewise.
45302         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
45303         (seek_collating_symbol_entry, lookup_collation_sequence_value):
45304         (build_range_exp, build_collating_symbol):
45305         Use K&R-style defn.
45306         (re_compile_fastmap): Use '\0' to memset, not 0.
45307         (utf8_sb_map): Make the calculations more obvious.
45308         (init_dfa, parse_bracket_exp, build_charclass_op):
45309         Call calloc and cast result, as glibc does.
45310         (init_word_char, fetch_token, peek_token, peek_token_bracket):
45311         (build_range_exp, build_collating_symbol):
45312         Now internal functions.
45313
45314         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
45315
45316         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
45317         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
45318         Don't depend on VMS; depend on __VMS instead, for POSIX
45319         namespace cleanness.
45320         (regoff_t): Define to ssize_t, not long int.
45321
45322         Remove the REG_ macros named below.  Instead, make the old names
45323         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
45324         __USE_GNU_REGEX.
45325         (REG_BACKSLASH_ESCAPE_IN_LISTS):
45326         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
45327         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
45328         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
45329         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
45330         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
45331         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
45332         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
45333         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
45334         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
45335         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
45336         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
45337         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
45338         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
45339         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
45340         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
45341         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
45342         (REG_NREGS):
45343         Remove.  All uses replaced by the old RE_* names.
45344         (RE_BACKSLASH_ESCAPE_IN_LISTS):
45345         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
45346         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
45347         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
45348         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
45349         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
45350         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
45351         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
45352         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
45353         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
45354         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
45355         Don't bother having these macros be independent of each others'
45356         values, since they no longer exist in the POSIX name space.
45357
45358         Rename the following member names back to their old names,
45359         unless !__USE_GNU_REGEX.  All uses changed back.
45360         (buffer): Renamed from re_buffer.
45361         (allocated): Renamed from re_allocated.
45362         (used): Renamed from re_used.
45363         (syntax): Renamed from re_syntax.
45364         (fastmap): Renamed from re_fastmap.
45365         (translate): Renamed from re_translate.
45366         (can_be_null): Renamed from re_can_be_null.
45367         (regs_allocated): Renamed from re_regs_allocated.
45368         (fastmap_accurate): Renamed from re_fastmap_accurate.
45369         (no_sub): Renamed from re_no_sub.
45370         (not_bol): Renamed from re_not_bol.
45371         (not_eol): Renamed from re_not_eol.
45372         (newline_anchor): Renamed from re_newline_anchor.
45373         (num_regs): Renamed from rm_num_regs.
45374         (start): Renamed from rm_start.
45375         (end): Renamed from rm_end.
45376
45377         (free_state): Move up a bit.
45378
45379         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
45380         #define to be empty.
45381         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
45382         when that is what is intended.
45383         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
45384         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
45385         (MAX): New macro.
45386         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
45387         All uses changed back to re_malloc, etc.  It's now the caller's
45388         responsibility to check for overflow; all callers changed.
45389         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
45390         (re_x2nrealloc): Remove.
45391         (free_state): Remove decl.
45392
45393         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
45394         (re_set_registers, re_exec):
45395         Use K&R-style defn.
45396
45397         2006-01-31  Roland McGrath  <roland@redhat.com>
45398
45399         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
45400         Reported by Mike Frysinger <vapier@gentoo.org>.
45401
45402         2006-01-15  Andreas Jaeger  <aj@suse.de>
45403
45404         [BZ #1950]
45405         * lib/regex_internal.c (re_string_reconstruct): Adjust for
45406         build_wcs_upper_buffer change.
45407         (build_wcs_upper_buffer): Change return type.
45408
45409         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
45410
45411         * lib/regex_internal.h: Include <stdint.h> if available.
45412
45413         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
45414
45415         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
45416
45417         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
45418
45419         * lib/regcomp.c: Adjust for changed secondary hash function.
45420
45421         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
45422
45423         * lib/regex.h: Pretty printing.
45424         Clean up namespace a bit.
45425
45426         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
45427
45428         * lib/regexec.c (update_cur_sifted_state, check_arrival,
45429         check_arrival_add_next_nodes): Avoid using uninitialized variable.
45430
45431         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
45432                     Ulrich Drepper  <drepper@redhat.com>
45433
45434         [BZ #1302]
45435         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
45436         changed.
45437         (bitset_word_t): Renamed from bitset_word.  All uses changed.
45438
45439         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
45440
45441         [BZ #281]
45442         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
45443         * lib/regcomp.c: Remove unnecessary uses of
45444         unsigned RE_TRANSLATE_TYPE.
45445         * lib/regex_internal.h: Likewise.
45446         * lib/regex_internal.c: Likewise.
45447         * lib/regexec.c: Likewise.
45448         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
45449
45450         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
45451
45452         * lib/regexec.c (find_recover_state): Remove unnecessary
45453         initialization.
45454         (transit_state_bkref): Make DFA a const pointer.
45455         (get_subexp): Likewise.
45456         (check_arrival): Likewise.
45457         (update_cur_sifted_state): Likewise.
45458         (re_search_internal): Likewise.
45459         (prune_impossible_nodes): Likewise.
45460         (acquire_init_state_context): Likewise.
45461         (proceed_next_node): Likewise.
45462         (set_regs): Likewise.
45463         (free_fail_stack_return): Likewise.
45464         (check_arrival_expand_ecl): Mark DFA parameter as const.
45465         (check_arrival_expand_ecl_sub): Likewise.
45466         (check_subexp_limits): Likewise.
45467         (sub_epsilon_src_nodes):  Likewise.
45468         (add_epsilon_src_nodes):  Likewise.
45469         (merge_state_array): Likewise.
45470         (update_regs): Likewise.
45471         (build_trtable): Likewise.
45472         (sift_states_backward): Mark MCTX parameter as const.
45473         (build_sifted_states): Likewise.
45474         (update_cur_sifted_state): Likewise.
45475         (sift_states_mkref): Likewise.
45476         (check_arrival_expand_ecl): Mark eclosure as const.
45477         (check_dst_limits_calc_pos_1): Likewise.
45478         * lib/regex_internal.h (re_match_context_t): Make dfa a const
45479         pointer.
45480
45481         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
45482
45483         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
45484         (transit_state_sb): Likewise.
45485         (transit_state_mb): Likewise.
45486         (sift_states_iter_mb): Likewise.
45487         (check_arrival_add_next_nodes): Likewise.
45488         (check_node_accept_bytes): Change first parameter to pointer-to-const.
45489         [_LIBC] (re_search_2_stub): Use mempcpy.
45490
45491         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
45492         mbrtowc for very simple UTF-8 case.
45493
45494         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
45495         a pointer-to-const.
45496         (re_acquire_state_context): Likewise.
45497         * lib/regex_internal.h: Adjust prototypes.
45498
45499         * lib/regex.c: Prevent using C++ compilers.
45500
45501         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
45502         (re_acquire_state_context): Likewise.
45503
45504 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45505
45506         * modules/regex (Depends-on): Add ssize_t.
45507
45508 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45509
45510         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
45511         translation table.
45512
45513 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45514
45515         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
45516
45517 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
45518             Bruno Haible  <bruno@clisp.org>
45519
45520         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
45521         <sys/types.h> and <inttypes.h>.
45522
45523 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45524
45525         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
45526         `__error_t_defined', so argp.h will not typedef the former.
45527
45528 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45529
45530         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
45531         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
45532         glibc names.  Even if glibc is changed to conform to POSIX, the
45533         traditional names will be available anyway, since regex depends on
45534         the extensions module.  Also, fix a longstanding typo in the
45535         implementation of Spencer ERE test #75 from grep 2.3.  Problems
45536         reported by Emanuele Giaquinta.  Also, change sense of cached
45537         variable, so that the message makes sense.
45538
45539 2006-03-24  Simon Josefsson  <jas@extundo.com>
45540
45541         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
45542         including some doc fixes.
45543         (base64_encode_alloc): Fix +1 bug on allocation failures.
45544
45545 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45546
45547         * lib/base64.c (base64_encode): Do not read past end of array with
45548         unsanitized input on systems with CHAR_BIT > 8.
45549
45550 2006-03-24  Eric Blake  <ebb9@byu.net>
45551
45552         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
45553
45554 2006-03-22  Karl Berry  <karl@gnu.org>
45555
45556         * config/srclist.txt (*setenv.[ch]): get from coreutils.
45557         * config/srclistvars.sh (COREUTILS): new var.
45558
45559 2006-03-17  Jim Meyering  <jim@meyering.net>
45560
45561         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
45562         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
45563
45564 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
45565
45566         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
45567         no longer needs it.  Instead, check that regoff_t is as least
45568         as wide as ptrdiff_t.
45569
45570         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
45571         so that our regex.h stays compatible with the installed regex.
45572         This is helpful for installers who configure --without-included-regex.
45573         Problem reported by Emanuele Giaquinta.
45574
45575 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
45576
45577         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
45578         Typedef to long int, not to off_, as POSIX will likely change
45579         in that direction.
45580
45581 2006-03-15  Eric Blake  <ebb9@byu.net>
45582
45583         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
45584
45585 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
45586
45587         * lib/argp-help.c (validate_uparams): Fix typo
45588         * lib/argp-parse.c (argp_default_options): Consistently begin help
45589         messages with a lowercase letter.
45590
45591 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
45592
45593         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
45594         overrun buffers and shouldn't be used (much as gets shouldn't be
45595         used).
45596         * lib/time_r.c (asctime_r, ctime_r): Likewise.
45597
45598 2006-03-08  Simon Josefsson  <jas@extundo.com>
45599
45600         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
45601         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45602
45603 2006-03-08  Simon Josefsson  <jas@extundo.com>
45604
45605         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
45606         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45607
45608 2006-03-08  Simon Josefsson  <jas@extundo.com>
45609
45610         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
45611         signal that configure disabled the device.
45612
45613 2006-03-08  Simon Josefsson  <jas@extundo.com>
45614
45615         * build-aux/maint.mk: Fix refresh-po, to handle no translated
45616         languages.
45617
45618 2006-03-07  Simon Josefsson  <jas@extundo.com>
45619
45620         * modules/getopt (Depends-on): Add unistd.
45621
45622         * modules/unistd: New file.
45623
45624 2006-03-07  Simon Josefsson  <jas@extundo.com>
45625
45626         * modules/gc-random: New file.
45627
45628 2006-03-07  Simon Josefsson  <jas@extundo.com>
45629
45630         * m4/unistd_h.m4: New file.
45631
45632 2006-03-07  Simon Josefsson  <jas@extundo.com>
45633
45634         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
45635         test to be side-effect free by storing the result in the cache
45636         variable gl_cv_lib_readline, and moving the assignment of
45637         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
45638         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45639
45640 2006-03-07  Simon Josefsson  <jas@extundo.com>
45641
45642         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
45643         error on missing devices (the functions will return an error).
45644
45645         * m4/gc.m4: Move random stuff to gc-random.m4
45646
45647 2006-03-07  Simon Josefsson  <jas@extundo.com>
45648
45649         * lib/unistd_.h: New file.
45650
45651 2006-03-07  Simon Josefsson  <jas@extundo.com>
45652
45653         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
45654
45655 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
45656
45657         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
45658         Problem reported by Juan Manuel Guerrero.
45659
45660 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
45661
45662         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
45663         the unistd module.
45664         * lib/getlogin_r.c: Likewise.
45665         * lib/getlogin_r.h: Likewise.
45666         * lib/glob.c: Likewise.
45667         * lib/pagealign_alloc.c: Likewise.
45668         * lib/unistd_.h: Remove; no longer needed.
45669
45670 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
45671
45672         * MODULES.html.sh (Support for systems lacking POSIX:2001):
45673         Add unistd.
45674         * modules/c-stack (Depends-on): Add unistd.
45675         * modules/getlogin_r: Likewise.
45676         * modules/glob: Likewise.
45677         * modules/pagealign_alloc: Likewise.
45678         * modules/unistd (Files): Remove lib/unistd_.h.
45679         (EXTRA_DIST): Remove.
45680         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
45681         need unistd_.h.
45682         (MOSTLYCLEANFILES): Remove unistd.h-t.
45683
45684 2006-03-03  Simon Josefsson  <jas@extundo.com>
45685
45686         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
45687
45688 2006-03-03  Simon Josefsson  <jas@extundo.com>
45689
45690         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
45691         libidn and bison.
45692
45693 2006-03-03  Simon Josefsson  <jas@extundo.com>
45694
45695         * build-aux/maint.mk: Add indent target.
45696
45697 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
45698
45699         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
45700         our replacement poll.h in any case, to avoid a differing
45701         declaration from a system header.  Seen on AIX.
45702
45703 2006-03-01  Simon Josefsson  <jas@extundo.com>
45704
45705         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
45706         <kasal@ucw.cz>.
45707
45708 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
45709
45710         * modules/gettime (Depends-on): Add extensions module.
45711         * modules/nanosleep (Depends-on): Likewise.
45712         * modules/settime (Depends-on): Likewise.
45713
45714 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
45715
45716         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
45717         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
45718         pedantically.
45719         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45720         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
45721
45722         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
45723         not "==".  Reported by Ralf Wildenhues.
45724
45725 2006-03-01  Karl Berry  <karl@gnu.org>
45726
45727         * doc/Copyright/request-*: new files, synced from gnuorg.
45728
45729 2006-03-01  Karl Berry  <karl@gnu.org>
45730
45731         * config/srclist.txt (Copyright/*): new entries.
45732
45733 2006-02-28  Simon Josefsson  <jas@extundo.com>
45734
45735         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
45736
45737 2006-02-27  Simon Josefsson  <jas@extundo.com>
45738
45739         * lib/base64.h: Indent #define's.  From Jim Meyering
45740         <jim@meyering.net>.
45741
45742 2006-02-27  Jim Meyering  <jim@meyering.net>
45743
45744         Revert the change of 2006-02-24, so these files can continue
45745         to be sync'd from gettext.
45746         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
45747         of `config.h'.
45748
45749 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
45750
45751         * modules/intprops: New file.
45752         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
45753         Add intprops.
45754         * modules/getloadavg (Files): Remove lib/intprops.h.
45755         (Depends-on): Add intprops.
45756         * modules/human: Likewise.
45757         * modules/inttostr: Likewise.
45758         * modules/openat: Likewise.
45759         * modules/sig2str: Likewise.
45760         * modules/userspec: Likewise.
45761         * modules/utimecmp: Likewise.
45762         * modules/xnanosleep: Likewise.
45763         * modules/xstrtol: Likewise.
45764
45765 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
45766
45767         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
45768         * modules/lock-tests (TESTS): Use $(EXEEXT).
45769         * modules/tls-tests: Likewise.
45770         * modules/argp-tests: Likewise.
45771         (check_PROGRAMS): New var, replacing...
45772         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
45773
45774 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45775
45776         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
45777         `config.h'.
45778
45779 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
45780
45781         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
45782
45783 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45784
45785         Sync from coreutils.
45786         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
45787         gl_CHDIR_SAFER.
45788
45789 2006-02-22  Jim Meyering  <jim@meyering.net>
45790
45791         Sync from coreutils.
45792         * m4/chdir-safer.m4: New file.
45793
45794 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
45795
45796         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
45797         AT_FDCWD exceeds INT_MAX.
45798         * lib/openat.h (AT_FDCWD): Likewise.
45799
45800 2006-02-17  Eric Blake  <address@hidden>
45801
45802         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
45803
45804 2006-02-16  Simon Josefsson  <jas@extundo.com>
45805
45806         * modules/getaddrinfo (Depends-on): Add sys_socket.
45807
45808 2006-02-15  Simon Josefsson  <jas@extundo.com>
45809
45810         * build-aux/maint.mk: Add dsyntax-check rule.
45811
45812 2006-02-15  Eric Blake  <ebb9@byu.net>
45813
45814         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
45815         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
45816         'present but cannot compile' warnings on cygwin.
45817         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
45818         use ws2tcpip.h if sys/socket.h works.
45819         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
45820         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
45821
45822 2006-02-14  Simon Josefsson  <jas@extundo.com>
45823
45824         * modules/maintainer-makefile (Files): Rename.
45825
45826         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
45827         and (the local) Makefile.cfg to maint-cfg.mk.
45828
45829         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
45830         to the latter.
45831
45832         * modules/maintainer-makefile: New module.
45833
45834         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
45835         severaly stripped to make it possible to build it up from scratch
45836         with reliable tests.
45837
45838         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
45839         fixes to permit overriding the default actions when configure and
45840         makefile are not available.
45841
45842 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
45843
45844         Sync from coreutils.
45845         * modules/lstat (Depends-on): Don't depend on xalloc.
45846         (License): Change from GPL to LGPL, since this is now simply a
45847         replacement for a libc function.
45848
45849 2006-02-14  Jim Meyering  <jim@meyering.net>
45850
45851         Sync from coreutils.
45852
45853         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
45854         failure on deficient systems, and simplify gnulib lgpl dependencies.
45855         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
45856         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
45857
45858         * lib/xalloc-die.c: Remove unused definition of N_.
45859
45860 2006-02-14  Jim Meyering  <jim@meyering.net>
45861
45862         Sync from coreutils.
45863         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
45864         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
45865         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
45866         double-quote uses of that variable, to accommodate the rare case in
45867         which getmntent is available in none of the libraries checked.  This
45868         happens at least on FreeBSD 5.0.
45869
45870 2006-02-13  Simon Josefsson  <jas@extundo.com>
45871
45872         * gnulib-tool (Usage): Fix --import, from
45873         karl@freefriends.org (Karl Berry).
45874
45875 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
45876
45877         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
45878
45879 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
45880
45881         * lib/argp-namefrob.h: Restore changes accidentally lost during the
45882         "autoupdate" on 2005-12-12.
45883
45884 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
45885
45886         * modules/closeout (Depends-on): Remove atexit.
45887
45888 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
45889
45890         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
45891         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
45892
45893 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
45894
45895         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
45896         __EXTENSIONS__ if this causes compilation to fail.  Problem
45897         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
45898         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
45899
45900 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
45901
45902         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
45903         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
45904         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
45905         All uses changed.
45906
45907 2006-01-26  Simon Josefsson  <jas@extundo.com>
45908
45909         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
45910         prototype is visible on mingw32.
45911
45912         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
45913         for mingw32.
45914
45915         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
45916         mingw32).
45917
45918 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
45919
45920         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
45921         attempt to open for write; this always fails, at least on POSIX
45922         hosts.  This reinstates the 2006-01-09 change, which was
45923         inadvertently removed.
45924
45925 2006-01-26  Bruno Haible  <bruno@clisp.org>
45926
45927         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
45928         Reported by Paul Eggert.
45929
45930 2006-01-26  Bruno Haible  <bruno@clisp.org>
45931             Paul Eggert  <eggert@cs.ucla.edu>
45932
45933         * lib/stdbool_.h (_Bool)
45934         [(! (defined __cplusplus || defined __BEOS__)
45935           && !defined __GNUC__
45936           && !(defined __HP_cc || defined __xlc__
45937                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
45938                || defined __sgi))]:
45939         #define to signed char in these cases too; this simplifies
45940         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
45941         etc., separately) and makes it more conservative.
45942
45943 2006-01-25  Simon Josefsson  <jas@extundo.com>
45944
45945         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
45946         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
45947         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
45948
45949 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45950
45951         * lib/argp-namefrob.h: Bugfix. Remove stray #
45952
45953 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
45954
45955         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
45956         so that we test the test.
45957         Check for yet another HP-UX cc bug involving *bool |= bool.
45958
45959 2006-01-25  Karl Berry  <karl@gnu.org>
45960
45961         * config/srclist.txt (vasnprintf.c): sync lost.
45962
45963 2006-01-25  Jim Meyering  <jim@meyering.net>
45964
45965         Sync from the stable (b5) branch of coreutils:
45966
45967         * lib/fts.c (fts_children): Don't let close() clobber errno from
45968         failed fchdir().
45969
45970         * lib/fts.c (fts_stat): When following a symlink-to-directory,
45971         don't necessarily interpret stat-fails+lstat-succeeds as indicating
45972         a dangling symlink.  That can also happen at least for ELOOP.
45973         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
45974         FYI, this bug predates the inclusion of fts.c in coreutils.
45975
45976         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
45977         in their own block, so pre-c99 compilers don't object.
45978
45979         Avoid the double-free (first in fts_read, second in fts_close) that
45980         would occur when an `active' directory is made inaccessible (e.g.,
45981         via chmod a-x) during a traversal.
45982         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
45983         before returning.  Reproduce this failure by
45984         mkdir -p a/b; cd a; chmod a-x . b
45985         Reported by Stavros Passas.
45986
45987 2006-01-25  Jim Meyering  <jim@meyering.net>
45988
45989         * lib/fileblocks.c: Remove more useless parentheses.
45990         * lib/readutmp.h: Likewise.
45991
45992 2006-01-25  Bruno Haible  <bruno@clisp.org>
45993
45994         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
45995         warnings.
45996         Reported by Paul Eggert.
45997
45998 2006-01-25  Bruno Haible  <bruno@clisp.org>
45999
46000         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
46001         rid of a trap command. For Solaris sh.
46002         Reported by Mark D. Baushke <mdb@gnu.org>.
46003
46004 2006-01-24  Simon Josefsson  <jas@extundo.com>
46005
46006         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
46007         Bruno.
46008
46009 2006-01-24  Karl Berry  <karl@gnu.org>
46010
46011         * config/srclist.txt (argp-namefrob.h): sync lost.
46012
46013 2006-01-24  Jim Meyering  <jim@meyering.net>
46014
46015         * modules/openat (Files): Add lib/intprops.h.
46016         From Mark D. Baushke.
46017
46018 2006-01-24  Jim Meyering  <jim@meyering.net>
46019
46020         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
46021         Reported by Mark D. Baushke.
46022
46023 2006-01-24  Jim Meyering  <jim@meyering.net>
46024
46025         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
46026
46027 2006-01-24  Bruno Haible  <bruno@clisp.org>
46028
46029         * modules/strnlen (Maintainer): Change from glibc to all.
46030
46031 2006-01-24  Bruno Haible  <bruno@clisp.org>
46032
46033         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
46034         Patch by Paul Eggert.
46035
46036 2006-01-24  Bruno Haible  <bruno@clisp.org>
46037
46038         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
46039         already has it.
46040         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
46041         2005-11-26.
46042
46043         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
46044         'signed char' to avoid problems with the built-in _Bool type.
46045         Reported by Paul Eggert on 2005-11-26.
46046
46047 2006-01-24  Bruno Haible  <bruno@clisp.org>
46048
46049         * gnulib-tool (func_import): Avoid constructing complicated sed
46050         expressions inside backquote.
46051         Report and solution by Mark D. Baushke <mdb@gnu.org>.
46052
46053 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
46054
46055         These changes imported from libc.
46056         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
46057         test and two separate function calls.
46058         * lib/strndup.c (__strndup): Add libc_hidden_def.
46059
46060 2006-01-23  Simon Josefsson  <jas@extundo.com>
46061
46062         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
46063         Remove the test_*_SOURCES variable: automake infers it by default.
46064         * modules/tls-tests: Likewise.
46065
46066 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46067
46068         Work around porting bugs reported by Dieter in
46069         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
46070         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
46071         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
46072         Include "getopt.h" first, to check interface.
46073         (getenv): Declare only if defined HAVE_DECL_GETENV &&
46074         !HAVE_DECL_GETENV.
46075         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
46076         (__strndup): Revert to K&R-style function dfns, the glibc style.
46077         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
46078         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
46079         Include strnlen.h first, to get prototype properly.
46080         (strnlen): Renamed from __strnlen.
46081         Remove weak alias.
46082
46083 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46084
46085         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
46086
46087 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46088
46089         * config/srclist.txt: Adjust to reflect glibc reorganization.
46090         This affects only comments.
46091
46092 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
46093
46094          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
46095          Reported by Bruce Korb <bkorb@gnu.org>.
46096
46097 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
46098
46099         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
46100         to pacify gcc -Wswitch-default.
46101
46102 2006-01-22  Bruno Haible  <bruno@clisp.org>
46103
46104         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
46105         temporary buffer for sprintf, take into account the precision also
46106         for 'd', 'i', 'u', 'o', 'x', 'X'.
46107
46108 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
46109
46110         * modules/argp-tests: New module
46111         * tests/test-argp.c: New file
46112         * tests/test-argp-2.sh: New file
46113
46114 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
46115
46116         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
46117         (__argp_base_name): Removed
46118         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
46119         typo.
46120         (__argp_base_name): Provide macro definition or extern declaration
46121         depending on the configuration
46122
46123 2006-01-20  Simon Josefsson  <jas@extundo.com>
46124
46125         * modules/inet_ntop (Depends-on): Depend on sys_socket.
46126
46127 2006-01-20  Simon Josefsson  <jas@extundo.com>
46128
46129         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
46130
46131 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
46132
46133         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
46134         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
46135         Suggested by Bruno Haible.
46136
46137 2006-01-20  Karl Berry  <karl@gnu.org>
46138
46139         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
46140         until changes propagate, I guess.
46141
46142 2006-01-19  Simon Josefsson  <jas@extundo.com>
46143
46144         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
46145
46146 2006-01-19  Simon Josefsson  <jas@extundo.com>
46147
46148         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
46149
46150 2006-01-19  Simon Josefsson  <jas@extundo.com>
46151
46152         * gnulib-tool: Set check_PROGRAMS.
46153
46154         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
46155         modules/des-tests, modules/gc-arcfour-tests,
46156         modules/gc-arctwo-tests, modules/gc-des-tests,
46157         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
46158         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
46159         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
46160         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
46161         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
46162         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
46163         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
46164         test_*_SOURCES.
46165
46166 2006-01-18  Simon Josefsson  <jas@extundo.com>
46167
46168         * modules/socklen (Depends-on): Depend on sys_socket.
46169
46170 2006-01-18  Simon Josefsson  <jas@extundo.com>
46171
46172         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
46173         modules/des-tests, modules/gc-arcfour-tests,
46174         modules/gc-arctwo-tests, modules/gc-des-tests,
46175         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
46176         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
46177         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
46178         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
46179         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
46180         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
46181         $(EXEEXT) to automake TESTS variable, for mingw32.
46182
46183 2006-01-17  Simon Josefsson  <jas@extundo.com>
46184
46185         * modules/socklen (Include): Need sys/socket.h.
46186
46187 2006-01-17  Bruno Haible  <bruno@clisp.org>
46188
46189         * modules/ssize_t (Include): Add <sys/types.h>.
46190
46191 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
46192
46193         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
46194         it's not portable and it doesn't work with cross-compiles.
46195         Problem reported by Bruno Haible.  Fix missing-$ typo in
46196         'test "gl_cv_ignore_unused_libraries" ...' that prevented
46197         -zignore from being used with Sun's C compiler.
46198
46199 2006-01-12  Simon Josefsson  <jas@extundo.com>
46200
46201         * lib/base64.c: Fix warning, reported by Bruno Haible
46202         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
46203
46204 2006-01-12  Bruno Haible  <bruno@clisp.org>
46205
46206         * modules/ldd: New file.
46207         * build-aux/ldd.sh.in: New file.
46208         * MODULES.html.sh (Support for building libraries and executables): Add
46209         ldd.
46210
46211 2006-01-12  Bruno Haible  <bruno@clisp.org>
46212
46213         * m4/ldd.m4: New file.
46214
46215 2006-01-12  Bruno Haible  <bruno@clisp.org>
46216
46217         * gnulib-tool (func_import, func_create_testdir): Don't go into an
46218         endless loop while replacing $auxdir with build-aux.
46219
46220 2006-01-11  Simon Josefsson  <jas@extundo.com>
46221
46222         * lib/stdint_.h (SIZE_MAX): Add missing (.
46223
46224 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
46225
46226         Sync from coreutils.
46227         * lib/md5.c: Fix commentary typos.
46228         (alignof, UNALIGNED_P): No need for a GCC-specific version.
46229         * lib/md5.h (__attribute__): Remove; unused.
46230         * lib/sha1.c: Fix commentary to match md5 better.
46231         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
46232         so that we don't need to worry about alignment.  All uses changed.
46233         This merges the 2005-10-28 md5 change into sha1.
46234
46235 2006-01-11  Jim Meyering  <jim@meyering.net>
46236
46237         Sync from coreutils.
46238         * lib/md5.c (OP): Fix spacing.
46239
46240 2006-01-11  Bruno Haible  <bruno@clisp.org>
46241
46242         Ensure automatic ordering between gl_LOCK and gl_ARGP.
46243         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
46244         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
46245
46246 2006-01-11  Bruno Haible  <bruno@clisp.org>
46247
46248         Ensure automatic ordering between gl_LOCK and gl_ARGP.
46249         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
46250         the "early" section as well.
46251
46252 2006-01-11  Bruno Haible  <bruno@clisp.org>
46253
46254         Avoid "ar: no archive members specified" error on MacOS X.
46255         * gnulib-tool (func_modules_add_dummy): New function.
46256         (func_import, func_create_testdir): Invoke it.
46257
46258 2006-01-11  Bruno Haible  <bruno@clisp.org>
46259
46260         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
46261         with $auxdir in AC_CONFIG_FILES statements.
46262
46263 2006-01-11  Bruno Haible  <bruno@clisp.org>
46264
46265         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46266         Initialize also noinst_HEADERS to empty.
46267
46268 2006-01-11  Bruno Haible  <bruno@clisp.org>
46269
46270         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
46271         variables.
46272         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
46273         autoreconf.
46274
46275 2006-01-11  Bruno Haible  <bruno@clisp.org>
46276
46277         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
46278         overridable by the user.
46279         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46280
46281 2006-01-10  Simon Josefsson  <jas@extundo.com>
46282
46283         * modules/sys_socket: New file.
46284
46285 2006-01-10  Simon Josefsson  <jas@extundo.com>
46286
46287         * m4/sys_socket_h.m4: New file.
46288
46289 2006-01-10  Simon Josefsson  <jas@extundo.com>
46290
46291         * lib/socket_.h: New file.
46292
46293 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46294
46295         * modules/readutmp (Maintainer): Add myself.
46296
46297 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46298
46299         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
46300         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
46301         People who are still concerned with buggy memcmp implementations
46302         can invoke gl_FUNC_MEMCMP themselves.
46303
46304 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46305
46306         * lib/regex_internal.h (BITSET_WORD_BITS):
46307         Work around a bug in 64-bit PGC (before version 6.1-2), where the
46308         preprocessor mishandles large unsigned values as if they were signed.
46309         Problem reported by Claudio Fontana in
46310         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
46311
46312 2006-01-10  Jim Meyering  <jim@meyering.net>
46313
46314         Avoid the double-free (first in fts_read, second in fts_close) that
46315         would occur when an `active' directory is made inaccessible (e.g.,
46316         via chmod a-x) during a traversal.
46317         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46318         before returning.  Reproduce this failure by
46319         mkdir -p a/b; cd a; chmod a-x . b
46320         Reported by Stavros Passas.
46321
46322         Sync from coreutils.
46323         * lib/sha1.c: Tweak grammar in a comment.
46324
46325 2006-01-10  Jim Meyering  <jim@meyering.net>
46326
46327         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
46328         Patch by Joerg Sonnenberger.
46329
46330 2006-01-10  Bruno Haible  <bruno@clisp.org>
46331
46332         * modules/readutmp: Depend on module free.
46333         * modules/strtok_r: Depend on module restrict.
46334
46335 2006-01-10  Bruno Haible  <bruno@clisp.org>
46336
46337         * modules/gettext (configure.ac): Add an invocation of
46338         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
46339
46340 2006-01-10  Bruno Haible  <bruno@clisp.org>
46341
46342         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
46343         Reported by Werner Lemberg <wl@gnu.org>.
46344
46345 2006-01-10  Bruno Haible  <bruno@clisp.org>
46346
46347         * lib/localcharset.c: Update from GNU gettext.
46348
46349 2006-01-10  Bruno Haible  <bruno@clisp.org>
46350
46351         * lib/argp.h (__const): Remove macro. Use const instead.
46352         * lib/argp-fmtstream.h (__const): Likewise.
46353         * lib/glob_.h (__const): Remove macro.
46354         * lib/glob-libc.h: Use const instead of __const.
46355
46356 2006-01-10  Bruno Haible  <bruno@clisp.org>
46357
46358         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
46359         variable.
46360         Needed to avoid an automake error regarding the 'gettext' module.
46361
46362 2006-01-09  Simon Josefsson  <jas@extundo.com>
46363
46364         * modules/inet_ntop (Depends-on): Add restrict.
46365
46366 2006-01-09  Simon Josefsson  <jas@extundo.com>
46367
46368         * modules/gc-rijndael-tests (License): Put under LGPL.
46369
46370         * modules/gc-des-tests (License): Likewise.
46371
46372         * modules/gc-arcfour-tests (License): Likewise.
46373
46374         * modules/gc-arctwo-tests (License): Likewise.
46375
46376         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
46377
46378         * modules/gc-hmac-sha1-tests (Files): Likewise.
46379
46380         * modules/gc-hmac-md5-tests (License): Likewise.
46381
46382         * modules/gc-sha1-tests (License): Likewise.
46383
46384         * modules/gc-md5-tests (License): Likewise.
46385
46386         * modules/gc-md4-tests (License): Likewise.
46387
46388         * modules/gc-md2-tests (License): Likewise.
46389
46390         * modules/gc-tests (License): Likewise.
46391
46392         * modules/des-tests (License): Likewise.
46393
46394         * modules/md4-tests (License): Likewise.
46395
46396         * modules/md2-tests (License): Likewise.
46397
46398 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46399
46400         Sync from coreutils:
46401
46402         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
46403         * modules/lib-ignore: New file.
46404         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
46405         chdir-safer.m4, lchmod.m4.
46406         * modules/openat: Add mkdirat.c, openat-priv.h.
46407
46408 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46409
46410         Sync from coreutils.
46411         * m4/lib-ignore.m4: New file.
46412         * m4/lchmod.m4: New file.
46413
46414 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46415
46416         Sync from coreutils.
46417         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
46418         for write access: POSIX says that must fail.
46419         * lib/fts.c (diropen): Likewise.
46420         * lib/save-cwd.c (save_cwd): Likewise.
46421         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
46422         well, for minor improvements on hosts that lack O_DIRECTORY.
46423         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
46424         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
46425         Fall back on chown if open failed with EACCES.
46426
46427         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
46428         Report an error at compile-time if only a 1-second nominal clock
46429         resolution is found.
46430
46431         * lib/lchmod.h: New file.
46432         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
46433         (make_dir_parents): Use lchown rather than chown, and
46434         lchmod rather than chmod.
46435
46436         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
46437         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
46438         "proc" reported by n0dalus.
46439
46440         * lib/mountlist.c: Include <limits.h>.
46441         (dev_from_mount_options)
46442         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
46443         New function.  It no longer assumes "dev=" has the System V meaning
46444         on Linux (since it doesn't).  It also parses "dev=" more carefully.
46445         (read_file_system_list)
46446         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
46447         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
46448         dev= in that case.
46449
46450         * lib/posixtm.h (PDS_PRE_2000): New macro.
46451         * lib/posixtm.c (year): Arg is now syntax_bits rather than
46452         allow_century.  All usages changed.  Reject dates outside the range
46453         1969-1999 if PDS_PRE_2000 is used.
46454
46455 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46456
46457         Sync from coreutils.
46458         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
46459         (Time of day items): Mention the possibility of leap seconds.
46460         Problem reported by Dr. David Alan Gilbert.
46461
46462 2006-01-09  Jim Meyering  <jim@meyering.net>
46463
46464         Sync from coreutils.
46465
46466         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
46467
46468         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
46469
46470         * lib/modechange.c (mode_compile): Reject an invalid mode string
46471         that starts with an octal digit.  From Andreas Gruenbacher.
46472
46473         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
46474         and dup to open_safer and dup_safer, respectively.
46475         (openat_permissive): Fix typo in comment.
46476
46477         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
46478         "gettext.h"; either no longer needed or are guaranteed by openat.h.
46479         (_): Remove; no longer needed.
46480         (openat): Renamed from rpl_openat; no need for rpl_openat
46481         since openat.h renames openat for us.
46482         Replace most of the body with a call to openat_permissive,
46483         to avoid duplicate code.
46484         Port to (probably hypothetical) environments were mode_t is
46485         wider than int.
46486         (openat_permissive): Require mode arg, so that we can check
46487         types better.  Put it just after flags.  Change cwd failure
46488         indicator from pointer-to-bool to pointer-to-errno-value.
46489         All callers changed.
46490         Invoke openat_save_fail and/or openat_restore_fail if
46491         cwd_errno is null, so that openat can call us.
46492         (openat_permissive, fdopendir, fstatat, unlinkat):
46493         Simplify errno handling to avoid some duplicate code,
46494         as it's OK to set errno on success.
46495         * lib/openat.h: Revamp code so that function macros depend on
46496         __OPENAT_PREFIX only, not also on AT_FDCWD.
46497         (openat_ro): Remove.  Caller changed to use openat_permissive.
46498         (openat_permissive): Now a macro, if not a function.
46499         (openat_restore_fail, openat_save_fail): Now always functions,
46500         since mkdirat needs them even if __OPENAT_PREFIX is defined.
46501
46502         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
46503         and openat.c.
46504         * lib/mkdirat.c: Include openat-priv.h.
46505         Remove definitions of macros defined therein.
46506         * lib/openat.c: Likewise.
46507
46508         * lib/mkdirat.c (mkdirat): New file and function.
46509         * lib/openat.h (mkdirat): Declare.
46510
46511         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
46512
46513         * lib/openat.h (openat_permissive): Declare.
46514         (openat_ro): Define.
46515
46516         * lib/openat.c (EXPECTED_ERRNO): New macro.
46517         (openat_permissive): New function -- used in remove.c rewrite.
46518         (all functions): Set errno just before returning, only if there
46519         was an actual failure.
46520         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
46521
46522         Emulate openat-family functions using Linux's procfs, if possible.
46523         Idea and some code based on Ulrich Drepper's glibc changes.
46524
46525         * lib/openat.c: (BUILD_PROC_NAME): New macro.
46526         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
46527         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
46528         before falling back on save_cwd and restore_cwd.
46529         (fdopendir, fstatat, unlinkat): Likewise.
46530
46531         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
46532         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
46533
46534         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
46535         as second argument to va_arg.  Otherwise, some versions of gcc
46536         warn that `if this code is reached, the program will abort'.
46537
46538 2006-01-09  Jim Meyering  <jim@meyering.net>
46539
46540         Sync from coreutils.
46541         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
46542         Require openat-priv.h.
46543
46544 2006-01-09  Bruno Haible  <bruno@clisp.org>
46545
46546         * modules/strnlen (Include): Use strnlen.h.
46547
46548 2006-01-09  Bruno Haible  <bruno@clisp.org>
46549
46550         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
46551
46552 2006-01-09  Bruno Haible  <bruno@clisp.org>
46553
46554         * lib/sysexit_.h (EX_OK): New macro.
46555         Suggested by Martin Lambers <marlam@marlam.de>.
46556
46557 2006-01-09  Bruno Haible  <bruno@clisp.org>
46558
46559         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
46560         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
46561
46562 2006-01-09  Bruno Haible  <bruno@clisp.org>
46563
46564         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
46565         numbers.
46566
46567 2006-01-09  Bruno Haible  <bruno@clisp.org>
46568
46569         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
46570         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
46571         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
46572         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
46573
46574 2006-01-09  Bruno Haible  <bruno@clisp.org>
46575
46576         * build-aux/javacomp.sh.in: New file, moved from lib/.
46577         * modules/javacomp-script (Files): Update.
46578         (configure.ac): Add AC_CONFIG_FILES invocation.
46579         (EXTRA_DIST): Remove variable.
46580
46581         * build-aux/javaexec.sh.in: New file, moved from lib/.
46582         * modules/javaexec (Files): Update.
46583         (configure.ac): Add AC_CONFIG_FILES invocation.
46584         (EXTRA_DIST): Remove javaexec.sh.in.
46585
46586         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
46587         * modules/csharpcomp-script (Files): Update.
46588         (configure.ac): Add AC_CONFIG_FILES invocation.
46589         (EXTRA_DIST): Remove variable.
46590
46591         * build-aux/csharpexec.sh.in: New file, moved from lib/.
46592         * modules/csharpexec (Files): Update.
46593         (configure.ac): Add AC_CONFIG_FILES invocation.
46594         (EXTRA_DIST): Remove csharpexec.sh.in.
46595
46596 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
46597
46598         Sync from coreutils.
46599
46600         Add POSIX ACL support
46601         * lib/acl.h (copy_acl, set_acl): Add declarations.
46602         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
46603         systems other than Linux.
46604         (chmod_or_fchmod): New function: use fchmod when possible,
46605         and chmod otherwise.
46606         (file_has_acl): Add a POSIX ACL implementation, with a
46607         Linux-specific subcase.
46608         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
46609         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
46610         acls are unsupported.
46611         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
46612         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
46613         are unsupported.
46614
46615 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
46616
46617         Sync from coreutils.
46618         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
46619
46620 2006-01-07  Bruno Haible  <bruno@clisp.org>
46621
46622         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
46623         gl_EARLY.
46624
46625 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
46626
46627         * lib/strftime.c (tzname): Don't declare if it is already #defined.
46628         Problem reported for Mingw by Mark Junker.
46629
46630 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
46631
46632         * README: Gnulib normally doesn't generate a tarball.
46633
46634 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
46635
46636         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
46637         long int, not int, for nanosecond counts, so that people who are
46638         used to POSIX struct timespec won't be surprised.  Reported by Jim
46639         Meyering.
46640
46641 2005-12-28  Bruno Haible  <bruno@clisp.org>
46642
46643         * build-aux/config.rpath: Update from GNU gettext.
46644
46645 2005-12-16  Jim Meyering  <jim@meyering.net>
46646
46647         * modules/fprintftime: New module.
46648         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
46649
46650 2005-12-16  Jim Meyering  <jim@meyering.net>
46651
46652         * m4/fprintftime.m4: New file.
46653
46654 2005-12-16  Jim Meyering  <jim@meyering.net>
46655
46656         * lib/fprintftime.c, lib/fprintftime.h: New files.
46657
46658 2005-12-15  Simon Josefsson  <jas@extundo.com>
46659
46660         * modules/socklen (configure.ac): Fix M4 macro name, to align with
46661         new m4/socklen.m4.
46662
46663 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46664
46665         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
46666         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
46667
46668 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46669
46670         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
46671         * lib/argp-help.c (fill_in_uparams): Check if the constructed
46672         struct uparams is valid. Fall back to the default values if it is
46673         not.
46674
46675 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
46676
46677         * modules/argp (Files): Add argp-pin.c
46678         (Depends-on): dirname
46679         (lib_SOURCES): Add argp-pin.c
46680
46681 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
46682
46683         * m4/argp.m4:  Check if program_invocation_name and
46684         program_invocation_short_name are declared and define appropriate
46685         macros if they are not.
46686
46687 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
46688
46689         * lib/argp-help.c (__argp_base_name): New function
46690         (__argp_short_program_name): Rewrite using __argp_base_name
46691         * lib/argp-namefrob.h: Define program_invocation_name and
46692         program_invocation_short_name if requested
46693         (__argp_base_name): Add prototype
46694         * lib/argp-parse.c (argp_def): Use gettext wrappers
46695         (argp_default_parser): Use __argp_base_name
46696         * lib/argp-pin.c: New file. Defines program_invocation_name and
46697         program_invocation_short_name on systems that lack them.
46698
46699 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
46700
46701         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
46702         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
46703         porting problem reported by Georg Schwarz in
46704         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
46705
46706 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
46707
46708         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
46709         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
46710         porting problem reported by Georg Schwarz in
46711         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
46712
46713 2005-12-05  Bruno Haible  <bruno@clisp.org>
46714
46715         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
46716         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
46717         Reported by Mark Junker <mjscod@gmx.de>.
46718
46719 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
46720
46721         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
46722         Use implementation from Albert Chin, with some
46723         comments/corrections by Stepan Kasal and myself.
46724
46725 2005-12-02  Bruno Haible  <bruno@clisp.org>
46726
46727         * gnulib-tool (func_import): Accept GPLed build tool modules when
46728         --lgpl is given.
46729         * modules/csharpcomp-script: New file.
46730         * modules/csharpcomp: Depend on it.
46731         * modules/javacomp-script: New file.
46732         * modules/javacomp: Depend on it.
46733         Suggested by Simon Josefsson.
46734
46735 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
46736
46737         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
46738         statement, to work around an HP-UX 10.20 compiler bug reported by
46739         Peter O'Gorman.
46740
46741 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
46742
46743         * modules/savedir (Depends-on): Add openat.
46744
46745 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
46746
46747         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
46748         (uintmax_t) [defined uintmax_t]: Do not declare.
46749         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
46750         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
46751         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
46752         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
46753         sake of portability to weird hosts that C allows (though we don't
46754         know of any practical examples).
46755
46756         * lib/savedir.h (fdsavedir): New decl.
46757         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
46758         contains most of the former guts of savedir.
46759         (savedir): Use savedirstream.
46760         Include "openat.h".
46761
46762 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
46763
46764         * modules/obstack (Files): Add m4/ulonglong.m4.
46765         Problem reported by Davide Angelocola.
46766
46767 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
46768
46769         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
46770         coreutils no longer futzes with rounding modes.
46771
46772 2005-11-14  Jim Meyering  <jim@meyering.net>
46773
46774         * lib/mkstemp-safer.c: Include <config.h>, required for possible
46775         replacement of mkstemp.
46776
46777 2005-11-10  Simon Josefsson  <jas@extundo.com>
46778
46779         * lib/readline.c: Remove EOL.
46780
46781 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
46782
46783         * modules/gethrxtime (Depends-on): Add gettime.
46784
46785 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
46786
46787         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
46788         or gettimeofday; no longer needed.
46789
46790 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
46791
46792         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
46793         time business.
46794         (gethrxtime) [! (HAVE_NANOUPTIME
46795         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
46796         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
46797         our own approximation.
46798
46799 2005-11-08  Eric Blake  <ebb9@byu.net>
46800
46801         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
46802
46803 2005-11-08  Eric Blake  <ebb9@byu.net>
46804
46805         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
46806
46807 2005-11-04  Bruno Haible  <bruno@clisp.org>
46808
46809         * gnulib-tool: Implement --update mode.
46810
46811 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
46812
46813         Fix porting problem reported by Theodoros V. Kalamatianos.
46814         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
46815         Don't assume that futimes failing means we must fail.
46816
46817 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
46818
46819         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
46820         variables to suggest the intended function of the PATH_MAX check.
46821
46822 2005-10-30  Kean Johnston  <jkj@sco.com>
46823
46824         Trivial changes to support SCO systems.
46825         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
46826         as PATH_MAX.
46827         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
46828         where __ptr is null when no I/O is pending.
46829
46830 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
46831
46832         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
46833         leave errno alone.  Problem reported by Dmitry V. Levin.
46834
46835 2005-10-28  Simon Josefsson  <jas@extundo.com>
46836
46837         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
46838         Test more.
46839
46840         * tests/test-gc-md2.c, tests/test-md2.c: New files.
46841
46842         * modules/md2, modules/md2-tests: New files.
46843
46844 2005-10-28  Simon Josefsson  <jas@extundo.com>
46845
46846         * m4/inet_ntop.m4: More tests.
46847
46848         * m4/gc-md2.m4, md2.m4: New file.
46849
46850 2005-10-28  Simon Josefsson  <jas@extundo.com>
46851
46852         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
46853         "restrict" keywords, as per POSIX.  Protect the function
46854         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
46855         Don't use K&R prototypes.  Check the sprintf return values.
46856         Re-define EAFNOSUPPORT if not present.  Indent.
46857
46858         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
46859         suggested by Bruno Haible <bruno@clisp.org>.
46860
46861         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
46862
46863         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
46864
46865         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
46866         libgcrypt).
46867
46868         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
46869
46870         * lib/md2.h, lib/md2.c: New files.
46871
46872 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
46873
46874         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
46875         errno alone.  Problem reported by Frederic Jolliton.
46876
46877 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
46878
46879         * modules/verify (License): Change from GPL to LGPL.  This is a
46880         tiny module and there are apparently near-equivalents that are
46881         under the BSD license.
46882
46883 2005-10-24  Simon Josefsson  <jas@extundo.com>
46884
46885         * modules/sha1: Relicense to LGPL.
46886
46887 2005-10-24  Simon Josefsson  <jas@extundo.com>
46888
46889         * lib/md4.h: Shrink buffer size, now that we changed the type.
46890
46891 2005-10-23  Simon Josefsson  <jas@extundo.com>
46892
46893         * gnulib-tool (func_import): Fix --tests-base.
46894
46895 2005-10-22  Simon Josefsson  <jas@extundo.com>
46896
46897         * modules/arcfour (Depends-on): Need stdint.
46898
46899 2005-10-22  Simon Josefsson  <jas@extundo.com>
46900
46901         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
46902         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
46903
46904 2005-10-22  Simon Josefsson  <jas@extundo.com>
46905
46906         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
46907         suggested by Bruno Haible <bruno@clisp.org>.
46908
46909 2005-10-22  Simon Josefsson  <jas@extundo.com>
46910
46911         * lib/crc.h: Include stddef.h, for size_t.
46912
46913 2005-10-22  Simon Josefsson  <jas@extundo.com>
46914
46915         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
46916         arcfour_context struct (simplify test vector testing in GNU
46917         Shishi).
46918
46919 2005-10-21  Simon Josefsson  <jas@extundo.com>
46920
46921         * modules/des, modules/des-tests: New files.
46922
46923         * modules/gc-des, modules/gc-des-tests: New files.
46924
46925         * tests/test-des.c, tests/test-gc-des.c: New file.
46926
46927 2005-10-21  Simon Josefsson  <jas@extundo.com>
46928
46929         * modules/arctwo, modules/arctwo-tests: New files.
46930
46931         * tests/test-arctwo.c: New file.
46932
46933         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
46934
46935         * tests/test-gc-arctwo.c: New file.
46936
46937 2005-10-21  Simon Josefsson  <jas@extundo.com>
46938
46939         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
46940         Bruno Haible <bruno@clisp.org>.
46941
46942         * m4/gc-des.m4: New file.
46943
46944 2005-10-21  Simon Josefsson  <jas@extundo.com>
46945
46946         * m4/arctwo.m4: New file.
46947
46948         * m4/gc-arctwo.m4: New file.
46949
46950 2005-10-21  Simon Josefsson  <jas@extundo.com>
46951
46952         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
46953         block.
46954
46955 2005-10-21  Simon Josefsson  <jas@extundo.com>
46956
46957         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
46958         <bruno@clisp.org>.
46959
46960         * lib/hmac-sha1.c (hmac_sha1): Likewise.
46961
46962         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
46963         Bruno Haible <bruno@clisp.org>.
46964
46965         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
46966         <bruno@clisp.org>.
46967
46968 2005-10-21  Simon Josefsson  <jas@extundo.com>
46969
46970         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
46971
46972 2005-10-21  Simon Josefsson  <jas@extundo.com>
46973
46974         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
46975
46976 2005-10-21  Simon Josefsson  <jas@extundo.com>
46977
46978         * lib/des.h, lib/des.c: New files.
46979
46980         * lib/gc-gnulib.c: Support DES.c
46981
46982 2005-10-21  Simon Josefsson  <jas@extundo.com>
46983
46984         * lib/arctwo.h, lib/arctwo.c: New files.
46985
46986         * lib/gc-gnulib.c: Support ARCTWO.
46987
46988 2005-10-21  Simon Josefsson  <jas@extundo.com>
46989
46990         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
46991         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46992
46993 2005-10-21  Simon Josefsson  <jas@extundo.com>
46994
46995         * gnulib-tool (func_import, func_create_testdir): Define automake
46996         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
46997         Makefile.am snippet),
46998         suggested by Bruno Haible <bruno@clisp.org>.
46999
47000         * modules/gc (Makefile.am): Use it.
47001
47002 2005-10-21  Bruno Haible  <bruno@clisp.org>
47003
47004         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
47005         patch.
47006
47007 2005-10-19  Simon Josefsson  <jas@extundo.com>
47008
47009         * tests/test-gc-rijndael.c: New file.
47010
47011         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
47012
47013 2005-10-19  Simon Josefsson  <jas@extundo.com>
47014
47015         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
47016         interface too.
47017
47018 2005-10-19  Simon Josefsson  <jas@extundo.com>
47019
47020         * tests/test-gc-arcfour.c: New file.
47021
47022         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
47023
47024 2005-10-19  Simon Josefsson  <jas@extundo.com>
47025
47026         * modules/gc-md4, modules/gc-md4-tests: New file.
47027
47028         * tests/test-gc-md4.c: New file.
47029
47030 2005-10-19  Simon Josefsson  <jas@extundo.com>
47031
47032         * m4/gc-md4.m4: New file.
47033
47034 2005-10-19  Simon Josefsson  <jas@extundo.com>
47035
47036         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
47037         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
47038         <kasal@ucw.cz>.
47039
47040 2005-10-19  Simon Josefsson  <jas@extundo.com>
47041
47042         * m4/gc-arcfour.m4: New file.
47043
47044         * m4/gc-rijndael.m4: New file.
47045
47046 2005-10-19  Simon Josefsson  <jas@extundo.com>
47047
47048         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
47049
47050 2005-10-19  Simon Josefsson  <jas@extundo.com>
47051
47052         * lib/gc-gnulib.c: Support ARCFOUR.
47053
47054 2005-10-19  Simon Josefsson  <jas@extundo.com>
47055
47056         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
47057         support.
47058
47059         * lib/gc.h: Add ECB enum type.
47060
47061         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
47062
47063 2005-10-18  Simon Josefsson  <jas@extundo.com>
47064
47065         * tests/test-md5.c: New file.
47066
47067         * modules/md5-tests: New file.
47068
47069 2005-10-18  Simon Josefsson  <jas@extundo.com>
47070
47071         * tests/test-md4.c: New file.
47072
47073         * modules/md4, modules/md4-tests: New files.
47074
47075 2005-10-18  Simon Josefsson  <jas@extundo.com>
47076
47077         * m4/md4.m4: New file.
47078
47079 2005-10-18  Simon Josefsson  <jas@extundo.com>
47080
47081         * lib/md4.h, lib/md4.c: New files, based on md5.?.
47082
47083 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
47084
47085         * gnulib-tool (func_create_testdir): Omit the second check whether
47086         BUILT_SOURCES in nonempty.
47087
47088 2005-10-17  Simon Josefsson  <jas@extundo.com>
47089
47090         * tests/test-rijndael.c: New file.
47091
47092 2005-10-17  Simon Josefsson  <jas@extundo.com>
47093
47094         * modules/sha1: Depend on stdint instead of md5.
47095
47096         * modules/md5: Depend on stdint, remove uint32_t.
47097
47098 2005-10-17  Simon Josefsson  <jas@extundo.com>
47099
47100         * modules/gc-sha1-tests: New file.
47101
47102         * tests/test-gc-sha1.c: New file.
47103
47104 2005-10-17  Simon Josefsson  <jas@extundo.com>
47105
47106         * m4/md5.m4: Remove call to uint32_t.m4.
47107
47108 2005-10-17  Simon Josefsson  <jas@extundo.com>
47109
47110         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
47111
47112         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
47113         md5.h.
47114
47115         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
47116
47117         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
47118
47119 2005-10-17  Simon Josefsson  <jas@extundo.com>
47120
47121         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
47122
47123 2005-10-17  Simon Josefsson  <jas@extundo.com>
47124
47125         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
47126
47127 2005-10-17  Simon Josefsson  <jas@extundo.com>
47128
47129         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
47130
47131         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
47132
47133 2005-10-17  Bruno Haible  <bruno@clisp.org>
47134
47135         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
47136         that it can also be used in a test.
47137
47138 2005-10-16  Bruno Haible  <bruno@clisp.org>
47139
47140         * gnulib-tool (func_emit_tests_Makefile_am): Also define
47141         TESTS_ENVIRONMENT, so that individual tests can augment it.
47142
47143         * gnulib-tool (func_create_testdir): Use an intermediate target for
47144         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
47145         macros, like $(ALLOCA_H), which cannot be passed through the command
47146         line.
47147
47148 2005-10-15  Simon Josefsson  <jas@extundo.com>
47149
47150         * modules/rijndael-tests: New file.
47151
47152         * modules/rijndael: New file.
47153
47154 2005-10-15  Simon Josefsson  <jas@extundo.com>
47155
47156         * m4/rijndael.m4: New file.
47157
47158 2005-10-15  Simon Josefsson  <jas@extundo.com>
47159
47160         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
47161
47162         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
47163
47164 2005-10-14  Simon Josefsson  <jas@extundo.com>
47165
47166         * tests/test-arcfour.c: New file.
47167
47168         * modules/arcfour, modules/arcfour-tests: New files.
47169
47170 2005-10-14  Simon Josefsson  <jas@extundo.com>
47171
47172         * m4/arcfour.m4: New file.
47173
47174 2005-10-14  Simon Josefsson  <jas@extundo.com>
47175
47176         * lib/arcfour.h, lib/arcfour.c: New files.
47177
47178 2005-10-14  Roland McGrath  <roland@redhat.com>
47179
47180         Import from libc.  [BZ #1331]
47181         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
47182         macro argument.
47183         Reported by Matej Vela <vela@debian.org>.
47184
47185 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
47186
47187         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
47188         include <wchar.h>; no longer needed.
47189
47190 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
47191
47192         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
47193
47194 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
47195         and  Ulrich Drepper  <drepper@redhat.com>
47196
47197         Import from libc.
47198         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
47199         instead of inline stream orientation test and two separate
47200         function calls.  Pay no attention to USE_IN_LIBIO.
47201
47202 2005-10-13  Simon Josefsson  <jas@extundo.com>
47203
47204         * modules/gc-hmac-md5-tests: New file.
47205
47206         * tests/test-gc-hmac-sha1.c: New file.
47207
47208         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
47209
47210         * modules/gc-hmac-md5-tests: New file.
47211
47212         * tests/test-gc-md5.c: New file.
47213
47214         * modules/gc-md5-tests: New file.
47215
47216 2005-10-13  Simon Josefsson  <jas@extundo.com>
47217
47218         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
47219         Move memory allocation outside of loop.
47220
47221 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
47222
47223         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
47224         intermediate directory is in a read-only file system.  Problem
47225         reported by Eric Blake.
47226
47227 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
47228
47229         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
47230
47231 2005-10-12  Simon Josefsson  <jas@extundo.com>
47232
47233         * tests/test-hmac-sha1.c: New file.
47234
47235         * modules/hmac-sha1-tests: New file.
47236
47237         * modules/hmac-sha1: New file.
47238
47239 2005-10-12  Simon Josefsson  <jas@extundo.com>
47240
47241         * modules/gc-sha1: New file.
47242
47243 2005-10-12  Simon Josefsson  <jas@extundo.com>
47244
47245         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
47246
47247         * tests/test-gc-pbkdf2-sha1.c: New file.
47248
47249 2005-10-12  Simon Josefsson  <jas@extundo.com>
47250
47251         * modules/gc-md5, modules/gc-hmac-md5: New files.
47252
47253         * modules/gc (Files): Remove md5, memxor and hmac files.
47254
47255 2005-10-12  Simon Josefsson  <jas@extundo.com>
47256
47257         * m4/gc-pbkdf2-sha1.m4: New file.
47258
47259         * m4/gc-hmac-sha1.m4: New file.
47260
47261         * m4/gc-sha1: New file.
47262
47263         * m4/hmac-sha1.m4: New file.
47264
47265 2005-10-12  Simon Josefsson  <jas@extundo.com>
47266
47267         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
47268
47269         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
47270
47271 2005-10-12  Simon Josefsson  <jas@extundo.com>
47272
47273         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
47274         suggested by Bruno Haible <bruno@clisp.org>.
47275
47276 2005-10-12  Simon Josefsson  <jas@extundo.com>
47277
47278         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
47279
47280 2005-10-12  Simon Josefsson  <jas@extundo.com>
47281
47282         * lib/gc-pbkdf2-sha1.c: New file.
47283
47284         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
47285
47286 2005-10-12  Simon Josefsson  <jas@extundo.com>
47287
47288         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
47289
47290         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
47291
47292 2005-10-12  Simon Josefsson  <jas@extundo.com>
47293
47294         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
47295         GC_USE_HMAC_MD5, respectively.
47296
47297         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
47298         (gc_md5): Fix typo.
47299
47300         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
47301
47302         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
47303
47304         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
47305
47306 2005-10-12  Bruno Haible  <bruno@clisp.org>
47307
47308         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
47309         Reported by Stepan Kasal <kasal@ucw.cz>.
47310
47311 2005-10-11  Simon Josefsson  <jas@extundo.com>
47312
47313         * tests/test-crc.c: New file.
47314
47315         * modules/crc, modules/crc-tests: New files.
47316
47317 2005-10-11  Simon Josefsson  <jas@extundo.com>
47318
47319         * m4/crc.m4: New file.
47320
47321 2005-10-11  Simon Josefsson  <jas@extundo.com>
47322
47323         * lib/gc.h: Add gc_hash and gc_hash_buffer.
47324
47325         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
47326
47327         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
47328
47329 2005-10-11  Simon Josefsson  <jas@extundo.com>
47330
47331         * lib/crc.h, lib/crc.c: New files.
47332
47333         * lib/gc.h (gc_hash_buffer): Add doc.
47334
47335 2005-10-11  Bruno Haible  <bruno@clisp.org>
47336
47337         * modules/c-strcasestr: New file.
47338         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
47339
47340 2005-10-11  Bruno Haible  <bruno@clisp.org>
47341
47342         * modules/c-strcase: New file.
47343         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
47344
47345 2005-10-11  Bruno Haible  <bruno@clisp.org>
47346
47347         * lib/strcasecmp.c: Include limits.h.
47348         (strcasecmp): Avoid integer overflow on exotic platforms.
47349         * lib/strncasecmp.c: Include limits.h.
47350         (strncasecmp): Avoid integer overflow on exotic platforms.
47351         Reported by Paul Eggert.
47352
47353 2005-10-11  Bruno Haible  <bruno@clisp.org>
47354
47355         * lib/c-strcasestr.h: New file, from GNU gettext.
47356         * lib/c-strcasestr.c: New file, from GNU gettext.
47357
47358 2005-10-11  Bruno Haible  <bruno@clisp.org>
47359
47360         * lib/c-strcase.h: New file, from GNU gettext.
47361         * lib/c-strcasecmp.c: New file, from GNU gettext.
47362         * lib/c-strncasecmp.c: New file, from GNU gettext.
47363
47364 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
47365
47366         * modules/mempcpy (License): GPL -> LGPL.
47367         * modules/strchrnul (License): Likewise.
47368         * modules/sysexits (License): Likewise.
47369
47370 2005-10-08  Simon Josefsson  <jas@extundo.com>
47371
47372         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
47373
47374 2005-10-07  Simon Josefsson  <jas@extundo.com>
47375
47376         * m4/memxor.m4: Remove gl_C_RESTRICT call.
47377
47378 2005-10-06  Simon Josefsson  <jas@extundo.com>
47379
47380         * tests/test-hmac-md5.c: New file.
47381
47382         * modules/hmac-md5-tests: New file.
47383
47384         * modules/hmac-md5: New file.
47385
47386 2005-10-06  Simon Josefsson  <jas@extundo.com>
47387
47388         * m4/hmac-md5.m4: New file.
47389
47390         * m4/memxor.m4: Require gl_C_RESTRICT.
47391
47392 2005-10-06  Simon Josefsson  <jas@extundo.com>
47393
47394         * lib/memxor.c (memxor): Avoid casts and warnings.
47395
47396 2005-10-06  Simon Josefsson  <jas@extundo.com>
47397
47398         * lib/hmac-md5.c: New file.
47399
47400         * lib/hmac.h: New file.
47401
47402 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
47403
47404         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
47405         promotes to int, not unsigned int, to catch the AIX 5.3
47406         compiler bug.
47407
47408 2005-10-05  Simon Josefsson  <jas@extundo.com>
47409
47410         * modules/memxor: New file.
47411
47412         * modules/iconv (Files): Move config.rpath to havelib, it is used
47413         there.
47414
47415         * modules/havelib (Files): Add config.rpath.
47416
47417 2005-10-05  Simon Josefsson  <jas@extundo.com>
47418
47419         * m4/memxor.m4: New file.
47420
47421 2005-10-05  Simon Josefsson  <jas@extundo.com>
47422
47423         * lib/memxor.c (memxor): Fix compiler error.
47424
47425         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
47426         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
47427
47428         * lib/memxor.h, lib/memxor.c: New files.
47429
47430         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
47431         we assume all systems have it, suggested by Jim Meyering
47432         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
47433         any systems lack sys/socket.h; mingw32 is known to lack it, but we
47434         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
47435         same reasons.
47436
47437 2005-10-05  Simon Josefsson  <jas@extundo.com>
47438
47439         * config/srclist.txt: Add glibc bug 1423 for md5.h.
47440
47441 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
47442
47443         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
47444         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
47445         needed, since the source code now assumes these .h files.
47446
47447 2005-10-05  Derek Price  <derek@ximbiot.com>
47448
47449         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
47450
47451 2005-10-05  Bruno Haible  <bruno@clisp.org>
47452
47453         * modules/stdint (License): Change to LGPL.
47454
47455 2005-10-04  Simon Josefsson  <jas@extundo.com>
47456
47457         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
47458         D. Baushke" <mdb@gnu.org>.
47459
47460 2005-10-04  Bruno Haible  <bruno@clisp.org>
47461
47462         * lib/verify.h (verify_true): Provide alternative definition for C++.
47463
47464 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
47465
47466         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
47467         (SSIZE_MAX): New macro, if not already defined.
47468         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
47469         than 2 GiB.
47470
47471 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
47472
47473         Sync from coreutils.
47474         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
47475         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
47476         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
47477         ULLONG_MAX doesn't work with 2.7.2.1.
47478
47479 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
47480
47481         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
47482         From Ben Pfaff.
47483
47484         * modules/exclude (Depends-on): Depend on verify.
47485         * modules/strtoimax (Depends-on): Likewise.
47486         * modules/utimecmp (Depends-on): Likewise.
47487
47488 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
47489
47490         * lib/exclude.c: Include verify.h.
47491         (verify): Remove.  All callers changed to use verify.h's version.
47492         * lib/strtoimax.c: Likewise.
47493         * lib/utimecmp.c: Likewis.e
47494
47495         Sync from coreutils.
47496         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
47497         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
47498         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
47499         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
47500         bother returning ENOSYS if settimeofday or stime fails; just let
47501         them return whatever errno they want to return.
47502         * lib/utimens.c: Include unistd.h, for dup2.
47503         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
47504         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
47505
47506 2005-10-02  Jim Meyering  <jim@meyering.net>
47507
47508         Sync from coreutils.
47509         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
47510         from glibc-2.2.5 that fails for read-only files.
47511
47512 2005-10-02  Jim Meyering  <jim@meyering.net>
47513
47514         Sync from coreutils.
47515         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
47516         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
47517         `#if HAVE_CONFIG_H'.
47518         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
47519         Remove AT_FDCWD test.
47520         Do not consume the fd unless successful.
47521         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
47522         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
47523         block, so that we don't even try to compile it if settimeofday is
47524         available.  This works around a compilation failure on OSF1 V5.1,
47525         due to stime requiring a `long int*' while tv_sec is `int'.
47526
47527 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
47528
47529         Sync from coreutils.
47530         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
47531         against `yes', rather than just testing for nonempty.
47532
47533 2005-10-01  Simon Josefsson  <jas@extundo.com>
47534
47535         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
47536         and Darwin.
47537
47538         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
47539         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
47540         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
47541         freeaddrinfo and gai_strerror are declared by the POSIX headers.
47542         Check if struct addrinfo is declared.
47543
47544 2005-10-01  Simon Josefsson  <jas@extundo.com>
47545
47546         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
47547         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
47548         AI_* and EAI_* definitions.  Protect function declarations.
47549
47550 2005-10-01  Jim Meyering  <jim@meyering.net>
47551
47552         Sync from coreutils.
47553
47554         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
47555         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
47556         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
47557         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
47558         in the inet and nsl libraries.  Required on Solaris 5.7.
47559
47560 2005-10-01  Jim Meyering  <jim@meyering.net>
47561
47562         Sync from coreutils.
47563         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
47564         in the inet and nsl libraries.  Required on Solaris 5.7.
47565
47566 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
47567
47568         * lib/getdelim.c (getdelim): Remove unused variables.
47569
47570 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
47571
47572         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
47573         so that the code works even with ancient cpp.  Portability problem
47574         with GCC 2.7.2.1 reported by Thomas M.Ott.
47575
47576 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
47577
47578         * modules/regex (Depends-on): Add strcase.
47579
47580         * modules/gethostname (Licence): Change from GPL to LGPL, since
47581         gethostname.c is a trivial implementation of a standard library
47582         function.
47583         * modules/poll (License): Change from GPL to LGPL, since it's
47584         derived from LGPL code.
47585
47586 2005-09-27  Jim Meyering  <jim@meyering.net>
47587
47588         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
47589         HAVE_CONFIG_H.
47590
47591         * lib/intprops.h (signed_type_or_expr__): Define.
47592         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
47593         for unsigned types.
47594
47595 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
47596
47597         * lib/verify.h (verify_expr): Remove, replacing with:
47598         (verify_true): New macro that returns true instead of void.
47599         (verify_type__): Remove.
47600         (verify): Use verify_true rather than verify_type__.
47601
47602 2005-09-26  Bruno Haible  <bruno@clisp.org>
47603
47604         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
47605         is necessary.
47606         (lib_SOURCES): Remove mbchar.c.
47607         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
47608         (Files): Add m4/mbrtowc.m4.
47609         * modules/mbiter: Likewise.
47610         * modules/mbuiter: Likewise.
47611
47612 2005-09-26  Bruno Haible  <bruno@clisp.org>
47613
47614         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
47615         compile mbchar.c if they are not both present.
47616         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
47617         * m4/mbiter.m4 (gl_MBITER): Likewise.
47618         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
47619         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
47620         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
47621
47622 2005-09-25  Jim Meyering  <jim@meyering.net>
47623
47624         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
47625         also uses socklen_t.
47626
47627 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
47628
47629         * lib/utimens.c (ENOSYS): Define if not already defined.
47630         (futimens): Support having a null PATH if the file descriptor
47631         is nonnegative.
47632
47633         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
47634         Remove.
47635         (__attribute): Define to empty unless GCC 3.1 or later.
47636         This works around a core dump on OpenBSD 3.4, which has GCC
47637         2.95.3, which dumps core when given __attribute__(()).  It also
47638         simplifies other tests, since we really don't want to bother with
47639         worrying about which ancient version of GCC supported what.
47640         Original problem reported by Yoann Vandoorselaere, with part of
47641         the fix suggested by Derek Price.
47642
47643 2005-09-24  Jim Meyering  <jim@meyering.net>
47644
47645         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
47646         so we can once again use a positive bitfield width of 1 -- now we
47647         don't have to explain why we were using a bitfield width of 2.
47648
47649 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
47650
47651         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
47652         and similarly for the other external symbols.  Problem reported
47653         by James Gallager.
47654
47655         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
47656         bug reported by Jim Meyering.
47657
47658         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
47659         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
47660         not needed, since socklen is a prerequisite module.
47661
47662 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
47663
47664         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
47665         Problem reported by Eric Blake.
47666         (getaddrinfo): Initialize se so that it's not garbage.
47667         Redo internal storage allocation so that it doesn't make unportable
47668         assumptions about alignment.
47669         Fix a memory leak.
47670
47671         * lib/utimens.c (futimens): Use futimesat if available.
47672         Prefer it to futimes since it doesn't have the futimes bug.
47673
47674         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
47675         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
47676         Instead, declare a function that returns a pointer to an array,
47677         and use verify_type__ to declare the size of the array.
47678         Problem and germ of a solution reported by Bruno Haible.
47679         (verify_type__): Use 2, not 1, for bitfield size, to avoid
47680         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
47681
47682 2005-09-23  Jim Meyering  <jim@meyering.net>
47683
47684         Sync from coreutils.
47685         Correct build failure (socklen_t not defined) on at least
47686         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
47687         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
47688
47689 2005-09-23  Jim Meyering  <jim@meyering.net>
47690
47691         * modules/getaddrinfo (Depends-on): Add socklen.
47692
47693 2005-09-23  Bruno Haible  <bruno@clisp.org>
47694
47695         * tests/test-verify.c: New file.
47696
47697 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
47698
47699         Sync from coreutils.
47700
47701         * modules/argmatch (Depends-on): Add verify.
47702         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
47703         unistd-safer.
47704         * modules/save-cwd (Depends-on): Likewise.
47705
47706         * modules/openat (Files): Add lib/openat-die.c.
47707         (Depends-on): Remove error, exitfail.
47708         Add dirname.
47709
47710         * modules/verify: New file.
47711         * MODULES.html.sh (Diagnostics <assert.h>): New section,
47712         with "verify" module.
47713
47714 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
47715
47716         Sync from coreutils.
47717
47718         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
47719         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
47720         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
47721         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
47722         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
47723         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
47724         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
47725         Don't bother checking for string.h, stdlib.h, unistd.h.
47726         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
47727         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
47728         module's job.
47729         * m4/jm-macros.m4 (gl_MACROS): Likewise.
47730         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
47731
47732         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
47733         (gl_GETDATE): Use it.
47734
47735         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
47736
47737 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
47738
47739         Sync from coreutils.
47740
47741         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
47742         stat-time.h.
47743         * lib/argmatch.h: Include verify.h
47744         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
47745         (ARGMATCH_ASSERT): Remove; unused.
47746         * lib/canonicalize.c: Assume STDC_HEADERS.
47747         * lib/exclude.c: Include "strcase.h".
47748         * lib/regex_internal.h [!defined _LIBC]: Likewise.
47749         * lib/getusershell.c: Include stdio--.h rather than stdio.h
47750         and stdio-safer.h.
47751         (getusershell): Call fopen, not fopen_safer.
47752         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
47753         Do not include unistd-safer.h.
47754         (save_cwd): Don't call fd_safer; no longer needed
47755         now that we include fcntl--.h.
47756
47757         * lib/getdate.y (relative_time): New type.
47758         (RELATIVE_TIME_0): New constant.
47759         (parser_control): Use relative_time instead of doing it ourselves.
47760         (%union): Add new relative_time rel member.
47761         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
47762         Now typeless.
47763         (relunit, relunit_snumber): Now of type rel.
47764         (zone, rel, relunit, get_date): Adjust to above changes.
47765
47766         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
47767         Do not include unistd-safer.h.
47768         (getloadavg): Don't call fd_safer; no longer needed
47769         now that we include fcntl--.h.
47770
47771         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
47772         (make_dir_parents): Treat ENOSYS like EEXIST.
47773
47774         Improve quality of diagnostics on restore_cwd failure.
47775         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
47776         (make_dir_parents): Last arg is now int * (for errno), not bool *.
47777         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
47778         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
47779         each time through the loop.  Do not diagnose restore_cwd failure;
47780         that is the caller's job (and perhaps the caller does not care).
47781
47782         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
47783         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
47784         If the file already exists but is not a directory, don't bother
47785         to try to make its parents.
47786         Close potential file descriptor leak if we can't chdir("/") (!).
47787         Don't always return true if chdir($PWD) fails; return true only
47788         if the requested action was done successfully (except for the
47789         chdir($PWD)).
47790         Don't log final directory unless we actually made it.
47791         Refactor to avoid duplicate code to fix up permissions.
47792         Don't attempt to fix up parent permissions if chdir($PWD) fails.
47793
47794         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
47795         to make it a bit faster and (I hope) clearer.
47796         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
47797         Fix bug in formats like %2N.
47798
47799         * lib/verify.h: New file.
47800
47801 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
47802
47803         Sync from coreutils.
47804         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
47805
47806 2005-09-22  Jim Meyering  <jim@meyering.net>
47807
47808         Sync from coreutils.
47809
47810         * m4/lstat.m4 (gl_FUNC_LSTAT):
47811         Use AC_LIBSOURCES to require lstat.c and lstat.h.
47812         Remove obsolete comment.
47813         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
47814         * m4/xstrtod.m4: Likewise.
47815
47816         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
47817
47818 2005-09-22  Jim Meyering  <jim@meyering.net>
47819
47820         Sync from coreutils.
47821
47822         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
47823
47824         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
47825         the .tm_year member, since otherwise gcc-4.0 would now warn about
47826         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
47827
47828         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
47829         order to avoid an unsuppressible warning from gcc on 64-bit systems.
47830
47831         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
47832         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
47833         when run in a time zone for which daylight savings time is in effect
47834         for the starting date.
47835
47836         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
47837         stop us from restricting permissions of just-created absolute-named
47838         directories.
47839         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
47840         to restore initial working directory.
47841         * lib/mkdir-p.c (make_dir_parents): New parameter:
47842         different_working_dir, to tell caller if/when we change the working
47843         directory and are unable to return to the initial one.
47844         * lib/mkdir-p.h (make_dir_parents): Update prototype.
47845         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
47846         `return false'.  This fixes a bug introduced on 2004-07-30.
47847
47848         * lib/openat.c (fdopendir): Be sure to close the supplied
47849         file descriptor before returning.  This makes our replacement
47850         implementation a little closer to Solaris's, where fdopendir
47851         ties the file descriptor to the returned DIR* pointer.
47852         * lib/openat.c (unlinkat): New function.
47853         * lib/openat.h (unlinkat): Add prototype.
47854         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
47855         (openat_restore_fail): Rename from openat_restore_die.
47856         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
47857
47858         Provide an alternative to exiting immediately upon save_cwd or
47859         restore_cwd failure.  Now, an application can arrange e.g.,
47860         to perform a longjump in that case.
47861         * lib/openat.c: Include dirname.h.
47862         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
47863         (rpl_openat, fdopendir, fstatat): Call openat_save_die
47864         and openat_restore_die rather than calling error directly.
47865         Don't include "error.h" or "exitfail.h"; they're no longer needed.
47866
47867         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
47868         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
47869         define.
47870
47871         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
47872         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
47873                             int utc, int nanoseconds);
47874         Background:
47875         date should not have to allocate a megabyte of virtual memory to
47876         handle a format argument like +%1048575T.  When implemented with
47877         strftime, it must allocate such a buffer, use strftime to fill it
47878         in, print it, then free it.
47879         With fprintftime, it simply prints everything and exits.
47880         With no need for memory allocation, that's one fewer way to fail.
47881         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
47882         optional field width, not before, so we accept %9:z, not %:9z.
47883         (my_strftime): Be sure to use L_('x') for literals.
47884
47885         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
47886         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
47887         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
47888         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
47889         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
47890         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
47891         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
47892         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
47893         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
47894         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
47895         * lib/xgethostname.c, lib/xreadlink.c:
47896         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
47897
47898         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
47899         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
47900         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
47901         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
47902         and don't include <sys/file.h>).
47903
47904 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
47905
47906         Sync from coreutils.
47907
47908         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
47909         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
47910         [!LDAV_DONE]: Avoid unused variable warning.
47911
47912 2005-09-21  Bruno Haible  <bruno@clisp.org>
47913
47914         * lib/unicodeio.h (unicode_to_mb): New declaration.
47915
47916 2005-09-20  Derek Price  <derek@ximbiot.com>
47917
47918         * lib/getaddrinfo.c: Don't include <netdb.h> included from
47919         getaddrinfo.h.
47920
47921 2005-09-20  Bruno Haible  <bruno@clisp.org>
47922
47923         * gnulib-tool: Remove trailing slashes from the values specified for
47924         --source-base, --m4-base, --tests-base, --aux-dir.
47925         Suggested by Simon Josefsson <jas@extundo.com>.
47926
47927 2005-09-20  Bruno Haible  <bruno@clisp.org>
47928
47929         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
47930         func_modules_to_filelist, func_import, func_create_testdir): Make all
47931         sorting results locale-independent, so that gnulib-cache.m4 doesn't
47932         change when gnulib-tool is invoked in a different locale.
47933
47934 2005-09-19  Simon Josefsson  <jas@extundo.com>
47935
47936         * m4/socklen.m4: Fix typo.
47937
47938 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47939
47940         Use a consistent style for including <config.h>.
47941         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
47942         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
47943         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
47944         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
47945         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
47946         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
47947         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
47948         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
47949         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
47950         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
47951         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
47952         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
47953         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
47954         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
47955         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
47956         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
47957         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
47958         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
47959         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
47960         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
47961         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
47962         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
47963         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
47964         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
47965         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
47966         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
47967         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
47968         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
47969         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
47970         lib/xstrtoumax.c, lib/yesno.c:
47971         Standardize inclusion of config.h.
47972         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
47973         lib/inttostr.h:  Removed inclusion of config.h from header files.
47974         * lib/inttostr.c:  Adjusted in-tree users.
47975         * lib/timespec.h: Remove superfluous warning to include config.h.
47976         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
47977         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
47978         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
47979         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
47980         config.h with HAVE_CONFIG_H.
47981
47982 2005-09-19  Jim Meyering  <jim@meyering.net>
47983
47984         * modules/pathmax (License): Change to LGPL.
47985
47986 2005-09-19  Derek Price  <derek@ximbiot.com>
47987
47988         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
47989
47990 2005-09-19  Bruno Haible  <bruno@clisp.org>
47991
47992         * gnulib-tool (import): Provide default for --tests-base.
47993
47994 2005-09-19  Bruno Haible  <bruno@clisp.org>
47995
47996         * doc/quote.texi: New file, extracted from gnulib.texi.
47997         * doc/ctime.texi: New file, extracted from gnulib.texi.
47998         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
47999         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
48000         * doc/gnulib.texi: Include them.
48001
48002 2005-09-18  Bruno Haible  <bruno@clisp.org>
48003
48004         Portability fix.
48005         * gnulib-tool (func_readlink): New function.
48006         (func_ln_if_changed): Use it.
48007
48008 2005-09-18  Bruno Haible  <bruno@clisp.org>
48009
48010         * gnulib-tool: Support --with-tests also with --import.
48011         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
48012         (func_import): Use variables $testsbase and $inctests. Emit a
48013         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
48014         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
48015         SUBDIRS += $testsdir.
48016         (func_create_testdir): Update.
48017
48018 2005-09-18  Bruno Haible  <bruno@clisp.org>
48019
48020         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
48021         instead of $dry_run.
48022         (func_cp_if_changed, func_mv_if_changed): Remove functions.
48023         (func_ln_if_changed): Don't handle dry-run here.
48024         (func_import): In dry-run mode, detect more precisely which actions
48025         would be performed, and don't use "...ing" verbs.
48026
48027 2005-09-18  Bruno Haible  <bruno@clisp.org>
48028
48029         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
48030         (func_import): Use join on two temporary files instead of three nested
48031         loops, in order to determine which files are new or old.
48032
48033 2005-09-18  Bruno Haible  <bruno@clisp.org>
48034
48035         * gnulib-tool (func_import): Comment out code that spits out the
48036         new files with --dry-run.
48037
48038 2005-09-18  Bruno Haible  <bruno@clisp.org>
48039
48040         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
48041
48042 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
48043
48044         * lib/stat-time.h: New file.
48045         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
48046         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
48047         in a different way.
48048         (timespec_cmp): New function.
48049         * lib/utimecmp.c: Include stat-time.h.
48050         (SYSCALL_RESOLUTION): Depend on whether various struct stat
48051         members exist, not on the obsolescent ST_MTIM_NSEC.
48052         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
48053
48054 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
48055
48056         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
48057
48058 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
48059
48060         * MODULES.html.sh (File system functions): Add stat-time.
48061         * modules/stat-time: New file.
48062         * modules/timespec (Files): Remove m4/st_mtim.m4; this
48063         is now done in a different way, by the stat-time module.
48064         * modules/utimecmp (Depends-on): Add stat-time.
48065
48066 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48067
48068         * m4/st_mtim.m4: Remove.  Superseded by...
48069         * m4/stat-time.m4: New file.
48070         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
48071         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
48072
48073 2005-09-15  Derek Price  <derek@ximbiot.com>
48074
48075         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
48076
48077 2005-09-15  Derek Price  <derek@ximbiot.com>
48078
48079         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
48080         * lib/regex_internal.c: Ditto, using this...
48081         (__GNUC_PREREQ): ...new macro.
48082         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
48083         using...
48084         (__GNUC_PREREQ): ...this new macro.
48085
48086         * lib/strstr.h: Include string.h. Define strstr as a macro here.
48087
48088 2005-09-15  Derek Price  <derek@ximbiot.com>
48089             Paul Eggert  <eggert@cs.ucla.edu>
48090
48091         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
48092         changes, consolidating in...
48093         * lib/regex_internal.h: ...this file.
48094
48095 2005-09-13  Jim Meyering  <jim@meyering.net>
48096
48097         * lib/canon-host.c: Filter through gnu indent and reword comments
48098         slightly.
48099         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
48100
48101 2005-09-13  Derek Price  <derek@ximbiot.com>
48102
48103         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
48104         failure.
48105         Reported by Jim Meyering  <jim@meyering.net>.
48106
48107 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
48108
48109         * lib/base64.c: Typo.
48110         (base64_encode): Put b64str in initialized data section.
48111
48112 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
48113
48114         Merge glibc and coreutils changes into gnulib, plus a few
48115         extra fixes.
48116         * lib/md5.c: Use #error rather than a string.
48117         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
48118         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
48119         (__attribute__): Define to empty for non recent-GCC.
48120         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
48121         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
48122         Renamed from their non-__ counterparts, with new macros replacing
48123         them if not _LIBC.  Add __THROW attribute.
48124         (rol): Remove.
48125         (struct md5_ctx): Align buffer if using GCC.
48126         * lib/sha1.h (struct sha1_ctx): Likewise.
48127         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
48128         The old name was backwards.
48129         (NOTSWAP): Remove; not used.
48130         (rol): New macro, moved here from md5.h.
48131         (sha1_process_block): Remove a FIXME that doesn't make sense.
48132
48133 2005-09-12  Derek Price  <derek@ximbiot.com>
48134
48135         Return usable errors from canon-host.
48136         * lib/canon-host.h: New file.
48137         * lib/canon-host.c (canon_host): Wrap...
48138         (canon_host_r): ...this new function, which now relies exclusively on
48139         getaddrinfo.
48140         (ch_strerror): New function.
48141         (last_cherror): New global.
48142         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
48143         interface.
48144         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
48145         void *.
48146         (freeaddrinfo): Free ai->ai_canonname when set.
48147
48148 2005-09-12  Derek Price  <derek@ximbiot.com>
48149
48150         Make canon-host require getaddrinfo.
48151         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
48152         AC_LIBSOURCE canon-host.h.  Call...
48153         (gl_PREREQ_CANON_HOST): ...this new function, which requires
48154         gl_GETADDRINFO.
48155         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
48156
48157 2005-09-12  Derek Price  <derek@ximbiot.com>
48158
48159         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
48160         LGPL.
48161         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
48162
48163 2005-09-12  Derek Price  <derek@ximbiot.com>
48164
48165         * lib/gai_strerror.c: Include config.h when available.  Include
48166         getaddrinfo.h before other headers to test interface.
48167         Reported by Larry Jones <lawrence.jones@ugs.com>.
48168
48169 2005-09-12  Derek Price  <derek@ximbiot.com>
48170             Paul Eggert  <eggert@cs.ucla.edu>
48171
48172         * modules/glob (Files): Add glob-libc.h.
48173
48174 2005-09-12  Derek Price  <derek@ximbiot.com>
48175             Paul Eggert  <eggert@cs.ucla.edu>
48176
48177         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
48178         glob_.h, glob-libc.h.
48179         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
48180
48181 2005-09-12  Derek Price  <derek@ximbiot.com>
48182             Paul Eggert  <eggert@cs.ucla.edu>
48183
48184         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
48185         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
48186         protecting things that should be done only in gnulib contexts.
48187         * lib/glob_.h: New file, containing only the glob things needed for
48188         gnulib.
48189         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
48190         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
48191         (glob, globfree, glob_pattern_p): Now defined simply in terms of
48192         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
48193         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
48194         and to respect the namespace rules better.
48195
48196 2005-09-08  Simon Josefsson  <jas@extundo.com>
48197
48198         * modules/socklen: New file.
48199
48200 2005-09-08  Simon Josefsson  <jas@extundo.com>
48201
48202         * m4/socklen.m4: New file.
48203
48204 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48205
48206         * modules/utimens (Files): Add m4/utimbuf.m4, since
48207         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
48208         Reported by Sergey Poznyakoff.
48209
48210 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48211
48212         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
48213         definitions, since that's the preferred style in glibc.
48214         Fix a minor spacing issue, and update copyright notice to match
48215         glibc's.
48216
48217 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48218
48219         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
48220
48221 2005-09-06  Simon Josefsson  <jas@extundo.com>
48222
48223         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
48224         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
48225
48226 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48227
48228         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
48229         warning.
48230
48231 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48232
48233         * config/srclist.txt: Add glibc bug 1302.
48234
48235 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
48236
48237         Change bitset word type from unsigned int to unsigned long int,
48238         as this has better performance on typical 64-bit hosts.
48239         Port bitset code to hosts with unusual word sizes.
48240         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
48241         (build_collating_symbol):
48242         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
48243         argument is a bitset.  This is merely a style issue, but it makes
48244         it clearer that an entire array is expected.
48245         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
48246         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
48247         Port to the case where bitset_word is not the same as unsigned int.
48248         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
48249         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
48250         Likewise.
48251         * lib/regexec.c (check_dst_limits_calc_pos_1,
48252         check_subexp_matching_top):
48253         (build_trtable, group_nodes_into_DFAstates):
48254         Likewise.
48255         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
48256         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
48257         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
48258         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
48259         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
48260         * lib/regcomp.c (optimize_subexps, lower_subexp):
48261         Work even if bitset_word has holes in its bitwise representation.
48262         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
48263         * lib/regexec.c (check_dst_limits_calc_pos_1,
48264         check_subexp_matching_top):
48265         Likewise.
48266         * lib/regex_internal.c (re_string_reconstruct):
48267         Don't assume UCHAR_MAX == 255.
48268         * lib/regex_internal.h (bitset_set_all): Likewise.
48269         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
48270         All uses changed.
48271         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
48272         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
48273         All uses changed.
48274         (BITSET_WORD_MAX): New macro.
48275         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
48276         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
48277         (bitset_empty, bitset_copy):
48278         Prefer sizeof (bitset) to multiplying it out ourselves.
48279         (bitset_not_merge): Remove; unused.
48280         (bitset_contain): Return bool, not unsigned int with one bit on.
48281         All callers changed.
48282         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
48283         alignment than re_node_set; do this by defining a new internal
48284         type struct dests_alloc and using it to allocate memory.
48285
48286 2005-09-05  Bruno Haible  <bruno@clisp.org>
48287
48288         * gnulib-tool (func_import): Fix comparison in handling of symbolic
48289         links.
48290
48291 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
48292
48293         * modules/size_max (Makefile.am): Add size_max.h
48294
48295 2005-09-04  Derek Price  <derek@ximbiot.com>
48296
48297         * gnulib-tool (func_import): Fix reversed $symbolic logic.
48298
48299 2005-09-03  Simon Josefsson  <jas@extundo.com>
48300
48301         * gnulib-tool: Fix typo.
48302
48303 2005-09-03  Simon Josefsson  <jas@extundo.com>
48304
48305         * config/srclist.txt: Add glibc bug 1293.
48306
48307 2005-09-03  Derek Price  <derek@ximbiot.com>
48308
48309         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
48310         From Larry Jones <lawrence.jones@ugs.com>.
48311
48312 2005-09-02  Simon Josefsson  <jas@extundo.com>
48313
48314         * modules/socklen: New file.
48315
48316 2005-09-02  Simon Josefsson  <jas@extundo.com>
48317
48318         * modules/havelib: New module.
48319
48320         * modules/gettext, modules/iconv, modules/lock, modules/readline:
48321         Use havelib.
48322
48323 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
48324
48325         Check for arithmetic overflow when calculating sizes, to prevent
48326         some buffer-overflow issues.  These patches are conservative, in the
48327         sense that when I couldn't determine whether an overflow was possible,
48328         I inserted a run-time check.
48329         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
48330         macros.
48331         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
48332         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
48333         (re_xnrealloc, re_x2nrealloc): New inline functions.
48334         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
48335         parse_bracket_exp):
48336         (build_equiv_class, build_charclass): Check for arithmetic overflow
48337         in size expression calculations.
48338         * lib/regex_internal.c (re_string_realloc_buffers):
48339         (build_wcs_upper_buffer, re_node_set_add_intersect):
48340         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
48341         (re_dfa_add_node, register_state): Likewise.
48342         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
48343         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
48344         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
48345         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
48346
48347 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
48348
48349         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
48350         m4/ulonglong.m4.  Problem reported by Martin Lambers.
48351
48352 2005-09-02  Bruno Haible  <bruno@clisp.org>
48353
48354         Support for lib vs. lib64 distinction on biarch platforms.
48355         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
48356         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
48357         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
48358
48359 2005-09-02  Bruno Haible  <bruno@clisp.org>
48360
48361         * gnulib-tool (import): In the other first-use case, provide defaults
48362         as well.
48363
48364 2005-09-02  Bruno Haible  <bruno@clisp.org>
48365
48366         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
48367         patches not yet found in the latest gettext release.
48368
48369 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48370
48371         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
48372         to avoid a collision with bits/local_lim.h in glibc.
48373         All uses changed.  Problem reported by Dmitry V. Levin in
48374         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
48375
48376         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
48377         bugs in int versus size_t comparisons.
48378         (re_string_context_at): Fix bug where the code assumed that
48379         Idx is signed.
48380
48381         Use bool where appropriate.
48382         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
48383         All callers changed.
48384         (calc_eclosure_iter): Likewise, for ROOT arg.
48385         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
48386         (build_charclass_op): Likewise, for NON_MATCH arg.
48387         * lib/regex_internal.c (re_string_allocate, re_string_construct):
48388         (re_string_construct_common): Likewise, for ICASE arg.
48389         * lib/regexec.c (re_search_2_stub, re_search_stub):
48390         Likewise, for RET_LEN arg.
48391         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
48392         (set_regs): Likewise, for FL_BACKTRACK arg.
48393         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
48394         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
48395         (calc_eclosure_iter, parse_bracket_exp):
48396         Use bool for internal variables that are booleans.
48397         * lib/regexec.c (re_search_internal, check_matching,
48398         proceed_next_node):
48399         (set_regs, build_sifted_states, sift_states_bkref):
48400         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
48401         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
48402         (find_collation_sequence_value):
48403         Likewise.
48404         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
48405         (re_node_set_compare):
48406         Return bool, not int. All callers changed.
48407         * lib/regexec.c (check_halt_node_context, check_dst_limits):
48408         (build_trtable, check_node_accept): Likewise.
48409         * lib/regex_internal.h: Include stdbool.h.
48410
48411         Fix bugs uncovered when converting to bool.
48412         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
48413         failure instead of charging ahead blindly.
48414         * lib/regex_internal.c (register_state): Likewise.
48415         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
48416         for freeing internal storage.
48417         (group_nodes_into_DFA_states): Use unsigned int, not int, for
48418         bitset pieces used as boolean, to avoid undefined behavior
48419         on hosts that do int overflow checking.
48420
48421 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48422
48423         * config/srclist.txt: Add glibc bugs 1285-1287.
48424
48425 2005-09-01  Jim Meyering  <jim@meyering.net>
48426
48427         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
48428         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
48429         Require gl_STAT_MACROS, too.
48430
48431 2005-09-01  Bruno Haible  <bruno@clisp.org>
48432
48433         * gnulib-tool (import): In the first-use case, provide defaults.
48434
48435 2005-09-01  Bruno Haible  <bruno@clisp.org>
48436
48437         * gnulib-tool (func_import): Remove the .tmp files.
48438
48439 2005-09-01  Bruno Haible  <bruno@clisp.org>
48440
48441         * gnulib-tool (func_import): Fix handling of symbolic links.
48442
48443 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48444
48445         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
48446         old glibc regex code mishandles strings longer than 2**31 bytes.
48447         This patch fixes this when the regex code is used in gnulib
48448         (i.e., outside glibc).
48449
48450         This patch should not affect the use of the regex code inside
48451         glibc.  No doubt this problem also needs to be handled for glibc
48452         as well, but the result will be an incompatible change to the
48453         glibc ABI, and the old ABI will have to be supported too.  That
48454         can be the the subject for another patch.
48455
48456         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
48457         governing whether the rest of this patch is active.  By default,
48458         the macro is disabled and the patch has no effect.
48459         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
48460         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
48461         (struct re_pattern_buffer, re_search, re_search_2, re_match):
48462         (re_match_2, re_set_registers): Use the new types.
48463         * lib/regex_internal.h (Idx, re_hashval_t): New types.
48464         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
48465         New macros.
48466         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
48467         (re_string_context_at, bin_tree_t, re_dfastate_t):
48468         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
48469         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
48470         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
48471         (re_string_char_size_at, re_string_wchar_at):
48472         (re_string_elem_size_at):
48473         Use the new types and macros to port to 64-bit hosts.
48474         Use unsigned types for internal values, so that the code
48475         mostly works even for arrays larger than SSIZE_MAX.
48476         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
48477         (search_duplicated_node, calc_eclosure_iter, fetch_number):
48478         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
48479         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
48480         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
48481         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
48482         (calc_inveclosure, parse_dup_op, build_range_exp):
48483         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
48484         (fetch_number, create_token_tree, mark_opt_subexp):
48485         Likewise.
48486         * lib/regex_internal.c (re_string_construct_common,
48487         create_ci_newstate):
48488         (create_cd_newstate, re_string_allocate, re_string_construct):
48489         (re_string_realloc_buffers, build_wcs_upper_buffer):
48490         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
48491         (re_string_reconstruct, re_string_peek_byte_case):
48492         (re_string_fetch_byte_case, re_string_context_at):
48493         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
48494         (re_node_set_init_copy, re_node_set_add_intersect):
48495         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
48496         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
48497         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
48498         (re_acquire_state, re_acquire_state_context, register_state):
48499         Likewise.
48500         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
48501         search_cur_bkref_entry):
48502         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
48503         (re_search_internal, re_search_2_stub, re_search_stub)
48504         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
48505         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
48506         (update_cur_sifted_state, check_dst_limits):
48507         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
48508         (check_subexp_limits, sift_states_bkref, merge_state_array):
48509         (check_subexp_matching_top, get_subexp, get_subexp_sub):
48510         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
48511         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
48512         (expand_bkref_cache, check_node_accept_bytes):
48513         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
48514         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
48515         (acquire_init_state_context, check_halt_node_context):
48516         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
48517         (sift_states_backward, clean_state_log_if_needed):
48518         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
48519         (find_recover_state, transit_state_sb, transit_state_mb):
48520         (transit_state_bkref, build_trtable, match_ctx_clean):
48521         Likewise.
48522         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
48523         to work around an assumption that REG_MISSING is negative.
48524
48525         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
48526         (seek_collating_symbol_entry) [defined _LIBC]:
48527         (lookup_collation_sequence_value) [defined _LIBC]:
48528         (build_range_exp, build_collating_symbol) [defined _LIBC]:
48529         Use prototypes rather than old-style function definitions.
48530         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
48531         (transit_state_sb) [0]:
48532         (find_collation_sequence_value) [defined _LIBC]: Likewise.
48533
48534         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
48535         rm_eo.
48536
48537         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
48538         (optimize_subexps, lower_subexp):
48539         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
48540         since the signed shift might overflow.  Use 1u<<31 instead.
48541         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
48542         Likewise.
48543         * lib/regexec.c (check_dst_limits_calc_pos_1,
48544         check_subexp_matching_top): Likewise.
48545
48546         * lib/regcomp.c (optimize_subexps, lower_subexp):
48547         Use CHAR_BIT rather than 8, for clarity.
48548         * lib/regexec.c (check_dst_limits_calc_pos_1):
48549         (check_subexp_matching_top): Likewise.
48550         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
48551         have to worry about portability issues when shifting it left.
48552         Remove no-longer-needed test for table_size > 0.
48553         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
48554         in a word, as the resulting behavior is undefined.
48555         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
48556         in one case, a <= should have been an <, and in another case the
48557         whole test was missing.
48558         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
48559         the standard name CHAR_BIT.
48560         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
48561         this is not true on one's complement and signed-magnitude hosts.
48562
48563         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
48564         next_last_offset.
48565         (struct re_dfa_t): Remove unused member states_alloc.
48566         * lib/regcomp.c (init_dfa): Don't initialize unused members.
48567
48568 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48569
48570         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
48571         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
48572         and large-file glibc and in 32-bit large-file Solaris.
48573
48574 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48575
48576         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
48577         lengths fit in regoff_t; this isn't true if regoff_t is the same
48578         width as size_t.
48579         * lib/regex.c (re_search_internal): 5th arg is LAST_START
48580         (= START + RANGE) instead of RANGE.  This avoids overflow
48581         problems when regoff_t is the same width as size_t.
48582         All callers changed.
48583         (re_search_2_stub): Check for overflow when adding the
48584         sizes of the two strings.
48585         (re_search_stub): Check for overflow when adding START
48586         to RANGE; if it occurs, substitute the extreme value.
48587
48588 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48589
48590         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
48591
48592 2005-08-31  Jim Meyering  <jim@meyering.net>
48593
48594         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
48595         a pointer-to-const.
48596         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
48597         (register_state): Likewise.
48598         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
48599         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
48600         (group_nodes_into_DFAstates): Likewise.
48601
48602 2005-08-31  Jim Meyering  <jim@meyering.net>
48603
48604         * check-module: Add a FIXME comment.
48605
48606 2005-08-31  Eric Blake  <ebb9@byu.net>
48607
48608         * modules/unistd-safer (Files): Add unistd--.h.
48609         * modules/stdio-safer (Files): Add stdio--.h.
48610
48611 2005-08-31  Derek Price  <derek@ximbiot.com>
48612
48613         * lib/getdelim.c (getdelim): Return EOF on EOF.
48614         Reported by Larry Jones <lawrence.jones@ugs.com>.
48615
48616 2005-08-31  Bruno Haible  <bruno@clisp.org>
48617
48618         Avoid unnecessary diffs in the generated lib/Makefile.am.
48619         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
48620         the generated files.
48621         (func_import): Don't set cmd.
48622
48623 2005-08-31  Bruno Haible  <bruno@clisp.org>
48624
48625         * lib/strstr.c: Include <stddef.h>, for NULL.
48626         * lib/strcasestr.c: Likewise.
48627         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48628
48629 2005-08-31  Bruno Haible  <bruno@clisp.org>
48630
48631         * gnulib-tool: New option --macro-prefix.
48632         (func_import): Use macro_prefix.
48633         (import): Handle option --macro-prefix.
48634
48635 2005-08-31  Bruno Haible  <bruno@clisp.org>
48636
48637         * gnulib-tool (import): Rename most ac_* variables to cached_*.
48638         Also use new variables cached_lgpl, cached_libtool.
48639
48640 2005-08-31  Bruno Haible  <bruno@clisp.org>
48641
48642         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
48643         always instantiating them.
48644
48645 2005-08-31  Bruno Haible  <bruno@clisp.org>
48646
48647         * gnulib-tool (func_import): Read the previous cached settings
48648         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
48649         earlier added by gnulib but are now dropped. Warn when a gnulib file
48650         overwrites a non-gnulib file.
48651
48652 2005-08-31  Bruno Haible  <bruno@clisp.org>
48653
48654         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
48655         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
48656         projects that don't keep autogenerated files in CVS. Put into
48657         actioncmd only the specified modules, not the transitive closure.
48658
48659 2005-08-31  Bruno Haible  <bruno@clisp.org>
48660
48661         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
48662         Create directories that shall be filled.
48663         (import): Don't look for gl_* macros in configure.ac. Recurse across
48664         all directories containing a gnulib-cache.m4 files, if meaningful.
48665
48666 2005-08-31  Bruno Haible  <bruno@clisp.org>
48667
48668         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
48669         (import): Set seen_libtool when we see gl_LIBTOOL.
48670
48671 2005-08-31  Bruno Haible  <bruno@clisp.org>
48672
48673         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
48674         declaration macro definitions from generated gnulib.m4.
48675
48676 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
48677
48678         * lib/iconvme.h: Add prototype for iconv_alloc.
48679
48680 2005-08-29  Simon Josefsson  <jas@extundo.com>
48681
48682         * lib/iconvme.c: Fix errno.
48683
48684 2005-08-29  Bruno Haible  <bruno@clisp.org>
48685
48686         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
48687         that it works when the directory contains spaces.
48688
48689 2005-08-29  Bruno Haible  <bruno@clisp.org>
48690
48691         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
48692
48693 2005-08-29  Bruno Haible  <bruno@clisp.org>
48694
48695         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
48696         Emit more advice.
48697
48698 2005-08-29  Bruno Haible  <bruno@clisp.org>
48699         and Stepan Kasal  <kasal@ucw.cz>
48700
48701         * check-module: If more parameters are given, check each of them
48702         separately; add more exceptions, as noted by Jim Meyering.
48703         (check_module): New procedure.
48704         (%exempt_header): Now contains all exceptions.
48705
48706 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
48707
48708         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
48709
48710 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
48711
48712         * lib/iconvme.c: Split iconv_string into iconv_alloc.
48713
48714 2005-08-28  Bruno Haible  <bruno@clisp.org>
48715
48716         * m4/gnulib-tool.m4: New file.
48717
48718 2005-08-27  Jim Meyering  <jim@meyering.net>
48719
48720         * modules/unistd-safer (Files): Add pipe-safer.c.
48721         * modules/fcntl-safer (Files): Add creat-safer.c.
48722
48723 2005-08-27  Jim Meyering  <jim@meyering.net>
48724
48725         * m4/stdlib-safer.m4: New file.  From coreutils.
48726         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
48727         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
48728         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
48729         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
48730         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
48731
48732 2005-08-27  Jim Meyering  <jim@meyering.net>
48733
48734         * lib/fopen-safer.c: Merge minor changes from coreutils.
48735         * lib/dup-safer.c: Likewise.
48736         * lib/fd-safer.c: Likewise.
48737
48738         Merge from coreutils.
48739         * lib/stdio--.h: New file.
48740         * lib/stdlib--.h: New file.
48741         * lib/mkstemp-safer.c: New file.
48742
48743         GNU tar needs these.
48744         * lib/pipe-safer.c: New file.
48745         * lib/creat-safer.c: New file.
48746         * lib/fcntl--.h (creat): Define to creat_safer.
48747         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
48748         * lib/unistd--.h (pipe): Define to pipe_safer.
48749         * lib/unistd-safer.h: Declare pipe_safer.
48750
48751 2005-08-26  Simon Josefsson  <jas@extundo.com>
48752
48753         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
48754         Haible <bruno@clisp.org>.
48755
48756 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
48757
48758         * lib/regex_internal.h: Remove all references to
48759         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
48760         or better.
48761         (bitset_not, bitset_merge, bitset_not_merge):
48762         (bitset_mask, re_string_allocate, re_string_construct):
48763         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
48764         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
48765         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
48766         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
48767         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
48768         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
48769         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
48770         (re_acquire_state_context):
48771         Remove unnecessary forward decls.
48772         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
48773         Put __attribute at function definition,
48774         now that the function decl has been removed.
48775         * lib/regex_internal.c (re_string_peek_byte_case):
48776         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
48777         Likewise.
48778
48779 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
48780
48781         * m4/regex.m4: Add AC_PREREQ(2.50).
48782         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
48783
48784 2005-08-25  Simon Josefsson  <jas@extundo.com>
48785
48786         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
48787         __fsetlocking.
48788
48789 2005-08-25  Simon Josefsson  <jas@extundo.com>
48790
48791         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
48792         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
48793         GLIBC specific code.
48794
48795 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48796
48797         Make regex safe for g++.  This fixes one real bug (an "err"
48798         that should have been "*err").  g++ problem reported by
48799         Sam Steingold.
48800         * lib/regex_internal.h (re_calloc): New macro, consistent with
48801         re_malloc etc.  All callers of calloc changed to use re_calloc.
48802         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
48803         not int.  All callers changed.
48804         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
48805         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
48806         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
48807         (find_recover_state): Change "err" to "*err"; this fixes what
48808         appears to be a real bug.
48809         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
48810         versus int.
48811
48812 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48813
48814         * modules/regex (Depends-on): Add malloc, since the code
48815         assumes that !malloc(0) means failure.
48816
48817 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48818
48819         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
48820
48821         alloca modernization/simplification for regex.
48822         * lib/regex.c: Remove portability cruft for alloca.  This no longer
48823         needs to be at the start of the file, and can be moved into
48824         regex_internal.h and simplified.
48825         * lib/regex_internal.h: Include <alloca.h>.
48826         (__libc_use_alloca) [!defined _LIBC]: New macro.
48827         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
48828         now works outside glibc.
48829
48830 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48831
48832         * config/srclist.txt: Add glibc bugs 1241, 1245.
48833
48834 2005-08-25  Jim Meyering  <jim@meyering.net>
48835
48836         * lib/open-safer.c: Include <config.h>.
48837         Otherwise, we'd lose LARGEFILE support in any file using
48838         e.g. "fcntl--.h"
48839
48840 2005-08-25  Bruno Haible  <bruno@clisp.org>
48841
48842         * m4/minmax.m4: Require autoconf 2.52.
48843         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
48844         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
48845         alternatives of translit over the alphabet.
48846         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
48847
48848 2005-08-24  Simon Josefsson  <jas@extundo.com>
48849
48850         * tests/test-getpass.c: New file.
48851
48852 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48853
48854         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
48855         for GNU regex features.
48856
48857 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48858
48859         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
48860         * lib/regex.h (regerror): Likewise.
48861
48862         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
48863         requires this.  (The code never needed it.)
48864
48865         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
48866         All uses of recently-renamed identifiers changed to use the new,
48867         POSIX-compliant names.  The code will build and run just fine
48868         without these changes, but it's better to eat our own dog food
48869         and use the standard-conforming names.
48870
48871         * lib/regex.h: Fix a multitude of POSIX name space violations.
48872         These changes have an effect only for programs that define
48873         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
48874         do not change anything for programs compiled in the normal way.
48875         Also, there is no effect on the ABI.
48876
48877         (_REGEX_SOURCE): New macro.
48878         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
48879         defined and _GNU_SOURCE is not; this fixes a name space violation.
48880
48881         Rename the following macros to obey POSIX requirements.
48882         The old names are still visible as macros if _REGEX_SOURCE is defined.
48883         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
48884         RE_BACKSLASH_ESCAPE_IN_LISTS.
48885         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
48886         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
48887         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
48888         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
48889         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
48890         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
48891         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
48892         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
48893         (REG_INTERVALS): renamed from RE_INTERVALS.
48894         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
48895         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
48896         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
48897         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
48898         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
48899         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
48900         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
48901         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
48902         RE_UNMATCHED_RIGHT_PAREN_ORD.
48903         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
48904         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
48905         (REG_DEBUG): renamed from RE_DEBUG.
48906         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
48907         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
48908         unusual, since we can't clash with the POSIX REG_ICASE.
48909         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
48910         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
48911         (REG_NO_SUB): renamed from RE_NO_SUB.
48912         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
48913         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
48914         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
48915         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
48916         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
48917         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
48918         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
48919         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
48920         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
48921         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
48922         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
48923         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
48924         RE_SYNTAX_POSIX_MINIMAL_BASIC.
48925         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
48926         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
48927         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
48928         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
48929         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
48930         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
48931         (REG_FIXED): Renamed from REGS_FIXED.
48932         (REG_NREGS): Renamed from RE_NREGS.
48933
48934         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
48935         of other REG_* macros, since POSIX says the user is allowed to
48936         #undef these macros selectively.
48937
48938         (reg_errcode_t): Update comment stating what other tables need
48939         to be consistent.
48940
48941         Rename the following enum values to obey POSIX requirements.
48942         The old names are still visible as macros.
48943         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
48944         is not defined, since GNU is supposed to be a superset of POSIX as
48945         much as possible, and since we want reg_errcode_t to be a signed
48946         type for implementation consistency.
48947         (_REG_NOERROR): Renamed from REG_NOERROR.
48948         (_REG_NOMATCH): Renamed from REG_NOMATCH.
48949         (_REG_BADPAT): Renamed from REG_BADPAT.
48950         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
48951         (_REG_ECTYPE): Renamed from REG_ECTYPE.
48952         (_REG_EESCAPE): Renamed from REG_EESCAPE.
48953         (_REG_ESUBREG): Renamed from REG_ESUBREG.
48954         (_REG_EBRACK): Renamed from REG_EBRACK.
48955         (_REG_EPAREN): Renamed from REG_EPAREN.
48956         (_REG_EBRACE): Renamed from REG_EBRACE.
48957         (_REG_BADBR): Renamed from REG_BADBR.
48958         (_REG_ERANGE): Renamed from REG_ERANGE.
48959         (_REG_ESPACE): Renamed from REG_ESPACE.
48960         (_REG_BADRPT): Renamed from REG_BADRPT.
48961         (_REG_EEND): Renamed from REG_EEND.
48962         (_REG_ESIZE): Renamed from REG_ESIZE.
48963         (_REG_ERPAREN): Renamed from REG_ERPAREN.
48964         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
48965         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
48966         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
48967         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
48968
48969         (_REG_RE_NAME, _REG_RM_NAME): New macros.
48970         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
48971         changed.  But support the old name if the new one is not defined
48972         and if _REGEX_SOURCE.
48973
48974         Change the following member names in struct re_pattern_buffer.
48975         The old names are still supported if !_REGEX_SOURCE.
48976         The new names are always supported, regardless of _REGEX_SOURCE.
48977         (re_buffer): Renamed from buffer.
48978         (re_allocated): Renamed from allocated.
48979         (re_used): Renamed from used.
48980         (re_syntax): Renamed from syntax.
48981         (re_fastmap): Renamed from fastmap.
48982         (re_translate): Renamed from translate.
48983         (re_can_be_null): Renamed from can_be_null.
48984         (re_regs_allocated): Renamed from regs_allocated.
48985         (re_fastmap_accurate): Renamed from fastmap_accurate.
48986         (re_no_sub): Renamed from no_sub.
48987         (re_not_bol): Renamed from not_bol.
48988         (re_not_eol): Renamed from not_eol.
48989         (re_newline_anchor): Renamed from newline_anchor.
48990
48991         Change the following member names in struct re_registers.
48992         The old names are still supported if !_REGEX_SOURCE.
48993         The new names are always supported, regardless of _REGEX_SOURCE.
48994         (rm_num_regs): Renamed from num_regs.
48995         (rm_start): Renamed from start.
48996         (rm_end): Renamed from end.
48997
48998         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
48999         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
49000         Prepend __ to parameter names.
49001
49002         Undo yesterday's changes.
49003
49004 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49005
49006         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
49007         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
49008         lib/regex.c.
49009
49010 2005-08-24  Jim Meyering  <jim@meyering.net>
49011
49012         Sync from coreutils.
49013         * m4/fcntl-safer.m4: New file.
49014
49015         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
49016         and object files for this module.
49017
49018 2005-08-24  Jim Meyering  <jim@meyering.net>
49019
49020         Sync from coreutils.
49021         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
49022
49023 2005-08-24  Jim Meyering  <jim@meyering.net>
49024
49025         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
49026         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
49027
49028 2005-08-24  Jim Meyering  <jim@meyering.net>
49029
49030         * modules/fcntl-safer: New module.
49031         * modules/fts (Depends-on): Add fcntl-safer.
49032         * MODULES.html.sh (File descriptor based Input/Output):
49033         Add fcntl-safer.
49034
49035 2005-08-24  Bruno Haible  <bruno@clisp.org>
49036
49037         Support for unit test modules.
49038         * modules/README: Mention tests modules.
49039         * modules/TEMPLATE-TESTS: New file.
49040         * gnulib-tool: New options --extract-tests-module, --with-tests and
49041         --tests-base (unused for the moment).
49042         (testsbase, inctests): New variables.
49043         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
49044         (func_verify_module): Exclude TEMPLATE-TESTS.
49045         (func_verify_nontests_module, func_verify_tests_module): New functions.
49046         (func_get_dependencies): Add implicit dependency for tests modules.
49047         (func_get_tests_module): New function.
49048         (func_modules_transitive_closure): When --with-tests was specified,
49049         include the unit tests as well, unless explicitly avoided.
49050         (func_emit_lib_Makefile_am): Ignore the tests modules here.
49051         (func_emit_tests_Makefile_am): New function.
49052         (func_create_testdir): When --with-tests was specified, emit a
49053         tests/ directory.
49054         * MODULES.html.sh (Future developments): Update.
49055
49056 2005-08-24  Bruno Haible  <bruno@clisp.org>
49057
49058         * modules/tls-tests: New file.
49059         * tests/test-tls.c: New file, from GNU gettext.
49060
49061 2005-08-24  Bruno Haible  <bruno@clisp.org>
49062
49063         * modules/lock-tests: New file.
49064         * tests/test-lock.c: New file, from GNU gettext.
49065
49066 2005-08-24  Bruno Haible  <bruno@clisp.org>
49067
49068         * lib/lock.h: Add multiple inclusion guard.
49069         * lib/tls.h: Add multiple inclusion guard.
49070
49071 2005-08-24  Bruno Haible  <bruno@clisp.org>
49072
49073         * gnulib-tool: Add support for the --aux-dir option to
49074         --create-testdir, --create-megatestdir, --test, --megatest.
49075         (func_create_testdir, func_create_megatestdir): Optionally emit a
49076         AC_CONFIG_AUX_DIR directive.
49077         (create-testdir, create-megatestdir, test, megatest): Provide a
49078         default value for $auxdir.
49079
49080 2005-08-24  Bruno Haible  <bruno@clisp.org>
49081
49082         * gnulib-tool (import): Use compound statement instead of subshell
49083         where possible.
49084
49085 2005-08-24  Bruno Haible  <bruno@clisp.org>
49086
49087         * gnulib-tool (import): Change --aux-dir default to "build-aux".
49088
49089 2005-08-24  Bruno Haible  <bruno@clisp.org>
49090
49091         * gnulib-tool (func_version): Update.
49092
49093 2005-08-24  Bruno Haible  <bruno@clisp.org>
49094
49095         * gnulib-tool (func_import, func_create_testdir,
49096         func_create_megatestdir): Quote all autoconf macro arguments.
49097
49098 2005-08-24  Bruno Haible  <bruno@clisp.org>
49099
49100         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
49101         option --force, because --force causes the aclocal.m4 of each
49102         subdirectory to be newer than the corresponding config.h.in.
49103
49104 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49105
49106         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
49107         All contents moved to gl_REGEX.
49108         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
49109         assume that it does.
49110
49111 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49112
49113         * lib/regex.h (REG_NOSYS)
49114         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
49115         Define, since POSIX requires it as of 2001.
49116         (_REG_ENOSYS)
49117         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
49118         New private symbol, used to keep the enum signed in all cases.
49119         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
49120         Youngman in
49121         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
49122
49123         * lib/regex_internal.c (re_string_skip_chars, register_state):
49124         (calc_state_hash):
49125         Remove forward decls; no longer needed now that we use prototypes.
49126         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
49127         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
49128         (clean_state_log_if_needed): Likewise.
49129
49130 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49131
49132         * config/srclist.txt: Add glibc bugs 1231-1233.
49133
49134 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49135
49136         Fix problems reported by Sam Steingold in
49137         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
49138         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
49139         assumed that reg_errcode_t is a signed type, which is not
49140         necessarily true if _XOPEN_SOURCE is not defined.
49141         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
49142         since some compilers warn about it otherwise.
49143
49144 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49145
49146         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
49147         (init_word_char, create_initial_state, duplicate_node_closure):
49148         (fetch_token, peek_token_bracket, build_range_exp):
49149         (build_collating_symbol): Remove forward decls; no longer needed
49150         now that we use prototypes.
49151
49152         * lib/regcomp.c:
49153         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
49154         (re_compile_fastmap_iter, regcomp, regerror, regfree):
49155         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
49156         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
49157         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
49158         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
49159         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
49160         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
49161         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
49162         (build_range_exp, build_collating_symbol, parse_bracket_exp):
49163         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
49164         (build_charclass, build_charclass_op, fetch_number, create_tree):
49165         (create_token_tree, mark_opt_subexp, duplicate_tree):
49166         Use prototypes rather than old-style definitions.
49167
49168         * lib/regex_internal.c:
49169         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
49170         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
49171         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49172         (re_string_reconstruct, re_string_peek_byte_case):
49173         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
49174         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49175         (re_node_set_init_copy, re_node_set_add_intersect):
49176         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49177         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49178         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49179         (re_acquire_state, re_acquire_state_context, register_state):
49180         (create_ci_newstate, create_cd_newstate, free_state):
49181         Likewise.
49182         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
49183         re_search_2):
49184         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
49185         (re_search_internal, prune_impossible_nodes):
49186         (acquire_init_state_context, check_matching, static):
49187         (check_halt_node_context, check_halt_state_context, proceed_next_node):
49188         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
49189         (update_regs, sift_states_backward, build_sifted_states):
49190         (clean_state_log_if_needed, merge_state_array):
49191         (update_cur_sifted_state, add_epsilon_src_nodes):
49192         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
49193         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
49194         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
49195         (find_recover_state, check_subexp_matching_top, transit_state_mb):
49196         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
49197         (check_arrival, check_arrival_add_next_nodes):
49198         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49199         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49200         (check_node_accept_bytes, check_node_accept, extend_buffers):
49201         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
49202         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
49203         (sift_ctx_init):
49204         Likewise.
49205
49206         * lib/regex_internal.h:
49207         (re_string_allocate, re_string_construct, re_string_reconstruct):
49208         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
49209         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
49210         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
49211         (re_string_context_at, re_string_peek_byte_case):
49212         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
49213         is defined, since we now use prototypes always.
49214
49215         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
49216         C89 or better.  All uses removed.
49217
49218 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49219
49220         * config/srclist.txt: Add glibc bugs 1220-1227.
49221
49222 2005-08-20  Jim Meyering  <jim@meyering.net>
49223
49224         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
49225         of unused local, dfa.
49226
49227 2005-08-20  Bruno Haible  <bruno@clisp.org>
49228
49229         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
49230
49231 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49232
49233         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
49234         (re_node_set_insert_last, re_dfa_add_node):
49235         Rename local variables to avoid GCC shadowing warnings.
49236
49237 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49238
49239         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
49240         [defined lint]: Suppress bogus uninitialized-variable warnings.
49241
49242         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
49243         and let the caller return REG_ESPACE if out of space.  This
49244         removes an uninitialied-variable warning with GCC 4.0.1, and also
49245         avoids taking the address of a local variable.  All callers
49246         changed.
49247
49248 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49249
49250         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
49251         $LIBCSRC/posix/regexec.c.
49252         Add glibc bug 1217 for regcomp.c.
49253
49254 2005-08-19  Jim Meyering  <jim@meyering.net>
49255
49256         * lib/regexec.c (proceed_next_node): Redo local variables to
49257         avoid GCC shadowing warnings.
49258
49259 2005-08-18  Bruno Haible  <bruno@clisp.org>
49260
49261         * lib/strstr.c (strstr): Fix return value in multibyte case.
49262         * lib/strcasestr.c (strcasestr): Likewise.
49263
49264 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49265
49266         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
49267
49268 2005-08-17  Jim Meyering  <jim@meyering.net>
49269
49270         Make the %s format (seconds since the epoch) work for a negative
49271         number and when used with a zero-padded field width, e.g. %015s.
49272
49273         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
49274         label so that it precedes the code to set `digits'.  Otherwise,
49275         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
49276         print `00-22'.  Now, it prints `-0022', as it should.
49277
49278 2005-08-17  Bruno Haible  <bruno@clisp.org>
49279
49280         * modules/strstr (Files): Add m4/mbrtowc.m4.
49281         (Depends-on): Add mbuiter.
49282
49283 2005-08-17  Bruno Haible  <bruno@clisp.org>
49284
49285         * modules/strcasestr: New file.
49286         * MODULES.html.sh (String handling, based on ANSI C 89): Add
49287         strcasestr.
49288
49289 2005-08-17  Bruno Haible  <bruno@clisp.org>
49290
49291         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
49292
49293 2005-08-17  Bruno Haible  <bruno@clisp.org>
49294
49295         * modules/mbuiter: New file.
49296         * MODULES.html.sh (Extended multibyte and wide character utilities):
49297         Add mbuiter.
49298
49299 2005-08-17  Bruno Haible  <bruno@clisp.org>
49300
49301         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
49302         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
49303
49304 2005-08-17  Bruno Haible  <bruno@clisp.org>
49305
49306         * m4/strcasestr.m4: New file.
49307
49308 2005-08-17  Bruno Haible  <bruno@clisp.org>
49309
49310         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
49311         * lib/strstr.c: Completely rewritten, with multibyte locale support.
49312
49313 2005-08-17  Bruno Haible  <bruno@clisp.org>
49314
49315         * lib/strcasestr.h: New file.
49316         * lib/strcasestr.c: New file.
49317
49318 2005-08-17  Bruno Haible  <bruno@clisp.org>
49319
49320         * lib/strcasecmp.c: Use mbuiter.h.
49321
49322 2005-08-17  Bruno Haible  <bruno@clisp.org>
49323
49324         * lib/mbuiter.h: New file.
49325
49326 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
49327
49328         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
49329         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
49330         and gl_GETOPT are both invoked via different paths (as happens
49331         with GNU tar CVS because it uses both argp and getopt), the former
49332         wins.
49333
49334 2005-08-16  Bruno Haible  <bruno@clisp.org>
49335
49336         * modules/tls: New file.
49337         * MODULES.html.sh (Multithreading): Add tls.
49338
49339 2005-08-16  Bruno Haible  <bruno@clisp.org>
49340
49341         * modules/strnlen1: New file.
49342         * MODULES.html.sh (String handling): Add strnlen1.
49343
49344 2005-08-16  Bruno Haible  <bruno@clisp.org>
49345
49346         * modules/strcase (Files): Add m4/mbrtowc.m4.
49347         (Depends-on): Add strnlen1, mbchar.
49348
49349 2005-08-16  Bruno Haible  <bruno@clisp.org>
49350
49351         * modules/mbiter: New file.
49352         * MODULES.html.sh (Extended multibyte and wide character utilities):
49353         Add mbiter.
49354
49355 2005-08-16  Bruno Haible  <bruno@clisp.org>
49356
49357         * modules/mbfile: New file.
49358         * MODULES.html.sh (Extended multibyte and wide character utilities):
49359         Add mbfile.
49360
49361 2005-08-16  Bruno Haible  <bruno@clisp.org>
49362
49363         * modules/mbchar: New file.
49364         * MODULES.html.sh (Extended multibyte and wide character utilities):
49365         New section.
49366
49367 2005-08-16  Bruno Haible  <bruno@clisp.org>
49368
49369         * m4/tls.m4: New file, from GNU gettext.
49370
49371 2005-08-16  Bruno Haible  <bruno@clisp.org>
49372
49373         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
49374         always.
49375         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
49376
49377 2005-08-16  Bruno Haible  <bruno@clisp.org>
49378
49379         * m4/mbiter.m4: New file.
49380
49381 2005-08-16  Bruno Haible  <bruno@clisp.org>
49382
49383         * m4/mbfile.m4: New file.
49384
49385 2005-08-16  Bruno Haible  <bruno@clisp.org>
49386
49387         * m4/mbchar.m4: New file.
49388
49389 2005-08-16  Bruno Haible  <bruno@clisp.org>
49390
49391         * lib/tls.h: New file, from GNU gettext.
49392         * lib/tls.c: New file, from GNU gettext.
49393
49394 2005-08-16  Bruno Haible  <bruno@clisp.org>
49395
49396         * lib/strnlen1.h: New file.
49397         * lib/strnlen1.c: New file.
49398
49399 2005-08-16  Bruno Haible  <bruno@clisp.org>
49400
49401         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
49402         (mbi_init): Update.
49403         (mbi_avail, mbi_advance): Let the iteration end before the terminating
49404         NUL byte, not after it.
49405
49406 2005-08-16  Bruno Haible  <bruno@clisp.org>
49407
49408         * lib/strcase.h (strcasecmp): Add note in comments.
49409         * lib/strncasecmp.c: Use code from strcasecmp.c.
49410         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
49411         (strcasecmp): Work correctly in multibyte locales.
49412
49413 2005-08-16  Bruno Haible  <bruno@clisp.org>
49414
49415         * lib/mbiter.h: New file.
49416
49417 2005-08-16  Bruno Haible  <bruno@clisp.org>
49418
49419         * lib/mbfile.h: New file.
49420
49421 2005-08-16  Bruno Haible  <bruno@clisp.org>
49422
49423         * lib/mbchar.h: New file.
49424         * lib/mbchar.c: New file.
49425
49426 2005-08-16  Bruno Haible  <bruno@clisp.org>
49427
49428         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
49429         the valid ones. Makes the comparison operations transitive:
49430         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
49431         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
49432
49433 2005-08-15  Simon Josefsson  <jas@extundo.com>
49434
49435         * modules/ssize_t (License): Change to 'unlimited'.
49436
49437         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
49438
49439 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49440
49441         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
49442         Add comments for each pending glibc patch.
49443
49444 2005-08-15  Bruno Haible  <bruno@clisp.org>
49445
49446         * lib/regex.h (__restrict_arr): Don't define to __restrict if
49447         __cplusplus is defined.
49448
49449 2005-08-14  Jim Meyering  <jim@meyering.net>
49450
49451         Sync from coreutils.
49452
49453         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
49454         Use the hash-table-based cycle-detection code not just when
49455         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
49456         Reported by James Youngman in
49457         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
49458         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
49459         FTS_TIGHT_CYCLE_CHECK.
49460         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
49461         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
49462         once again.
49463         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
49464         * lib/fts.c (fd_safer): Remove decl.
49465         Include fcntl--.h rather than unistd-safer.h
49466         (fts_safe_changedir): Don't call fd_safer; no longer needed
49467         now that we include fcntl--.h.
49468
49469 2005-08-12  Simon Josefsson  <jas@extundo.com>
49470
49471         * modules/getndelim2: Use ssize_t module.
49472         * modules/getnline: Likewise.
49473         * modules/safe-read: Likewise.
49474         * modules/xreadlink: Likewise.
49475
49476         * modules/ssize_t: New file.
49477
49478 2005-08-12  Simon Josefsson  <jas@extundo.com>
49479
49480         * m4/readline.m4: Look for termcap, curses or ncurses if required.
49481
49482 2005-08-12  Simon Josefsson  <jas@extundo.com>
49483
49484         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49485         ssize_t.
49486
49487 2005-08-12  Simon Josefsson  <jas@extundo.com>
49488
49489         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
49490         readline, getdelim and check_version.
49491         (Support for systems lacking ISO C 99: Sizes of integer types):
49492         Add size_max.
49493
49494 2005-08-12  Bruno Haible  <bruno@clisp.org>
49495
49496         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
49497
49498 2005-08-11  Simon Josefsson  <jas@extundo.com>
49499
49500         * modules/readline: New file.
49501
49502         * modules/strnlen (Files): Add strnlen.h.
49503
49504 2005-08-11  Simon Josefsson  <jas@extundo.com>
49505
49506         * m4/readline.m4: New file.
49507
49508 2005-08-11  Simon Josefsson  <jas@extundo.com>
49509
49510         * lib/readline.h, readline.c: New file.
49511
49512 2005-08-11  Simon Josefsson  <jas@extundo.com>
49513
49514         * doc/gnulib.texi (Initial import, Finishing touches): Mention
49515         gl_AVOID.
49516
49517 2005-08-11  Bruno Haible  <bruno@clisp.org>
49518
49519         * lib/strnlen.h (strnlen): Change parameter name to match comment.
49520
49521 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
49522
49523         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
49524
49525 2005-08-10  Simon Josefsson  <jas@extundo.com>
49526
49527         * tests/test-iconvme.c: New file.
49528
49529 2005-08-10  Simon Josefsson  <jas@extundo.com>
49530
49531         * m4/strnlen.m4: New file.
49532
49533         * m4/strndup.m4: Don't check for strnlen declaration, done in
49534         strnlen.m4.
49535
49536 2005-08-10  Simon Josefsson  <jas@extundo.com>
49537
49538         * lib/strndup.c: Use strnlen.h.
49539
49540         * lib/strnlen.h: New file.
49541
49542 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49543
49544         * README: Typos.
49545
49546 2005-08-02  Simon Josefsson  <jas@extundo.com>
49547
49548         * modules/readline: New file.
49549
49550 2005-08-02  Simon Josefsson  <jas@extundo.com>
49551
49552         * modules/getdelim: New file.
49553
49554         * modules/getline: Rewrite, don't use getndelim2.
49555
49556 2005-08-02  Simon Josefsson  <jas@extundo.com>
49557
49558         * m4/getline.m4: Separate out getdelim stuff into separate module.
49559
49560         * m4/getdelim.m4: New file.
49561
49562 2005-08-02  Simon Josefsson  <jas@extundo.com>
49563
49564         * lib/getline.h, getline.c: Rewrite.
49565
49566         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
49567
49568 2005-07-31  Bruno Haible  <bruno@clisp.org>
49569
49570         * lib/lock.h (gl_lock_initializer): New macro.
49571         (gl_lock_define_initialized): Use it.
49572         (gl_rwlock_initializer): New macro.
49573         (gl_rwlock_define_initialized): Use it.
49574         (gl_recursive_lock_initializer): New macro.
49575         (gl_recursive_lock_define_initialized): Use it.
49576
49577 2005-07-30  Karl Berry  <karl@gnu.org>
49578
49579         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
49580         Report from Ben Pfaff, regarding getopt.
49581
49582 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
49583
49584         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
49585         normal way.
49586         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
49587         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
49588         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
49589         (gl_GETOPT): Use the new macros.  Most of the implementation
49590         is moved to the new macros.  This is for programs like Emacs
49591         that don't want all the functionality of gl_GETOPT.
49592
49593 2005-07-26  Bruno Haible  <bruno@clisp.org>
49594
49595         * m4/lock.m4: Update from GNU gettext.
49596
49597 2005-07-26  Bruno Haible  <bruno@clisp.org>
49598
49599         * lib/lock.h: Update from GNU gettext.
49600         * lib/lock.c: Update from GNU gettext.
49601
49602 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
49603
49604         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
49605         obsolescent AC_TRY_RUN.  Include the default includes files, for
49606         'exit'.
49607
49608 2005-07-24  Bruno Haible  <bruno@clisp.org>
49609
49610         * modules/visibility: New file.
49611         * MODULES.html.sh (Misc): Add visibility.
49612
49613 2005-07-24  Bruno Haible  <bruno@clisp.org>
49614
49615         * m4/visibility.m4: New file.
49616
49617 2005-07-24  Bruno Haible  <bruno@clisp.org>
49618
49619         * doc/visibility.texi: New file.
49620
49621 2005-07-22  Bruno Haible  <bruno@clisp.org>
49622
49623         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
49624         $(ALLOCA_H), redundant through BUILT_SOURCES.
49625         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
49626         redundant through BUILT_SOURCES.
49627         * modules/byteswap (Makefile.am): Remove explicit dependency on
49628         $(BYTESWAP_H), redundant through BUILT_SOURCES.
49629         * modules/fnmatch (Makefile.am): Remove explicit dependency on
49630         $(FNMATCH_H), redundant through BUILT_SOURCES.
49631         * modules/getopt (Makefile.am): Remove explicit dependency on
49632         $(GETOPT_H), redundant through BUILT_SOURCES.
49633         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
49634         redundant through BUILT_SOURCES.
49635         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
49636         redundant through BUILT_SOURCES.
49637         * modules/stdbool (Makefile.am): Remove explicit dependency on
49638         $(STDBOOL_H), redundant through BUILT_SOURCES.
49639         * modules/stdint (Makefile.am): Remove explicit dependency on
49640         $(STDINT_H), redundant through BUILT_SOURCES.
49641         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
49642         Remove explicit dependency on $(SYSEXITS_H).
49643         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
49644
49645 2005-07-18  Simon Josefsson  <jas@extundo.com>
49646
49647         * lib/check-version.c (check_version): Accept identical versions too.
49648
49649 2005-07-18  Bruno Haible  <bruno@clisp.org>
49650
49651         * modules/lock: New file.
49652         * MODULES.html.sh (Multithreading): New section.
49653
49654 2005-07-18  Bruno Haible  <bruno@clisp.org>
49655
49656         * m4/lock.m4: New file, from GNU gettext.
49657
49658 2005-07-18  Bruno Haible  <bruno@clisp.org>
49659
49660         * lib/lock.h: New file, from GNU gettext.
49661         * lib/lock.c: New file, from GNU gettext.
49662
49663 2005-07-18  Bruno Haible  <bruno@clisp.org>
49664
49665         * lib/lock.h (gl_once_t): New type.
49666         (gl_once_define, gl_once): New macros.
49667         * lib/lock.c (fresh_once): New variable.
49668         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
49669         functions.
49670
49671 2005-07-16  Simon Josefsson  <jas@extundo.com>
49672
49673         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
49674         workaround, suggested by Bruno.
49675
49676 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
49677
49678         * modules/xalloc (Depends-on): Add xalloc-die.
49679         * modules/xvasprintf (Depends-on): Add xalloc-die.
49680
49681 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
49682
49683         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
49684         with a minor change.
49685
49686 2005-07-15  Bruno Haible  <bruno@clisp.org>
49687
49688         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
49689         When using lib/poll.c, define poll as rpl_poll.
49690
49691 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
49692
49693         * modules/argp (Depends-on): Remove unlocked-io.
49694
49695 2005-07-14  Derek Price  <derek@ximbiot.com>
49696
49697         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
49698         for glob symlink bug.
49699
49700 2005-07-14  Bruno Haible  <bruno@clisp.org>
49701
49702         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
49703         Instead, test for *_unlocked function declarations directly.
49704
49705 2005-07-11  Simon Josefsson  <jas@extundo.com>
49706
49707         * modules/size_max: New file.
49708
49709         * modules/xsize: Depend on size_max module for size_max.m4.
49710
49711 2005-07-11  Simon Josefsson  <jas@extundo.com>
49712
49713         * lib/size_max.h: New file.
49714
49715 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
49716
49717         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
49718         copyright symbol and the year.
49719         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
49720         (version_etc_va): Use parameterized copyright notice.
49721         Reword to conform to the current GNU coding standards.
49722
49723 2005-07-11  Karl Berry  <karl@gnu.org>
49724
49725         * doc/gnulib.texi (Quoting): new node.
49726         (Initial import): more info, from Patrice.
49727
49728 2005-07-11  Bruno Haible  <bruno@clisp.org>
49729
49730         * gnulib-tool (func_usage): Document option --avoid.
49731         (Command line options): Handle --avoid.
49732         (func_acceptable): New function.
49733         (func_modules_transitive_closure): Use it.
49734
49735 2005-07-11  Bruno Haible  <bruno@clisp.org>
49736
49737         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
49738         Reported by Jim Meyering.
49739
49740 2005-07-10  Bruno Haible  <bruno@clisp.org>
49741
49742         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
49743         Needed when size_t is smaller than 'unsigned int'.
49744         Reported by Paul Eggert.
49745
49746 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49747
49748         * modules/argp (Depends-on): Add unlocked-io
49749
49750 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49751
49752         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
49753         block of defines.
49754
49755 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
49756
49757         * config/srclist.txt: Comment out regcomp.c, since we have a porting
49758         fix now.
49759
49760 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
49761         and Paul Eggert  <eggert@cs.ucla.edu>
49762
49763         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
49764         in wint_t, not wchar_t.  Remove now-unnecessary cast.
49765
49766 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
49767
49768         * modules/regex (Files): Add lib/regex_internal.c,
49769         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
49770         (Depends-on): Add extensions.
49771         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
49772
49773 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
49774
49775         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
49776         pathconf.
49777         * m4/same.m4 (gl_SAME): Likewise.
49778         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
49779
49780         * m4/regex.m4: Adjust to new libc regex implementation.
49781         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
49782         all the .c and .h parts of (the new) regex.
49783         Quote the m4 stuff better.
49784         Check for RE_ICASE bug of old gnulib.
49785         Check for REG_STARTEND of recent libc.
49786         Rename local variables from jm_* to gl_*.
49787         Quote operand of "test -f".
49788         Say "recent enough" version of libc, not "version 2".
49789         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
49790         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
49791         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
49792         Remove check for btowc, isascii.
49793         Require AM_LANGINFO_CODESET.
49794
49795 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
49796
49797         * lib/regex.c, regex.h: Sync from libc.
49798         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
49799         * lib/regexec.c:
49800         New files, synced from libc, except that regex_internal.h
49801         currently has a small porting fix.
49802
49803 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
49804
49805         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
49806         regex_internal.c, regexec.c.
49807         Add regex_internal.h too, but as a comment, since the libc version
49808         is currently broken in gnulib mode.
49809
49810 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49811
49812         Support programs like Emacs that use gnulib but not gettext.
49813         * MODULES.html.sh (Internationalization functions): Add gettext-h.
49814         * modules/gettext-h: New file.
49815         * modules/gettext (Files): Remove lib/gettext.h.
49816         (Depends-on): Add gettext-h.
49817         (Makefile.am): Remove lib_SOURCES.
49818         * modules/argmatch, modules/c-stack, modules/closeout:
49819         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
49820         * modules/execute, modules/file-type, modules/getaddrinfo:
49821         * modules/getopt, modules/human, modules/javacomp:
49822         * modules/javaexec, modules/mkdir-p, modules/obstack:
49823         * modules/openat, modules/pagealign_alloc, modules/pipe:
49824         * modules/quotearg, modules/regex, modules/rpmatch:
49825         * modules/unicodeio, modules/userspec, modules/version-etc:
49826         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
49827         * modules/xsetenv:
49828         Depend on gettext-h, not gettext.
49829
49830 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
49831
49832         * gnulib-tool (func_import): Add support for 'public domain' license.
49833         * modules/alloca, modules/atexit, modules/memmove:
49834         Now public domain, not GPL.
49835         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
49836         * modules/realloc, modules/strerror, modules/strtod:
49837         Now LGPL, not GPL.
49838
49839 2005-07-05  Bruno Haible  <bruno@clisp.org>
49840
49841         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
49842         autoconf CVS. Needed for mingw.
49843
49844 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49845
49846         Remove the dependency of the strftime module on the tzset module.
49847         * modules/strftime (Depends-on): Remove dependency on tzset.
49848
49849 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49850
49851         Remove the dependency of the strftime module on the tzset module.
49852         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
49853         gl_FUNC_TZSET_CLOBBER.
49854
49855 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49856
49857         Remove the dependency of the strftime module on the tzset module.
49858         * lib/strftime.c (my_strftime)
49859         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
49860         Copy the input structure, to work around some of the bug with
49861         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
49862         Solaris releases, you should also use the tzset module, but we won't
49863         require it as a dependency any more since we don't want LGPLed code
49864         to depend on GPLed code.
49865
49866 2005-07-02  Jim Meyering  <jim@meyering.net>
49867
49868         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
49869         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
49870         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
49871         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
49872
49873 2005-07-02  Jim Meyering  <jim@meyering.net>
49874
49875         * lib/backupfile.c (backup_args): Change a `0' to NULL.
49876
49877 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49878
49879         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
49880         declares only 'struct timespec;' (!).
49881
49882 2005-07-01  Jim Meyering  <jim@meyering.net>
49883
49884         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
49885         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
49886         * lib/save-cwd.c, tempname.c:
49887         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
49888         and don't include <sys/file.h>).
49889
49890 2005-06-29  Jim Meyering  <jim@meyering.net>
49891
49892         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
49893         type name.  Use the variable name instead.
49894         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
49895         Likewise.
49896
49897 2005-06-28  Simon Josefsson  <jas@extundo.com>
49898
49899         * modules/check-version (Files): Add check-version.m4.
49900
49901 2005-06-28  Simon Josefsson  <jas@extundo.com>
49902
49903         * m4/check-version.m4: New file, suggested by Jim Meyering
49904         <jim@meyering.net>.
49905
49906 2005-06-28  Simon Josefsson  <jas@extundo.com>
49907
49908         * lib/check-version.h, lib/check-version.c: New files.
49909
49910 2005-06-28  Simon Josefsson  <jas@extundo.com>
49911
49912         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
49913         collision with global variable.  Better indentation.  Don't
49914         increment buffer pointer beyond buffer end.  Based on comments
49915         from Paul Eggert <eggert@cs.ucla.edu>.
49916
49917         * lib/base64.h: Indent.
49918
49919 2005-06-28  Simon Josefsson  <jas@extundo.com>
49920
49921         * doc/gnulib.texi (Library version handling): New section.
49922
49923 2005-06-28  Jim Meyering  <jim@meyering.net>
49924
49925         * check-module (find_included_lib_files): Hard-code another
49926         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
49927         but modules/fts-lgpl (correctly) does not list those files.
49928
49929         * modules/canonicalize (Files): Add lib/pathmax.h.
49930
49931 2005-06-25  Simon Josefsson  <jas@extundo.com>
49932
49933         * modules/check-version: New file.
49934
49935 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
49936
49937         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
49938         initializer of struct addrinfo, as an indication that we don't
49939         care how many members the structure has.
49940
49941 2005-06-24  Derek Price  <derek@ximbiot.com>
49942         and Bruno Haible  <bruno@clisp.org>
49943
49944         Remove stat module & update lstat.
49945         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
49946         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49947         * m4/stat.m4: Remove this file.
49948
49949 2005-06-24  Derek Price  <derek@ximbiot.com>
49950         and Bruno Haible  <bruno@clisp.org>
49951
49952         Remove stat module & update lstat.
49953         * lib/stat.c: Remove this file...
49954         (slash_aware_lstat): ...moving this content and its support...
49955         * lib/lstat.c (rpl_lstat): ...into here.
49956         * lib/lstat.h: New file.
49957
49958 2005-06-24  Derek Price  <derek@ximbiot.com>
49959         and Bruno Haible  <bruno@clisp.org>
49960
49961         Remove stat module & update lstat.
49962         * config/srclist.txt (libc sources): Remove stat.
49963
49964 2005-06-24  Derek Price  <derek@ximbiot.com>
49965         and Bruno Haible  <bruno@clisp.org>
49966
49967         Remove stat module & update lstat.
49968         * MODULES.html.sh (stat): Remove.
49969         * MODULES.html: Regenerated.
49970         * modules/lstat (Description): Correct function name.
49971         (Files): Add "lstat.h".
49972         (Depends-on): Remove stat, add xalloc, stat-macros.
49973         * modules/stat: Remove this file.
49974         (Include): Add "lstat.h", remove <sys/stat.h>.
49975
49976 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49977
49978         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
49979         (ranged_convert): Don't save conversion in a temporary struct.
49980         This causes a warning with GCC 4.0.0, and anyway in the typical
49981         case it's not worth the extra 100 bytes or so of code.
49982         (ranged_convert, __mktime_internal): When calling a function via a
49983         pointer P, use P () rather than (*P) (), as we now assume C89 or
49984         better.
49985
49986 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
49987
49988         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
49989         "who -r" failed to give output.  Problem reported by Tim Waugh.
49990
49991         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
49992         (xcalloc): Use it to avoid needless tests.
49993         Problem reported by Jim Meyering.
49994
49995 2005-06-20  Derek Price  <derek@ximbiot.com>
49996
49997         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
49998         unnecessary for Autoconfs > 2.59c.
49999
50000 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50001
50002         * lib/argp.h (__option_is_short): Check upper limit of
50003         __key. Isprint() requires its argument to have the value
50004         of an unsigned char or EOF.
50005
50006 2005-06-16  Jim Meyering  <jim@meyering.net>
50007
50008         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
50009         when either N or S is zero.
50010
50011 2005-06-16  Derek Price  <derek@ximbiot.com>
50012
50013         * m4/bison.m4: Declare YACC & YFLAGS precious.
50014
50015 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
50016
50017         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
50018         multibyte string or pattern, fall back on unibyte matching.
50019         Problem reported by James Youngman.
50020
50021 2005-06-08  Bruno Haible  <bruno@clisp.org>
50022
50023         * modules/csharpcomp: New file.
50024         * MODULES.html.sh (C#): Add csharpcomp.
50025
50026 2005-06-08  Bruno Haible  <bruno@clisp.org>
50027
50028         * m4/csharpcomp.m4: New file, from GNU gettext.
50029
50030 2005-06-08  Bruno Haible  <bruno@clisp.org>
50031
50032         * lib/csharpcomp.h: New file, from GNU gettext.
50033         * lib/csharpcomp.c: New file, from GNU gettext.
50034         * lib/csharpcomp.sh.in: New file, from GNU gettext.
50035
50036 2005-06-08  Bruno Haible  <bruno@clisp.org>
50037
50038         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
50039         warning on mingw.
50040
50041 2005-06-07  Derek Price  <derek@ximbiot.com>
50042
50043         Sync from CVS.
50044         * lib/glob_.h: Indent nested #ifdef.
50045
50046 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
50047
50048         Sync from coreutils.
50049         Use "file name" when talking about file names, instead of "filename"
50050         or "path", as per the GNU coding standards.
50051         * lib/mkdir-p.c: Renamed from makepath.c.
50052         (make_dir_parents): Renamed from make_path.  All callers changed.
50053         * lib/mkdir-p.h: Likewise.  All includers changed.
50054         * lib/filenamecat.c: Renamed from path-concat.c.
50055         (file_name_concat): Renamed from path_concat.  All callers changed.
50056         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
50057         * lib/filenamecat.h: Likewise.  All includers changed.
50058         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
50059         in comments or local variable names.
50060         * lib/basename.c: Likewise.
50061         * lib/canonicalize.c, canonicalize.h: Likewise.
50062         * lib/dirname.c, dirname.h: Likewise.
50063         * lib/euidaccess.c: Likewise.
50064         * lib/exclude.c: Likewise
50065         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
50066         * lib/fsusage.c, fsuage.h: Likewise.
50067         * lib/fts.c, fts_.h: Likewise.
50068         * lib/getcwd.c: Likewise.
50069         * lib/getloadavg.c: Likewise.
50070         * lib/mkstemp.c: Likewise.
50071         * lib/mountlist.c, mountlist.h: Likewise.
50072         * lib/openat.c, openat.h: Likewise.
50073         * lib/readlink-stub.c: Likewise.
50074         * lib/readutmp.c, readutmp.h: Likewise.
50075         * lib/rename.c: Likewise.
50076         * lib/rmdir.c: Likewise.
50077         * lib/same.c: Likewise.
50078         * lib/savedir.c: Likewise.
50079         * lib/stripslash.c: Likewise.
50080         * lib/tempname.c: Likewise.
50081         * lib/xreadlink.c: Likewise.
50082         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
50083         All uses changed.
50084         * lib/exclude.h: Likewise.
50085
50086         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
50087         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50088         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
50089         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50090         * lib/pathmax.h: Include <limits.h> unconditionally, since other
50091         files have been getting away with it for years (MORE/BSD 4.3
50092         is extinct now).
50093         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
50094         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50095
50096         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
50097         Define to 256, not 255, as per modern POSIX.
50098
50099 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
50100
50101         Sync from coreutils.
50102         Use "file name" when talking about file names, instead of "filename"
50103         or "path", as per the GNU coding standards.
50104         * MODULES.html.sh: mkdir-p renamed from makepath.
50105         filenamecat renamed from path-concat.
50106         * modules/filenamecat: Renamed from modules/path-concat.
50107         (Files): filenamecat.h and filenamecat.c renamed from
50108         path-concat.h and path-concat.c.
50109         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
50110         (Include): filenamecat.h, not path-concat.h.
50111         * modules/mkdir-p: Renamed from modules/makepath.
50112         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
50113         makepath.c.
50114         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
50115         (Include): mkdir-p.h, not makepath.h.
50116
50117 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
50118
50119         Sync from coreutils.
50120         * m4/mkdir-p.m4: Renamed from makepath.m4.
50121         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
50122         Rename files from makepath.c to mkdir-p.c, and from
50123         makepath.h to mkdir-p.h.
50124         * m4/filenamecat.m4: Renamed from path-concat.m4.
50125         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
50126         Rename files from path-concat.c to filenamecat.c,
50127         and from path-concat.h to filenamecat.h.
50128         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
50129         "file name" in local variables or comments.
50130         * m4/rename.m4: Likewise.
50131
50132 2005-06-01  Bruno Haible  <bruno@clisp.org>
50133
50134         * modules/csharpexec: New file.
50135         * MODULES.html.sh (C#): New section.
50136
50137 2005-06-01  Bruno Haible  <bruno@clisp.org>
50138
50139         * m4/csharp.m4: New file, from GNU gettext.
50140         * m4/csharpexec.m4: New file, from GNU gettext.
50141
50142 2005-06-01  Bruno Haible  <bruno@clisp.org>
50143
50144         * lib/csharpexec.h: New file, from GNU gettext.
50145         * lib/csharpexec.c: New file, from GNU gettext.
50146         * lib/csharpexec.sh.in: New file, from GNU gettext.
50147
50148 2005-05-31  Derek Price  <derek@ximbiot.com>
50149             Paul Eggert  <eggert@cs.ucla.edu>
50150
50151         Sync from cvs.
50152         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
50153
50154 2005-05-31  Derek Price  <derek@ximbiot.com>
50155             Paul Eggert  <eggert@cs.ucla.edu>
50156
50157         Sync from cvs.
50158         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
50159
50160 2005-05-29  Derek Price  <derek@ximbiot.com>
50161
50162         * config/srclist.txt (glob_.h, glob.c): Add these files.
50163
50164 2005-05-29  Derek Price  <derek@ximbiot.com>
50165
50166         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
50167         * modules/glob: New file.
50168         * modules/getlogin_r: Add link to POSIX spec in description.
50169
50170 2005-05-29  Derek Price  <derek@ximbiot.com>
50171             Paul Eggert  <eggert@cs.ucla.edu>
50172
50173         * m4/glob.m4: New file.
50174
50175 2005-05-29  Derek Price  <derek@ximbiot.com>
50176             Paul Eggert  <eggert@cs.ucla.edu>
50177
50178         * lib/glob_.h, lib/glob.c: New files.
50179
50180 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
50181
50182         * modules/fts (Files): Remove m4/inttypes-pri.m4.
50183         * modules/fts-lgpl (Depends-on): Remove gettext.
50184
50185 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
50186
50187         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
50188         and don't require gt_INTTYPES_PRI.
50189
50190 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
50191
50192         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
50193
50194         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
50195         the configuration hassle isn't worth it.
50196         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
50197         (LONGEST_MODIFIER, PRIuMAX): Remove.
50198
50199 2005-05-27  Bruno Haible  <bruno@clisp.org>
50200
50201         * lib/getlogin_r.h: Remove second include of <stddef.h>.
50202
50203 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
50204
50205         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
50206         _POSIX_PTHREAD_SEMANTICS for Solaris.
50207
50208 2005-05-25  Derek Price  <derek@ximbiot.com>
50209
50210         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
50211
50212 2005-05-25  Derek Price  <derek@ximbiot.com>
50213             Paul Eggert  <eggert@cs.ucla.edu>
50214
50215         * modules/getlogin_r, m4/getlogin_r.m4: New files.
50216         * lib/getlogin_r.c, getlogin_r.h: New files.
50217
50218 2005-05-25  Bruno Haible  <bruno@clisp.org>
50219             Derek Price  <derek@ximbiot.com>
50220
50221         * lib/getlogin_r.h: Simplify API documentation.
50222
50223 2005-05-23  Derek Price  <derek@ximbiot.com>
50224
50225         * modules/minmax (Files): Add m4/minmax.m4.
50226         (configure.ac): Add gl_MINMAX.
50227
50228 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
50229
50230         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
50231         so that unistd-safer.h (GPL'ed code) need not be included.
50232
50233 2005-05-22  Bruno Haible  <bruno@clisp.org>
50234
50235         * m4/minmax.m4: New file.
50236         Based on a patch by Derek Price <derek@ximbiot.com>.
50237
50238 2005-05-22  Bruno Haible  <bruno@clisp.org>
50239
50240         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
50241         (INT64_MIN): Fix definition.
50242         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
50243
50244         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
50245         NEED_SIGNED_INT_TYPES.
50246
50247         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
50248         HAVE_SYSTEM_INTTYPES.
50249
50250 2005-05-22  Bruno Haible  <bruno@clisp.org>
50251
50252         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
50253         Also include <sys/param.h> if it defines MIN, MAX.
50254         Based on a patch by Derek Price <derek@ximbiot.com>.
50255
50256 2005-05-21  Jim Meyering  <jim@meyering.net>
50257
50258         * modules/fts (Files): Add m4/inttypes-pri.m4.
50259         (Depends-on): Add lstat and remove gettext.  Alphabetize.
50260
50261 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
50262
50263         New fts module.
50264         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
50265         (setup_dir, free_dir): New functions.
50266         (enter_dir, leave_dir): Define trivial
50267         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
50268         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
50269         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
50270         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
50271         Move to fts-cycle.c.
50272         (fts_open): Use setup_dir.
50273         (fts_close): Use free_dir.
50274         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
50275         This adds a label and some gotos, but the alternatives were messier.
50276         Check for memory allocation failure when entering a dir.
50277         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
50278         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
50279         (FTS): New member fts_cycle, that is a union that contains the
50280         old active_dir_ht and cycle_state.  All uses changed to mention
50281         fts_cycle.ht and fts_cycle.state.
50282         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
50283         fts.c, with the following changes:
50284         (setup_dir, free_dir): New functions.
50285         (enter_dir): Now returns bool.  Return true if successful, false
50286         if memory exhausted.  All callers changed.
50287         Do not bother partly cleaning up on
50288         memory allocation failure; that is free_dir's job.
50289         However, free ad if hash_insert fails, to avoid memory leak.
50290         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
50291         fts->fts_options to see which union member to use.
50292
50293 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
50294
50295         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
50296         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
50297
50298 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
50299
50300         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
50301
50302 2005-05-20  Jim Meyering  <jim@meyering.net>
50303
50304         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
50305         Now a macro, to pacify GCC.
50306
50307 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
50308
50309         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
50310         of -1.
50311
50312 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
50313
50314         * lib/chown.c (rpl_chown): Return -1 on failure.
50315
50316 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
50317
50318         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
50319         Don't check for stddef.h.
50320         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
50321         don't use its results.
50322         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
50323         since we include them unconditionally.  Don't require
50324         AM_STDBOOL_H, since stdbool is a prerequisite.
50325         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
50326         since we assume C89 or better.
50327         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
50328         as we don't use their results.
50329         Don't check for fchdir, memmove, memset, strrchr, as we use
50330         them unconditionally.
50331         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
50332         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
50333
50334 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
50335
50336         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
50337         Include <stddef.h> unconditionally, since we assume C89 now.
50338         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
50339         * lib/fts.c: Include fts_.h first, to check interface.
50340         Do not include intprops.h; no longer needed.
50341         Include cycle-check.h and hash.h, since fts_.h no longer does.
50342         Remove unnecessary casts of closedir to void.
50343         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
50344         decide whether to decrement nlinks.
50345         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
50346         (FTS): Use struct hash_table * instead of Hash_table, so that
50347         we no longer need to include hash.h here.
50348
50349 2005-05-18  Jim Meyering  <jim@meyering.net>
50350
50351         * modules/dirfd (License): Change to LGPL.  Most of the code
50352         is already in the public domain.
50353
50354 2005-05-18  Jim Meyering  <jim@meyering.net>
50355
50356         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
50357         Reported by Yoann Vandoorselaere.
50358
50359 2005-05-17  Jim Meyering  <jim@meyering.net>
50360
50361         * m4/fts.m4: New file, from coreutils.
50362
50363 2005-05-17  Jim Meyering  <jim@meyering.net>
50364
50365         * lib/fts.c, lib/fts_.h: New files, from coreutils.
50366
50367 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50368
50369         Sync from coreutils.
50370         * m4/unlinkdir.m4: New file.
50371
50372 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50373
50374         Sync from coreutils.
50375         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
50376         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
50377         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
50378         White space changes only.
50379         * lib/makepath.c (make_path): Port to hosts where leading "//" is
50380         special.
50381         * lib/yesno.c: Include getline.h, not ctype.h.
50382         (yesno): Don't remove leading white space; POSIX doesn't allow it.
50383         Use getline to remove arbitrary restriction on response length.
50384
50385 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50386
50387         * config/srclist-update: Spell out "Street" in FSF postal
50388         mail address; this is the style the FSF seems to prefer.
50389
50390         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
50391         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
50392         this updates FSF postal mail address.
50393
50394         Sync from coreutils.
50395         * modules/unlinkdir: New file.
50396         * modules/yesno (Depends-on): Add getline.
50397         * MODULES.html.sh (File system functions): Add unlinkdir.
50398
50399 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
50400
50401         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
50402         lib/strsep.h:
50403         Change the initial comment to refer to GPL, not LGPL.
50404         gnulib-tool will change it to LGPL as needed.
50405
50406         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
50407         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
50408         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
50409         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
50410         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
50411         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
50412         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
50413         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
50414         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
50415         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
50416         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
50417         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
50418         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
50419         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
50420         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
50421         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
50422         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
50423         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
50424         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
50425         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
50426         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
50427         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
50428         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
50429         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
50430         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
50431         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
50432         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
50433         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
50434         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
50435         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
50436         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
50437         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
50438         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
50439         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
50440         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
50441         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
50442         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
50443         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
50444         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
50445         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
50446         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
50447         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
50448         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
50449         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
50450         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
50451         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
50452         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
50453         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
50454         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
50455         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
50456         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
50457         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
50458         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
50459         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
50460         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
50461         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
50462         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
50463         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
50464         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
50465         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
50466         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
50467         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
50468         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
50469         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
50470         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
50471         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
50472         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
50473         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
50474         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
50475         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
50476         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
50477         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
50478         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
50479         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
50480         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
50481         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
50482         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
50483         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
50484         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
50485         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
50486         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
50487         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
50488         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
50489         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
50490         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
50491         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
50492         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
50493         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
50494         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
50495         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
50496         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
50497         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
50498         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
50499         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
50500         lib/yesno.c, lib/yesno.h:
50501         Update FSF postal mail address.
50502
50503 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
50504
50505         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
50506         tests/test-memmem.c, tests/test-stpncpy.c:
50507         Update FSF postal mail address.
50508
50509 2005-05-13  Bruno Haible  <bruno@clisp.org>
50510
50511         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
50512         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
50513         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
50514         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
50515         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
50516         Add support for 64-bit integers in the MSVC compiler.
50517
50518 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50519
50520         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
50521
50522 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
50523
50524         * gnulib-tool (func_import): Sort and uniquify recommended includes.
50525
50526 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
50527
50528         * doc/getdate.texi (General date syntax): Don't say that date
50529         date --iso-8601=ns generates acceptable dates; it doesn't yet.
50530         Problem reported by Nic Ferrier.
50531
50532 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50533
50534         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
50535         specified in ai_socktype. Fix invalid ai_protocol
50536         check. ai_protocol is usually set to 0 or depending on
50537         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
50538         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
50539         ai_socktype / ai_protocol in the returned addrinfo structure.
50540
50541 2005-05-10  Simon Josefsson  <jas@extundo.com>
50542
50543         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
50544         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50545
50546 2005-05-10  Karl Berry  <karl@gnu.org>
50547
50548         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
50549         (from http://www.gnu.org/licenses).
50550         * doc/COPYING.LIB: also rename to COPYING.LESSER.
50551         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
50552         fdl.texi suffices.
50553
50554 2005-05-10  Karl Berry  <karl@gnu.org>
50555
50556         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
50557         (COPYING.DOC): remove.
50558
50559         * config/srclist-update: new FSF address.
50560
50561 2005-05-10  Derek Price  <derek@ximbiot.com>
50562
50563         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
50564         possible.
50565
50566 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50567             Bruno Haible  <bruno@clisp.org>
50568
50569         * modules/inet_ntop: New file.
50570         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50571         inet_ntop.
50572
50573 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50574             Bruno Haible  <bruno@clisp.org>
50575
50576         * m4/inet_ntop.m4: New file.
50577
50578 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50579             Bruno Haible  <bruno@clisp.org>
50580
50581         * lib/inet_ntop.h: New file.
50582         * lib/inet_ntop.c: New file, from glibc with modifications.
50583
50584 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
50585
50586         * modules/time_r (License): Change to LGPL.
50587         * modules/extensions (License): Change to LGPL.  Actually,
50588         the license is more permissive than that, but currently gnulib-tool
50589         doesn't know how to handle more-permissive licenses.
50590
50591         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
50592         Problem reported by Dave Love.
50593
50594 2005-05-08  Jim Meyering  <jim@meyering.net>
50595
50596         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
50597         blank.
50598
50599 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
50600
50601         * modules/argmatch (Depends-on): Add stdbool.
50602         * modules/backupfile (Depends-on): Likewise.
50603         * modules/chdir-long (Depends-on): Likewise.
50604         * modules/closeout (Depends-on): Likewise.
50605         * modules/cycle-check (Depends-on): Likewise.
50606         * modules/dirname (Depends-on): Likewise.
50607         * modules/fnmatch (Depends-on): Likewise.
50608         * modules/fsusage (Depends-on): Likewise.
50609         * modules/fwriteerror (Depends-on): Likewise.
50610         * modules/getcwd (Depends-on): Likewise.
50611         * modules/getloadavg (Depends-on): Likewise.
50612         * modules/hard-locale (Depends-on): Likewise.
50613         * modules/makepath (Depends-on): Likewise.
50614         * modules/mountlist (Depends-on): Likewise.
50615         * modules/nanosleep (Depends-on): Likewise.
50616         * modules/posixtm (Depends-on): Likewise.
50617         * modules/quotearg (Depends-on): Likewise.
50618         * modules/readtokens (Depends-on): Likewise.
50619         * modules/readtokens0 (Depends-on): Likewise.
50620         * modules/readutmp (Depends-on): Likewise.
50621         * modules/save-cwd (Depends-on): Likewise.
50622         * modules/strftime (Depends-on): Likewise.
50623         * modules/userspec (Depends-on): Likewise.
50624         * modules/utimecmp (Depends-on): Likewise.
50625         * modules/xgetcwd (Depends-on): Likewise.
50626         * modules/xnanosleep (Depends-on): Likewise.
50627         * modules/xstrtod (Depends-on): Likewise.
50628         * modules/yesno (Depends-on): Likewise.
50629
50630 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
50631
50632         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
50633         needless checks.
50634
50635 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
50636
50637         Merge from coreutils.  Among other things,
50638         add bulletproofing for cases where stdin, stdout, or stderr are closed.
50639         * lib/fd-safer.c: New file.
50640         * lib/fcntl-safer.h, open-safer.c: Remove.
50641         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
50642         * lib/dup-safer.c: Include unistd-safer.h first.
50643         Don't include errno.h.
50644         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
50645         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
50646         * lib/file-type.c: Rely on file-type.h change.
50647         * lib/getloadavg.c: Include unistd-safer.h.
50648         (getloadavg): Use safer open.
50649         * lib/getusershell.c: Include "stdio-safer.h".
50650         (getusershell): Use safer fopen.
50651         * lib/long-options.c (long_options): Use NULL rather than 0.
50652         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
50653         'free'.
50654         * lib/modechange.c: Likewise.
50655         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
50656         (MODE_DONE): New constant.
50657         (struct mode_change): Remove 'next' member.
50658         (make_node_op_equals): New function; like the old one of the
50659         same name, except it allocates an array.
50660         (mode_compile, mode_create_from_ref): Use it.
50661         (mode_compile): Allocate result as an array, not a linked list.
50662         Parse octal string ourself, so that we catch mistakes like "+0".
50663         (mode_adjust): Arg is an array, not a linked list.
50664         * lib/modechange.c: Include stat-macros.h, xalloc.h.
50665         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
50666         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
50667         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
50668         Remove.  This is now stat-macros.h's job.
50669         (talloc): Remove.  All callers replaced by xalloc, so that
50670         our invokers don't have to worry about reporting memory failures.
50671         (make_node_op_equals): Remove.
50672         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
50673         New constants.
50674         (struct mode_change): Moved here from modechange.h.
50675         (mode_append_entry): Remove.
50676         (mode_compile): Remove MASKED_OPS arg, since it encouraged
50677         apps to have incorrect behavior.  Use simpler algorithm for head
50678         and tail.  Don't futz with umask; that's now the job of mode_adjust.
50679         Detect more invalid usages rather than having somewhat-random behavior.
50680         Don't insert an "a=" action, as that leads to incorrect behavior.
50681         (mode_compile, mode_create_from_ref): Return NULL on error instead
50682         of an enum, since now there's only one way to have an error.  All
50683         callers changed.
50684         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
50685         at the correct time.  Simplify calculation of "+u" and its ilk.
50686         Don't mishandle "+X".
50687         (mode_free): Remove "register" and localize decls.
50688         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
50689         (struct mode_change): Move to modechange.c; callers don't
50690         need to see this stuff.
50691         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
50692         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
50693         (mode_change, mode_adjust): Reflect the new signatures noted above.
50694         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
50695         that might redefine system include files.
50696         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
50697         (my_usleep): Use NULL rather than (void *) 0.
50698         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
50699         Use siginterrupt to specify that system calls should be interrupted.
50700         (rpl_nanosleep): Move initialization of suspended closer to call of
50701         my_usleep.
50702         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
50703         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
50704         (desirable_utmp_entry): New function.
50705         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
50706         using x2nrealloc, to simplify logic.
50707         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
50708         size calculation.  Do not assume utmp file is a regular file.
50709         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
50710         (READ_UTMP_CHECK_PIDS): New constant.
50711         * lib/save-cwd.c: Include unistd-safer.h.
50712         (save_cwd): Use fd_safer.
50713         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
50714         [!_LIBC] Include "stat-macros.h" instead.
50715         * lib/unistd-safer.h (fd_safer): New decl.
50716
50717 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
50718
50719         * modules/getloadavg (Depends-on): Add unistd-safer.
50720         * modules/getusershell (Depends-on): Add stdio-safer.
50721         * modules/lstat (Depends-on): Remove xalloc.
50722         * modules/mkstemp (Depends-on): Add stat-macros.
50723         * modules/modechange (Depends-on): Remove xstrtol.
50724         Add stat-macros, xalloc.
50725         * modules/save-cwd (Depends-on): Add unistd-safer.
50726         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
50727         * modules/unistd-safer (Files): Add lib/fd-safer.c
50728         (Makefile.am): Remove lib_SOURCES.
50729
50730         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
50731         Remove fcntl-safer; unistd-safer supersedes it.
50732
50733 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
50734
50735         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
50736         AC_HEADER_STAT.
50737         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
50738         (gl_PREREQ_CHOWN): Remove.
50739         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
50740         it.  Don't require AC_HEADER_STAT.
50741         (gl_PREREQ_LSTAT): Remove.
50742         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
50743         Don't require AC_HEADER_STAT.
50744         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
50745         (gl_PREREQ_RMDIR): Remove.
50746         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
50747         mention stat-macros.h or AC_HEADER_STAT, since we'll make
50748         the stat-macros module a prerequisite.
50749         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
50750         * m4/filemode.m4 (gl_FILEMODE): Likewise.
50751         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
50752         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
50753         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
50754         variable names.
50755         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
50756         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
50757         variable prefixes.
50758         * m4/fcntl-safer.m4: Remove.
50759         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
50760         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
50761         Invoke gl_PREREQ_FD_SAFER.
50762         (gl_PREREQ_FD_SAFER): New macro.
50763         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
50764         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
50765         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
50766         Remove duplicate call to AC_LIBOBJ(readutmp).
50767         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
50768
50769         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
50770         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
50771
50772 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
50773
50774         * MODULES.html.sh (Misc): Add byteswap.
50775
50776 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
50777
50778         * modules/getcwd (Depends-on): Add extensions.
50779         * modules/openat (Depends-on): Likewise.
50780
50781 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
50782
50783         * modules/byteswap: New file.
50784
50785 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
50786
50787         * m4/byteswap.m4: New file.
50788
50789 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
50790
50791         * lib/byteswap_.h: New file.
50792
50793 2005-04-25  Karl Berry  <karl@gnu.org>
50794
50795         * m4/gettext.m4: Update from GNU gettext 0.14.4.
50796
50797 2005-04-25  Albert Chin  <china@thewrittenword.com>
50798
50799         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
50800         Toolkit C bug.
50801
50802 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
50803
50804         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
50805         (func_ln_if_changed) Remove forcibly for no error message
50806         in case file does not exist.
50807
50808 2005-04-19  Simon Josefsson  <jas@extundo.com>
50809
50810         * gnulib-tool (Options): Make --symlink mean --symbolic.
50811
50812 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
50813
50814         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
50815
50816 2005-04-16  Simon Josefsson  <jas@extundo.com>
50817
50818         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
50819
50820 2005-04-15  Simon Josefsson  <jas@extundo.com>
50821
50822         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
50823
50824 2005-04-15  Simon Josefsson  <jas@extundo.com>
50825
50826         * gnulib-tool: Rename --symlink to --symbolic.
50827
50828 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
50829
50830         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
50831         symbolic links to files instead of copying/moving.  Add --aux-dir,
50832         specifying directory relative --dir where auxiliary build tools
50833         are placed.
50834
50835 2005-04-14  Bruno Haible  <bruno@clisp.org>
50836
50837         * modules/allocsa (License): Change to LGPL.
50838         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50839
50840 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50841
50842         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
50843         that "UTC +1 second" continues to work.  Problem reported
50844         by Dmitry V. Levin.
50845         (relunit_snumber): New rule.
50846         (relunit): Use it.
50847
50848 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
50849
50850         * lib/getdate.y (universal_time_zone_table): New constant.
50851         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
50852         universal_time_zone_table.
50853         (lookup_zone): Prefer universal_time_zone_table to
50854         local_time_zone_table, so that "GMT" time stamps are allowed in
50855         London during the summer.  Problem reported by Ian Abbott.
50856
50857 2005-04-12  Jim Meyering  <jim@meyering.net>
50858
50859         * lib/human.c (humblock): Set *options even when returning due to
50860         xstrtoumax conversion failure.  Thanks to a used-uninitialized
50861         warning from gcc-4.
50862
50863 2005-04-09  Jim Meyering  <jim@meyering.net>
50864
50865         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
50866         -Wuninitialized: initialize tm0.tm_year.
50867
50868 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
50869
50870         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
50871         count, since there's no maximum.  All uses changed.
50872         Add member dsts_seen.
50873         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
50874         not being INT_MAX.
50875         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
50876         Use pc_rels_seen to decide whther a date is absolute.
50877
50878         * lib/getdate.y (number): Don't overwrite year.
50879         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
50880         check.
50881
50882 2005-04-02  Simon Josefsson  <jas@extundo.com>
50883
50884         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
50885         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
50886
50887 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
50888
50889         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
50890         where no absolute path name can be longer than PATH_MAX.
50891
50892 2005-03-27  Jim Meyering  <jim@meyering.net>
50893
50894         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
50895
50896 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
50897
50898         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
50899         "one's complement" -> "ones' complement" in comment, as per Knuth.
50900         "value of type" -> "type or expression" in comment.
50901         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
50902
50903 2005-03-26  Jim Meyering  <jim@meyering.net>
50904
50905         Comment nits.
50906         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
50907         Correct typos: s/or/of/.
50908
50909 2005-03-26  Jim Meyering  <jim@meyering.net>
50910
50911         * modules/check-include-files: Move to ../ and rename to...
50912         * check-module: ...this.
50913
50914 2005-03-25  Jim Meyering  <jim@meyering.net>
50915
50916         * modules/xvasprintf (Files): Add xalloc.h.
50917
50918 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
50919
50920         * modules/gettext (Files): config/config.rpath ->
50921         build-aux/config.rpath
50922         * modules/iconv (Files): Likewise.
50923         Problem reported by Oskar Liljeblad.
50924
50925 2005-03-23  Jim Meyering  <jim@meyering.net>
50926
50927         * modules/check-include-files: New script to check for
50928         missing dependencies, multiple includes, etc.
50929
50930         * modules/c-strtold (Depends-on): Add xalloc.
50931         * modules/c-strtod (Depends-on): Add xalloc.
50932         * modules/hash (Depends-on): Add xalloc.
50933         (Files): Remove lib/xalloc.h.
50934
50935         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
50936         * modules/userspec (Files): Add lib/inttostr.h.
50937
50938 2005-03-23  Jim Meyering  <jim@meyering.net>
50939
50940         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
50941
50942 2005-03-22  Jim Meyering  <jim@meyering.net>
50943
50944         * modules/stat-macros: New module.
50945         * modules/canonicalize, modules/euidaccess, modules/file-type,
50946         * modules/filemode, modules/lchown, modules/makepath,
50947         * modules/rmdir, modules/stat: Depend on new stat-macros module
50948         rather than listing lib/stat-macros.h manually.
50949         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
50950
50951 2005-03-22  Jim Meyering  <jim@meyering.net>
50952
50953         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
50954
50955 2005-03-22  Bruno Haible  <bruno@clisp.org>
50956
50957         * config/srclist.txt: Replace target directory 'config' with
50958         'build-aux'.
50959         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
50960         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
50961         ../build-aux/.
50962
50963 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
50964
50965         * modules/chdir-long (Depends-on): Add mempcpy.
50966
50967         * modules/acl, modules/backupfile, modules/c-strtod,
50968         modules/c-strtold, modules/canon-host, modules/canonicalize,
50969         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
50970         modules/exclude, modules/exitfail, modules/file-type,
50971         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
50972         modules/getdate, modules/getline, modules/getpagesize,
50973         modules/getpass, modules/getugroups, modules/group-member,
50974         modules/hard-locale, modules/hash, modules/human, modules/idcache,
50975         modules/inttostr, modules/long-options, modules/makepath,
50976         modules/md5, modules/memcasecmp, modules/memcoll,
50977         modules/modechange, modules/mountlist, modules/path-concat,
50978         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
50979         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
50980         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
50981         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
50982         modules/strftime, modules/strndup, modules/strverscmp,
50983         modules/timespec, modules/unlocked-io, modules/userspec,
50984         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
50985         modules/yesno:
50986         Remove lib_SOURCES line from Makefile.am section, as this is now
50987         done automatically by the corresponding Autoconf macro.
50988
50989 2005-03-21  Jim Meyering  <jim@meyering.net>
50990
50991         Changes imported from coreutils.
50992
50993         * lib/cycle-check.c: Don't include xalloc.h.
50994
50995         * lib/path-concat.c: Don't include assert.h.
50996         (path_concat): Remove assertion that would have triggered
50997         for ABASE starting with more than one slash.
50998         Reported by Andreas Schwab.
50999
51000         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
51001         properly when ABASE is an absolute file name.
51002         Correct the description of this function.
51003         Include <assert.h>.
51004         Add an assertion and a test driver.
51005         This fixes a bug introduced on 2004-07-02.
51006         Andreas Schwab reported the resulting failure of cp --parents:
51007         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
51008
51009 2005-03-21  Jim Meyering  <jim@meyering.net>
51010
51011         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
51012         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
51013
51014 2005-03-21  Jim Meyering  <jim@meyering.net>
51015         and  Paul Eggert  <eggert@cs.ucla.edu>
51016
51017         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
51018         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
51019         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
51020         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
51021         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
51022         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
51023         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
51024         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
51025         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
51026         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
51027         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
51028         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
51029         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
51030         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
51031         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
51032         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
51033         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
51034         for these modules.
51035
51036 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
51037
51038         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
51039         (which shouldn't happen), generate nothing instead of returning 0
51040         immediately, so that nstrftime (NULL, ...) doesn't return 0.
51041
51042 2005-03-16  Bruno Haible  <bruno@clisp.org>
51043
51044         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
51045         HAVE_LONGLONG_64BIT.
51046
51047 2005-03-16  Bruno Haible  <bruno@clisp.org>
51048
51049         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
51050         HAVE_LONGLONG_64BIT.
51051
51052 2005-03-16  Bruno Haible  <bruno@clisp.org>
51053
51054         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
51055         HAVE_LONGLONG_64BIT.
51056
51057 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
51058
51059         * lib/strftime.c (my_strftime): Prepend space to format so that we can
51060         reliably distinguish strftime failure from empty output on POSIX
51061         hosts.
51062
51063 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
51064
51065         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
51066         (iconv_string): Don't guess a size-zero buffer, as that might cause
51067         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
51068         result would be 'too large', where 'too large' is (heuristically)
51069         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
51070         overflow concerns.  This will prevent some unwanted malloc failures
51071         when the inputs are very large.
51072
51073 2005-03-15  Karl Berry  <karl@gnu.org>
51074
51075         * config/srclist.txt (config.rpath): from gettext.
51076         * config/config.rpath: update.
51077
51078 2005-03-15  Bruno Haible  <bruno@clisp.org>
51079
51080         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
51081         to 'negate'.
51082
51083         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
51084         variable.
51085
51086         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
51087         results.
51088
51089 2005-03-14  Simon Josefsson  <jas@extundo.com>
51090
51091         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
51092         <fx@gnu.org>.
51093
51094 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
51095
51096         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
51097         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
51098         intprops.h.
51099         * lib/strtol.c: Likewise.
51100
51101 2005-03-14  Jim Meyering  <jim@meyering.net>
51102
51103         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
51104         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
51105         to be nonzero so that we (and caller) can detect the difference
51106         between a valid zero-length expansion and an error return, even
51107         when the underlying strftime fails before writing anything into
51108         that location.
51109
51110 2005-03-14  Bruno Haible  <bruno@clisp.org>
51111
51112         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
51113         Update from GNU gettext 0.14.3.
51114
51115 2005-03-10  Jim Meyering  <jim@meyering.net>
51116
51117         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
51118
51119 2005-03-10  Jim Meyering  <jim@meyering.net>
51120
51121         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
51122         so that this module works on systems without fchdir.
51123
51124 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
51125
51126         Factor int-properties macros into a single file, except for
51127         glibc-related files.
51128         * lib/intprops.h: New file.
51129         * lib/getloadavg.c: Include it instead of limits.h.
51130         (INT_STRLEN_BOUND): Remove.
51131         * lib/human.c: Include intprops.h.
51132         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
51133         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
51134         302/1000.
51135         * lib/inttostr.h: Include intprops.h instead of limits.h.
51136         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
51137         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
51138         for consistency with intprops.h.
51139         (time_t_is_integer, twos_complement_arithmetic): Use them.
51140         * lib/sig2str.h: Include <signal.h>, intprops.h.
51141         (INT_STRLEN_BOUND): Remove.
51142         * lib/strftime.c (TYPE_SIGNED): Remove.
51143         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
51144         * lib/strtol.c: Adjust comments to match intprops.h.
51145         * lib/userspec.c: Include intprops.h.
51146         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
51147         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
51148         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
51149         instead of rolling our own expressions.
51150         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
51151
51152         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
51153         instead of int.
51154         (my_strftime): Do not mishandle years close to INT_MAX, by doing
51155         the right thing even if adding 1900 would overflow.  Similarly
51156         for tm_mon + 1 and tm_yday + 1.
51157         Make %Y always equivalent to %C%y, and similarly for %G and %g.
51158         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
51159         (DO_SIGNED_NUMBER): New macro.
51160         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
51161
51162 2005-03-07  Bruno Haible  <bruno@clisp.org>
51163
51164         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
51165
51166 2005-03-07  Bruno Haible  <bruno@clisp.org>
51167
51168         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
51169
51170 2005-03-04  Derek R. Price  <derek@ximbiot.com>
51171
51172         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
51173         (func_import): Only replace files via --import when they have actually
51174         changed.
51175
51176 2005-03-03  Derek R. Price  <derek@ximbiot.com>
51177
51178         * m4/mmap-anon.m4: New file.
51179         * m4/pagealign_alloc.m4: New file.
51180
51181 2005-03-03  Derek R. Price  <derek@ximbiot.com>
51182             Bruno Haible  <bruno@clisp.org>
51183
51184         * modules/pagealign_alloc: New file.
51185         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
51186
51187 2005-03-03  Derek R. Price  <derek@ximbiot.com>
51188             Bruno Haible  <bruno@clisp.org>
51189
51190         * lib/pagealign_alloc.h: New file.
51191         * lib/pagealign_alloc.c: New file.
51192
51193 2005-03-03  Bruno Haible  <bruno@clisp.org>
51194
51195         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
51196         Use an all-permissive copyright notice, recommended by RMS.
51197
51198 2005-03-02  Bruno Haible  <bruno@clisp.org>
51199
51200         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
51201         of AIX, the replacement has to be done only after <string.h> is
51202         included, therefore not in config.h. stpncpy.h does the replacement,
51203         and stpncpy.c uses it.
51204
51205 2005-03-02  Bruno Haible  <bruno@clisp.org>
51206
51207         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
51208         stpncpy.c uses it.
51209
51210 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51211
51212         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
51213         The workaround isn't strictly needed for POSIX conformance, and
51214         it's too much of a pain to configure and maintain.  We'll ask
51215         people to fix their kernels instead.
51216         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
51217         (NANOSLEEP_BUG_WORKAROUND): Remove.
51218         (xnanosleep): Remove the workaround.
51219
51220 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51221
51222         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
51223         Reported by Derek Price.
51224         (Include): Add "timespec.h".
51225
51226         * modules/xnanosleep (Depends-on): Remove gethrxtime.
51227
51228 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51229
51230         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
51231         to detect nanosleep bug.
51232
51233 2005-03-01  Bruno Haible  <bruno@clisp.org>
51234
51235         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
51236
51237 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
51238
51239         * modules/gethrxtime: New file.
51240         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
51241         (Depends-on): Add gethrxtime.
51242         (configure.ac): Add gl_XNANOSLEEP.
51243         (Makefile.am): Remove lib_SOURCES line.
51244
51245 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
51246
51247         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
51248         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
51249
51250 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
51251
51252         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
51253         * lib/timespec.h (gettime): Return void, since it always
51254         succeeds now.  All uses changed.
51255         * lib/gettime.c (gettime) Likewise.
51256         [HAVE_NANOTIME]: Prefer nanotime.
51257         Assume gettimeofday succeeds, as POSIX requires.
51258         Assime time () succeeds, since other code already does.
51259         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
51260         (timespec_subtract): Remove.
51261         (NANOSLEEP_BUG_WORKAROUND): New constant.
51262         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
51263         things considerably.  Use it only on GNU/Linux hosts, since the
51264         workaround shouldn't be needed elsewhere.
51265
51266 2005-02-24  Bruno Haible  <bruno@clisp.org>
51267
51268         * modules/gettext (Files): Add m4/glibc2.m4.
51269
51270 2005-02-24  Bruno Haible  <bruno@clisp.org>
51271
51272         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
51273         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
51274         * m4/progtest.m4:
51275         Update from GNU gettext 0.14.2.
51276         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
51277
51278 2005-02-24  Bruno Haible  <bruno@clisp.org>
51279
51280         * lib/localcharset.c: Update from GNU gettext 0.14.2.
51281         * lib/config.charset: Update from GNU gettext 0.14.2.
51282
51283 2005-02-24  Bruno Haible  <bruno@clisp.org>
51284
51285         * lib/gettext.h: Update from GNU gettext 0.14.2.
51286
51287 2005-02-23  Simon Josefsson  <jas@extundo.com>
51288
51289         * m4/iconvme.m4: New file.
51290
51291 2005-02-23  Jim Meyering  <jim@meyering.net>
51292
51293         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
51294         change.
51295         Thanks to Bruno Haible for catching it.
51296
51297 2005-02-22  Simon Josefsson  <jas@extundo.com>
51298
51299         * modules/iconvme: New file.
51300
51301         * MODULES.html.sh: Add iconvme.
51302
51303 2005-02-22  Simon Josefsson  <jas@extundo.com>
51304
51305         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
51306
51307 2005-02-22  Simon Josefsson  <jas@extundo.com>
51308
51309         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
51310
51311 2005-02-22  Jim Meyering  <jim@meyering.net>
51312
51313         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
51314         s/ifndef/ifdef/.
51315
51316 2005-02-20  Neil Conway  <neilc@samurai.com>
51317
51318         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
51319         returned by OSX/Darwin if the specified buffer is not large
51320         enough for the hostname.
51321
51322 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51323
51324         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
51325         pass it to _help, otherwise the latter coredumps trying to
51326         dereference state.root_argp.
51327
51328 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51329
51330         * modules/chdir-long (Depends-on): Add memrchr.
51331         * modules/memrchr (Files): Add lib/memrchr.h.
51332         (Include): "memrchr.h".
51333
51334 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51335
51336         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
51337
51338 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51339
51340         * lib/memrchr.h: New file.
51341         * lib/chdir-long.c: Include it.
51342         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
51343         Don't bother including stddef.h.
51344
51345 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
51346
51347         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
51348         inclusion.
51349         Include <sys/types.h>, for dev_t.
51350         (ME_DUMMY, ME_REMOTE): Move from here....
51351         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
51352         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
51353         Dmitry V. Levin.
51354         Include mountlist.h first, to test the interface.
51355
51356 2005-01-29  Bruno Haible  <bruno@clisp.org>
51357
51358         * lib/progname.c (program_name): Initialize.
51359         Needed when linking statically on MacOS X.
51360
51361 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
51362
51363         Sync from coreutils.
51364         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
51365         (Depends-on): Add c-strtod.
51366         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
51367
51368 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
51369
51370         Sync from coreutils.
51371         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
51372
51373         Remove files that are specific to coreutils.
51374         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
51375
51376 2005-01-28  Bruno Haible  <bruno@clisp.org>
51377
51378         * modules/javacomp: New file.
51379         * MODULES.html.sh (Java): Add javacomp.
51380
51381 2005-01-28  Bruno Haible  <bruno@clisp.org>
51382
51383         * m4/javacomp.m4: New file, from GNU gettext.
51384
51385 2005-01-28  Bruno Haible  <bruno@clisp.org>
51386
51387         * lib/javacomp.sh.in: New file, from GNU gettext.
51388         * lib/javacomp.h: New file, from GNU gettext.
51389         * lib/javacomp.c: New file, from GNU gettext.
51390
51391 2005-01-26  Simon Josefsson  <jas@extundo.com>
51392
51393         * lib/gai_strerror.c: Use GPL in header.
51394
51395 2005-01-26  Bruno Haible  <bruno@clisp.org>
51396
51397         * modules/javaexec: New file.
51398         * MODULES.html.sh (Java): Add javaexec.
51399
51400 2005-01-26  Bruno Haible  <bruno@clisp.org>
51401
51402         * m4/javaexec.m4: New file, from GNU gettext.
51403
51404 2005-01-26  Bruno Haible  <bruno@clisp.org>
51405
51406         * lib/javaexec.sh.in: New file, from GNU gettext.
51407         * lib/javaexec.h: New file, from GNU gettext.
51408         * lib/javaexec.c: New file, from GNU gettext.
51409
51410 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51411
51412         * modules/lchown (Depends-on): Remove lchown.h
51413
51414 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51415
51416         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
51417         must be defined if the header file was not found, in order
51418         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
51419
51420 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51421
51422         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
51423         initializers for struct pentry_state.
51424         (__argp_error): Check return value of __asprintf
51425         (__argp_failure): Translate error message
51426
51427         * lib/argp-parse.c: Removed braces around the expansion of N_()
51428
51429 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51430
51431         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
51432         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
51433         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
51434         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
51435         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
51436         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
51437         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
51438         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
51439         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
51440         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
51441         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
51442         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
51443         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
51444         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
51445         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
51446         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
51447         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
51448         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
51449         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
51450         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
51451         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
51452         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
51453         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
51454         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
51455         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
51456         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
51457         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
51458         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
51459         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
51460         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
51461         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
51462         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
51463         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
51464         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
51465         xstrtol.m4, xstrtoumax.m4, yesno.m4:
51466         Use an all-permissive copyright notice, recommended by RMS.
51467
51468 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
51469
51470         * modules/chdir-long (Depends-on): Remove mempcpy.
51471
51472 2005-01-21  Jim Meyering  <jim@meyering.net>
51473
51474         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
51475         same value as for Solaris 9.
51476
51477         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
51478         component length.  This included changing the parameter to be
51479         of type `char *' rather than `char const *'.
51480         * lib/chdir-long.h (chdir_long): Update prototype.
51481
51482         * lib/openat.c (fdopendir, fstatat): New functions.
51483         * lib/openat.h: Include headers required for use of DIR and struct
51484         stat.
51485         [AT_SYMLINK_NOFOLLOW]: Define.
51486         (fdopendir, fstatat): Add prototypes.
51487
51488 2005-01-21  Bruno Haible  <bruno@clisp.org>
51489
51490         * modules/classpath: New file.
51491         * MODULES.html.sh (Java): Add classpath.
51492
51493 2005-01-21  Bruno Haible  <bruno@clisp.org>
51494
51495         * lib/classpath.h: New file, from GNU gettext.
51496         * lib/classpath.c: New file, from GNU gettext.
51497
51498 2005-01-20  Simon Josefsson  <jas@extundo.com>
51499
51500         * modules/version-etc-fsf: New file.
51501
51502 2005-01-20  Simon Josefsson  <jas@extundo.com>
51503
51504         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
51505         * lib/version-etc.c: Remove version_etc_copyright.
51506         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
51507         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
51508
51509 2005-01-20  Simon Josefsson  <jas@extundo.com>
51510
51511         * lib/base64.h (isbase64): Add.
51512
51513         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
51514         using a unsigned prototype, don't inline.
51515         (base64_decode): Use it.
51516
51517 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51518
51519         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
51520         it.
51521
51522 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51523
51524         * lib/save-cwd.c (save_cwd): Remove code to support the case
51525         where fchdir is missing or flaky.
51526
51527 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51528
51529         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
51530
51531 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
51532
51533         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
51534         AC_LIBSOURCES now does this.
51535         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
51536         with new ullong_max module.
51537
51538 2005-01-19  Bruno Haible  <bruno@clisp.org>
51539
51540         * modules/sh-quote: New file.
51541         * MODULES.html.sh (Executing programs): Add sh-quote.
51542
51543 2005-01-19  Bruno Haible  <bruno@clisp.org>
51544
51545         * lib/sh-quote.h: New file, from GNU gettext.
51546         * lib/sh-quote.c: New file, from GNU gettext.
51547
51548 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
51549
51550         Merge from coreutils.
51551         * m4/ullong_max.m4: New file.
51552         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
51553         (gl_MACROS): Assume localeconv exists.
51554
51555 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
51556
51557         Merge changes from coreutils, as described below in several
51558         changelogs dated today.
51559
51560         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
51561         (O_DIRECTORY): Remove; not needed here, since "." must be
51562         a directory.  All uses removed.
51563         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
51564         universal on Suns, and we also need to test for IRIX.
51565         Revamp code to use 'if' rather than '#if'.
51566         Avoid unnecessary comparison of cwd->desc to 0.
51567
51568         * lib/utimens.c (futimens): Robustify the previous patch, by checking
51569         for known valid error numbers rather than observed invalid ones.
51570
51571 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
51572
51573         * modules/ullong_max: New file.
51574
51575         * modules/chdir-long, modules/openat: New files.
51576         * modules/save-cwd (Depends-on): Depend on chdir-long.
51577         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
51578
51579 2005-01-18  Jim Meyering  <jim@meyering.net>
51580
51581         Merge from coreutils.
51582         * m4/chdir-long.m4, m4/openat.m4: New files.
51583         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
51584         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
51585         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
51586         is sane and DOES follow symlinks.  Besides, testing 20 different
51587         systems found no broken chown implementations.
51588         Prompted by a change in rsync's copy of this macro.
51589         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
51590
51591         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
51592
51593         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
51594         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
51595         NULL-means-set-to-current-time semantics.
51596         Remove temporary file immediately, rather than waiting
51597         for configure's at-exit trap code to do it.
51598
51599 2005-01-18  Jim Meyering  <jim@meyering.net>
51600
51601         * lib/version-etc.c (version_etc_copyright): Update copyright date.
51602
51603         * lib/utimens.c (futimens): Account for the fact that futimes
51604         can also fail with errno == ENOSYS or errno == ENOENT.
51605         Patch from Dmitry V. Levin.
51606
51607         Change the name of the robust chdir function from chdir to chdir_long.
51608         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
51609         (restore_cwd): Use chdir_long, not chdir.
51610         * lib/chdir-long.c: Renamed from chdir.c.
51611         * lib/chdir-long.h: Renamed from chdir.h.
51612         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
51613         Hurd.
51614
51615 2005-01-18  Bruno Haible  <bruno@clisp.org>
51616
51617         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
51618         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
51619         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
51620         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
51621         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
51622         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
51623         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
51624         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
51625         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
51626         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
51627         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
51628         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
51629         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
51630         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
51631         Use an all-permissive copyright notice, recommended by RMS.
51632
51633 2005-01-18  Bob Proulx  <bob@proulx.com>
51634
51635         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
51636         simplify offsetof() macro construct to avoid compile failure with
51637         native HP-UX 11.0 ANSI C compiler.
51638
51639 2005-01-17  Bruno Haible  <bruno@clisp.org>
51640
51641         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
51642         redundant because stpncpy.m4 takes care of it.
51643
51644 2005-01-17  Bruno Haible  <bruno@clisp.org>
51645
51646         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
51647
51648 2005-01-17  Bruno Haible  <bruno@clisp.org>
51649
51650         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
51651         used.
51652
51653 2005-01-17  Bruno Haible  <bruno@clisp.org>
51654
51655         * lib/fwriteerror.h (fwriteerror): Change specification to include
51656         fclose.
51657         * lib/fwriteerror.c: Include <stdbool.h>.
51658         (fwriteerror): At the end, close the file stream. Record whether
51659         stdout was already closed.
51660
51661 2005-01-17  Bruno Haible  <bruno@clisp.org>
51662
51663         * lib/execute.c (environ): Declare if needed.
51664         * lib/pipe.c (environ): Likewise.
51665         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
51666
51667 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51668
51669         * modules/argp: Depend on vsnprintf
51670
51671 2005-01-10  Jim Meyering  <jim@meyering.net>
51672
51673         * modules/closeout (Depends-on): Add atexit.
51674
51675 2005-01-06  Bruno Haible  <bruno@clisp.org>
51676
51677         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
51678
51679 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
51680
51681         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
51682         definitions to be after all include files, to avoid collisions.
51683         Problem reported by Bob Proulx.
51684
51685 2005-01-04  Jim Meyering  <jim@meyering.net>
51686
51687         Changes imported from coreutils.
51688         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
51689         as the mkstemp template, use a temporary directory and an
51690         8.3-friendly template to avoid trouble on systems like DJGPP.
51691         Reported by Juan M. Guerrero via Stepan Kasal.
51692         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
51693         close. Remove the temporary directory right away, rather than waiting
51694         for configure's at-exit trap code to do it.
51695         Suggestion from Stepan Kasal.
51696
51697 2005-01-01  Simon Josefsson  <jas@extundo.com>
51698
51699         * gnulib-tool: Print #include directives when --import'ing.
51700
51701 2004-12-28  Simon Josefsson  <jas@extundo.com>
51702
51703         * tests/test-base64.c: Include required header files.  Remove
51704         unused variables.
51705
51706 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
51707
51708         * modules/error (Depends-on): Remove gettext.
51709
51710 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
51711
51712         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
51713         not needed.  This removes a dependency on the gettext module.
51714         [defined _LIBC]: Do not include <libintl.h>; not needed.
51715
51716 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
51717
51718         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
51719         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
51720
51721 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
51722
51723         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
51724         HAVE_DECL_STRTOLD.
51725
51726 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
51727
51728         * modules/getdate (Depends-on): Remove alloca-opt.
51729
51730 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
51731
51732         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
51733
51734 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
51735
51736         * lib/argp-parse.c: Include <stddef.h>.
51737         (alignof, alignto): New macros.
51738         (parser_init): Don't assume that void * is aligned sufficiently
51739         for struct option.
51740
51741         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
51742         need to extend the stack.
51743         (YYINITDEPTH): New macro, so that the initial stack isn't overly
51744         large.
51745
51746 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51747
51748         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
51749
51750 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
51751
51752         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
51753         (2004-10-24) change.  Apparently this was a false alarm.
51754
51755         * modules/getdate: Depend on alloca-opt, not alloca.
51756
51757 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
51758
51759         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
51760         Remove now-obsolete comment about AIX.
51761         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
51762         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
51763         (YYMAXDEPTH): New macro.
51764
51765 2004-12-18  Simon Josefsson  <jas@extundo.com>
51766
51767         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
51768
51769 2004-12-18  Bruno Haible  <bruno@clisp.org>
51770
51771         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
51772
51773 2004-12-18  Bruno Haible  <bruno@clisp.org>
51774
51775         * lib/fatal-signal.c (fatal_signals): Make non-const.
51776         (init_fatal_signals): New function.
51777         (uninstall_handlers, install_handlers): Ignore signals that were set to
51778         SIG_IGN.
51779         (at_fatal_signal): Call init_fatal_signals.
51780         (init_fatal_signal_set): Likewise. Ignore signals that were set to
51781         SIG_IGN.
51782         Reported by Paul Eggert.
51783
51784 2004-12-18  Bruno Haible  <bruno@clisp.org>
51785
51786         * doc/alloca.texi: New file.
51787         * doc/alloca-opt.texi: New file.
51788
51789 2004-12-17  Jim Meyering  <jim@meyering.net>
51790
51791         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
51792         Otherwise, install-sh could exit with improper exit status when
51793         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
51794
51795 2004-12-16  Simon Josefsson  <jas@extundo.com>
51796
51797         * tests/test-base64.c: Add license.
51798
51799 2004-12-15  Stepan Kasal  <address@hidden>
51800
51801         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
51802
51803 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
51804
51805         * modules/getcwd (Files): Add m4/d-ino.m4.
51806         Suggested by Mark D. Baushke.
51807
51808 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
51809
51810         * lib/getdate.y (textint): New member "negative".
51811         (time_zone_hhmm): New function.
51812         Expect 14 shift-reduce conflicts, not 13.
51813         (o_colon_minutes): New rule.
51814         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
51815         (yylex): Set the "negative" member of signed numbers.
51816
51817 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
51818
51819         * doc/getdate.texi (Time of day items, Time zone items):
51820         Describe new formats +00:00, UTC+00:00.
51821
51822 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
51823
51824         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
51825         spurious "-l"s.  Problem reported by Stepan Kasal.
51826
51827 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
51828
51829         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
51830         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
51831
51832 2004-12-04  Simon Josefsson  <jas@extundo.com>
51833
51834         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
51835         Vandoorselaere <yoann@prelude-ids.org>.
51836
51837 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
51838
51839         Changes imported from coreutils.
51840         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
51841         exist.
51842         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
51843
51844 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
51845
51846         Changes imported from coreutils.
51847         * lib/hard-locale.c: Assume <locale.h> exists.
51848         Include "strdup.h".
51849         (GLIBC_VERSION): New macro.
51850         (hard_locale): Assume setlocale exists.
51851         Rewrite to avoid #ifdef.
51852         Use strdup rather than malloc + strcpy.
51853         * lib/human.c: Assume <locale.h> exists.
51854         (human_readable): Assume localeconv exists.
51855
51856 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
51857
51858         * modules/hard-locale (Depends-on): Add strdup.
51859
51860 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
51861
51862         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
51863         convert T2, not T.  (Imported from libc.)
51864
51865 2004-11-30  Simon Josefsson  <jas@extundo.com>
51866
51867         * modules/restrict (License): Change to LGPL.
51868
51869 2004-11-30  Simon Josefsson  <jas@extundo.com>
51870
51871         * m4/restrict.m4: Add copyright and copying conditions.
51872
51873 2004-11-30  Simon Josefsson  <jas@extundo.com>
51874
51875         * m4/base64.m4: New file.
51876
51877 2004-11-30  Simon Josefsson  <jas@extundo.com>
51878
51879         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
51880         base64.
51881
51882         * tests/test-base64.c: New file.
51883
51884         * modules/base64: New file.
51885
51886 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
51887
51888         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
51889         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
51890
51891         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
51892
51893 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
51894
51895         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
51896         (__getcwd.c): Don't restore errno; glibc doesn't.
51897         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
51898         first, falling back to our code only if its results look suspicious.
51899         Ensure that the resulting buffer is only as large as necessary.
51900
51901         * lib/readutmp.c: Include readutmp.h first.
51902         Include <errno.h>, since readutmp.h no longer does that.
51903         * lib/readutmp.h: Don't include <errno.h>,
51904         <sys/param.h>, <time.h>; not needed to establish interface.
51905         (errno): Remove decl.
51906         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
51907         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
51908         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
51909
51910 2004-11-28  Simon Josefsson  <jas@extundo.com>
51911
51912         * lib/base64.h, base64.c: New file.
51913
51914 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
51915
51916         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
51917
51918 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
51919
51920         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
51921         (Depends-on): Remove pathmax, same.  Add mempcpy.
51922         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
51923         (Makefile.am): Append getcwd.h to lib_SOURCES.
51924         (Include): Add getcwd.h.
51925         (Maintainer): Change from Jim Meyering to "all, glibc",
51926         since getdate now uses intended-for-glibc code.
51927         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
51928         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
51929
51930 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
51931
51932         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
51933         HP's ANSI C compiler.
51934         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
51935         Declaring int functions causes warnings on some modern systems and
51936         shouldn't be needed to compile on ancient ones.
51937         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
51938         defined.
51939
51940         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
51941         with the following changes.
51942         (__set_errno): Parenthesize properly.
51943         Include <stdbool.h>.
51944         (MIN, MAX, MATCHING_INO): New macros.
51945         (__getcwd): Define with prototype, not K&R form.
51946         Use heuristics to allocate default buffer on stack if possible.
51947         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
51948         behavior, and to avoid the PATH_MAX limit when computing
51949         ../../../../...
51950         Use MATCHING_INO to compare inode number to file.
51951         Check for arithmetic overflow in size calculations.
51952         Fix bug in reallocation of dot array that caused getcwd to fail
51953         on directories nested deeper than 75.
51954         Be more careful about saving errno on error.
51955         Do not use realloc; use only free+malloc, as this is a bit
51956         more flexible and avoids a needless copy operation.
51957         Do not inspect st_dev and st_ino for symbolic links; POSIX
51958         doesn't specify the latter.
51959         Check for closedir errors.
51960         Avoid needless casts.
51961         Use "#ifdef weak_alias" around weak_alias, to be like other
51962         glibc code.
51963         The following changes to getcwd.c have effect only when used in
51964         gnulib; they have no effect inside glibc proper.
51965         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
51966         as alloca isn't used.
51967         (alloca, __alloca): Likewise.
51968         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
51969         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
51970         unconditionally, as gnulib assumes C89 or better.
51971         Do not include <sys/param.h>.
51972         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
51973         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
51974         better.
51975         (NULL) [!defined NULL]: Remove; we assume C89 or better.
51976         Include <dirent.h> in a way that is compatible with modern Autoconf.
51977         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
51978         New macros, if not already defined.
51979         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
51980         Use "_LIBC", not "defined _LIBC", for consistency.
51981         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
51982         a mempcpy module.
51983         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
51984         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
51985         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
51986         credit only to Jim Meyering and adjust the copyright dates.
51987         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
51988         <stdlib.h>, <unistd.h>, "pathmax.h".
51989         Instead, include "xgetcwd.h" (first) and "getcwd.h".
51990         (INITIAL_BUFFER_SIZE): Remove.
51991         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
51992
51993 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
51994
51995         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
51996         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
51997         Use the _ONCE methods, for efficiency.
51998         Check for fcntl.h.  In test program, include <errno.h>
51999         and <fcntl.h> if available.  Remove old K&R cruft from
52000         test program.  Check for common errors in GNU/Linux,
52001         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
52002         don't do AC_LIBOBJ, as that's getcwd.m4's job.
52003         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
52004         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
52005         name accordingly.
52006         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
52007         accommodate new getcwd.c.
52008         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
52009         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
52010         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
52011         that's all we need now.
52012
52013 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52014
52015         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
52016         argp-parse.c depends on getopt internals, that means we should
52017         always use our getopt, to be on the safe side.
52018         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
52019         order not to spoil the result of an eventual previous invocation
52020         of gl_GETOPT_SUBSTITUTE.
52021
52022 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52023
52024         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
52025         redefinition warnings. To avoid them, include the defines
52026         in `#if !defined __need_getopt ... #endif'. The only place
52027         where __getopt_argv_const is used is in definitions
52028         of getopt_long and getopt_long_only below, which are as well
52029         protected by `#ifndef __need_getopt'.
52030         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
52031         __need_getopt after including <stdio.h> and <unistd.h> These
52032         headers might have defined it.
52033
52034 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
52035
52036         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
52037
52038 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
52039
52040         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
52041         (futimens): New function, which uses futimes if available.
52042         (futimens, utimens): Support timespec==NULL, with same semantics
52043         as utime and utimens.
52044         * lib/utimens.h (futimens): New decl.
52045
52046 2004-11-23  Jim Meyering  <jim@meyering.net>
52047
52048         * lib/getopt_.h: Remove trailing blanks.
52049
52050 2004-11-23  Jim Meyering  <jim@meyering.net>
52051
52052         * lib/__fpending.c: Add comment.
52053
52054 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
52055
52056         * modules/canonicalize (Depends-on): Add xreadlink.
52057         Problem reported by James Youngman.
52058
52059 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
52060
52061         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
52062         New macros.
52063         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
52064         optopt): Use them instead of invoking ## directly; otherwise, the
52065         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
52066
52067 2004-11-19  Bruno Haible  <bruno@clisp.org>
52068
52069         * lib/strtok_r.c: Move comments from here...
52070         * lib/strtok_r.h: ... to here.
52071
52072 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
52073
52074         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
52075         implementations that mishandle size_t overflow.
52076
52077 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
52078
52079         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
52080         might fail.  Problem reported by Yoann Vandoorselaere.
52081         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
52082         implementations that mishandle size_t overflow.
52083
52084 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52085
52086         * modules/canon-host (Depends-on): Add strdup.
52087
52088 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52089
52090         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
52091
52092 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52093
52094         * lib/canon-host.c: Include "strdup.h".
52095         (canon_host): Use getaddrinfo if available, so that IPv6 works.
52096         Use strdup instead of malloc/strcpy to duplicate strings.
52097
52098         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
52099         (human_space_before_unit): New constant.
52100         * lib/human.c (human_readable): Support it.
52101
52102         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
52103         (xgetcwd): Set errno correctly when failing.
52104         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
52105         the failure is actually due to a PATH_MAX problem.
52106
52107         Further getopt changes to make it more likely that glibc will
52108         buy the changes back.
52109         * lib/getopt.c (POSIXLY_CORRECT): New constant.
52110         (getopt): Use it, so to preserve glibc semantic
52111         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
52112         when compiling for libc.
52113         * lib/getopt_.h (__getopt_argv_const): Bring it back.
52114         (getopt_long, getopt_long_only): Use it.
52115
52116         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
52117         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
52118         (getopt): Argv is now char * const *, as per standard.
52119         (_getopt_internal_r, _getopt_internal): Argv is now char **,
52120         not char *__getopt_argv_const *.
52121         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
52122         _getopt_long_only_r): Likewise.
52123         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
52124         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
52125         _getopt_long_r, _getopt_long_only_r): Likewise.
52126         * lib/getopt_.h (__getopt_argv_const): Remove.
52127         (getopt): Argv is now char * const *, as per standard.
52128
52129         * lib/getdate.y (tORDINAL): New token.
52130         (day, relunit): Allow it for relative times.
52131         (relative_time_table): Use tORDINAL for ordinals.
52132
52133 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52134
52135         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
52136         Document that "second" isn't allowed as an ordinal number.
52137
52138 2004-11-16  Jim Meyering  <jim@meyering.net>
52139
52140         * modules/closeout (Depends-on): Add fpending.
52141
52142 2004-11-15  Jim Meyering  <jim@meyering.net>
52143
52144         * lib/closeout.c: Include "__fpending.h" once again.
52145         Include <stdbool.h>.
52146         (close_stdout): Don't fail just because stdout was closed initially,
52147         since some programs don't write to stdout in the normal course of
52148         operation (other than --version and --help), and we don't want this
52149         function to make e.g. `touch file >&-' fail.
52150         But do fail if it was closed and someone has tried to write to it.
52151         E.g., `printf foo >&-' must fail.
52152
52153 2004-11-13  Jim Meyering  <jim@meyering.net>
52154
52155         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
52156
52157 2004-11-12  Simon Josefsson  <jas@extundo.com>
52158
52159         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
52160         small doc fix is still pending.
52161
52162 2004-11-11  Simon Josefsson  <jas@extundo.com>
52163
52164         * modules/strtok_r: New file.
52165
52166         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52167         strtok_r.
52168
52169 2004-11-11  Simon Josefsson  <jas@extundo.com>
52170
52171         * m4/strtok_r.m4: New file.
52172
52173         * m4/getopt.m4: Replace opterr.
52174
52175 2004-11-11  Simon Josefsson  <jas@extundo.com>
52176
52177         * lib/strtok_r.h, strtok_r.c: New file.
52178
52179 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
52180
52181         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
52182         of replacing opterr, getopt, etc.  This should handle the
52183         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
52184
52185 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
52186
52187         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
52188         we can stop lying to compilers about the constness of argv when we
52189         are compiled outside glibc.
52190         (getopt, getopt_long, getopt_long_only): Use it.
52191         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
52192         _getopt_internal, getopt): Likewise.
52193         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
52194         _getopt_long_only_r): Likewise.
52195         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
52196         _getopt_long_r, _getopt_long_only_r): Likewise.
52197
52198         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
52199         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
52200         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
52201         the other external symbols.
52202         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
52203         declaration, since the above renaming now works around collisions.
52204
52205 2004-11-11  Jim Meyering  <jim@meyering.net>
52206
52207         * lib/linebreak.c: Remove trailing blanks.
52208         * lib/alloca_.h: Likewise.
52209         * lib/acosl.c: Likewise.
52210         * lib/euidaccess.c: Likewise.
52211         * lib/allocsa.h: Likewise.
52212
52213 2004-11-10  Simon Josefsson  <jas@extundo.com>
52214
52215         * m4/getaddrinfo.m4: New file.
52216
52217 2004-11-10  Simon Josefsson  <jas@extundo.com>
52218
52219         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
52220
52221 2004-11-10  Simon Josefsson  <jas@extundo.com>
52222
52223         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52224         getaddrinfo.
52225
52226         * modules/getaddrinfo: New file.
52227
52228 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52229
52230         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
52231
52232 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52233
52234         * lib/mktime.c (SHR): New macro, which is a portable
52235         substitute for >> that should work even on Crays.
52236         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
52237         Problem reported by Mark D. Baushke in
52238         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
52239         * lib/getdate.y (SHR): Likewise.
52240         (tm_diff): Use it.
52241         * lib/strftime.c (SHR): Likewise.
52242         (tm_diff): Use it.
52243         * lib/quotearg.c (struct quoting_options): Use unsigned int for
52244         quote_these_too, so that right shifts are well defined.  All uses
52245         changed.
52246
52247 2004-11-10  Jim Meyering  <jim@meyering.net>
52248
52249         Ensure that no close failure goes unreported.
52250         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
52251         return early when it seems there's nothing to flush.
52252         Don't include __fpending.h.
52253
52254 2004-11-10  Jim Meyering  <jim@meyering.net>
52255
52256         * modules/closeout (Depends-on): Remove fpending.
52257
52258 2004-11-10  Jim Meyering  <jim@meyering.net>
52259
52260         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
52261
52262 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
52263
52264         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
52265         gl_FUNC_STRFTIME.
52266         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
52267         and AC_REQUIRE when possible, to avoid duplicate checks.
52268         Check for <wchar.h>.
52269
52270 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
52271
52272         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
52273
52274 2004-11-09  Bruno Haible  <bruno@clisp.org>
52275
52276         * m4/sockpfaf.m4: New file.
52277
52278 2004-11-05  Bruno Haible  <bruno@clisp.org>
52279
52280         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
52281         Reported by Mark D. Baushke <mdb@cvshome.org>.
52282
52283 2004-11-04  Bruno Haible  <bruno@clisp.org>
52284
52285         2004-09-11  Bruno Haible  <bruno@clisp.org>
52286                 * allocsa.valgrind: New file.
52287         2004-02-06  Bruno Haible  <bruno@clisp.org>
52288                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
52289                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
52290                 Reported by Christopher Seip <chris.seip@hp.com>.
52291
52292 2004-11-04  Bruno Haible  <bruno@clisp.org>
52293
52294         * modules/allocsa (Files): Add lib/allocsa.valgrind.
52295         (Makefile.am): Distribute it.
52296
52297 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
52298
52299         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
52300         with errno == ERANGE if the buffer is too small.
52301         Problem reported by Mark D. Baushke.
52302
52303 2004-11-03  Albert Chin  <china@thewrittenword.com>
52304             Paul Eggert  <eggert@cs.ucla.edu>
52305
52306         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
52307         equivalent, substitute $ac_type for equivalent type rather than
52308         blindly using uint32_t *always* which won't work if uint32_t is not
52309         available.  Define _UINT32_T to work around typedef of uint32_t if
52310         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
52311         2.5.1.
52312
52313 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
52314
52315         * m4/jm-macros.m4: Sync from coreutils.
52316         (gl_MACROS): Check for mbrlen, for pathchk.
52317         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
52318
52319 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
52320
52321         * lib/xreadlink.c (MAXSIZE): New macro.
52322         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
52323         size does not exceed MAXSIZE.  Avoid cast.
52324         As suggested by Mark D. Baushke in
52325         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
52326         if readlink fails with buffer size just under MAXSIZE, try again
52327         with MAXSIZE.
52328
52329 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
52330
52331         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
52332
52333 2004-11-02  Derek R. Price  <derek@ximbiot.com>
52334         and  Paul Eggert  <eggert@cs.ucla.edu>
52335
52336         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
52337         (get_date): Overparenthesize to avoid GCC warning.
52338
52339 2004-11-02  Bruno Haible  <bruno@clisp.org>
52340
52341         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
52342         returns void.
52343
52344 2004-11-02  Bruno Haible  <bruno@clisp.org>
52345
52346         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
52347         function returns void.
52348
52349 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
52350
52351         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
52352         fflush_unlocked, flockfile, funlockfile, funlockfile,
52353         fputs_unlocked, putc_unlocked.
52354
52355 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
52356
52357         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
52358         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
52359         already declared.
52360
52361 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52362
52363         * modules/getdate (Files): Add doc/getdate.texi.
52364         (Depends-on): Add setenv, xalloc.
52365
52366 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52367
52368         * lib/getdate.y: Add support for TZ="foo" within a date string.
52369         Fix some bugs near time_t boundaries.  Reject dates with
52370         out-of-range components, e.g., "Sept 31".
52371         Include <stdlib.h>, "setenv.h", "xalloc.h".
52372         (ISDIGIT_LOCALE): Remove; unused.
52373         Note that the TZ and time functions used here are not reentrant.
52374         (mktime_ok, get_tz): New functions.
52375         (TZBUFSIZE): New constant.
52376         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
52377         This requires that we sometimes generate our own TZ="XXX..." setting.
52378
52379 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52380
52381         * doc/getdate.texi: New file, from coreutils with modifications for
52382         the new TZ parsing.
52383
52384 2004-10-27  Derek R. Price  <derek@ximbiot.com>
52385
52386         * lib/mktime.c (not_equal_tm): Remove redundant check.
52387
52388 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52389
52390         * modules/regex (lib_SOURCES): Add regex.c.
52391         Reported by James Youngman in
52392         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
52393
52394 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52395
52396         * lib/getdate.y: Use Bison 1.875 features, and some minor
52397         code cleanups.  This change does not affect semantics.
52398         Don't include <stdlib.h>; no longer needed.
52399         Don't include unlocked-io.h; only the "#if TEST" code uses
52400         stdio, and performance isn't crucial there.
52401         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
52402         Bison 1.875 features as described below.
52403         All uses of "PC." replaced by "pc->".
52404         (YYSTYPE): Add a forward declaration.
52405         (yylex, yyerror): Use full prototypes in forward decls.
52406         Use "%pure-parser" rather than obsolescent "%pure_parser".
52407         Use %parse-param and %lex-param instead of obsolescent
52408         YYPARSE_PARAM and YYLEX_PARAM.
52409         (meridian_table, month_and_day_table, time_units_table,
52410         relative_time_table, time_zone_table, military_table,
52411         lookup_zone, lookup_word, get_date):
52412         Use NULL instead of 0 where appropriate.
52413         (to_hour): Avoid abort (), to avoid a dependency on
52414         stdlib.h.
52415         (yyerror, yylex): Now accepts parser_control * arg.
52416         (main) [TEST]: Use '\0' rather than 0 for char.
52417
52418 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52419
52420         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
52421
52422 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52423
52424         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
52425         It's now the caller's responsibility to handle the case where
52426         !HAVE_GETPAGESIZE && !defined getpagesize.
52427
52428         * lib/mktime.c (leapyear): Arg is long int, not int.
52429
52430 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
52431
52432         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
52433
52434 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
52435
52436         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
52437         missing.  Problem reported by James Youngman.
52438
52439 2004-10-16  Simon Josefsson  <jas@extundo.com>
52440
52441         * gnulib-tool: Fix comments.  Fix parse problem.
52442         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
52443
52444 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
52445
52446         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
52447         implementation of getopt_long.  Problem reported by Alexander Taler in:
52448         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
52449
52450 2004-10-15  Bruno Haible  <bruno@clisp.org>
52451
52452         * gnulib-tool: Untabify. Initialize supplied_libname.
52453         (func_usage): More homogenous output.
52454         (func_modules_transitive_closure, func_modules_to_filelist,
52455         func_emit_lib_Makefile_am): New functions.
52456         (func_import): New function, extracted from big case statement. Use
52457         func_get_license, func_modules_transitive_closure,
52458         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
52459         opt_lgpl. Don't use test -a, as it's not portable.
52460         (func_create_testdir): Use func_modules_transitive_closure,
52461         func_modules_to_filelist, func_emit_lib_Makefile_am.
52462
52463 2004-10-15  Bruno Haible  <bruno@clisp.org>
52464
52465         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
52466
52467 2004-10-15  Bruno Haible  <bruno@clisp.org>
52468
52469         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
52470         the portions belonging to each module.
52471         Suggested by Derek Robert Price <derek@ximbiot.com>.
52472
52473 2004-10-12  Simon Josefsson  <jas@extundo.com>
52474
52475         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
52476         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
52477         to real functions.
52478
52479 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52480
52481         * modules/vsnprintf: New file.
52482
52483 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52484
52485         * m4/vsnprintf.m4: New file.
52486
52487 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52488
52489         * lib/vsnprintf.h: New file.
52490         * lib/vsnprintf.c: New file.
52491
52492 2004-10-11  Bruno Haible  <bruno@clisp.org>
52493
52494         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
52495         vsnprintf.
52496
52497 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
52498
52499         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
52500
52501 2004-10-07  Bruno Haible  <bruno@clisp.org>
52502
52503         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
52504         fits into the provided buffer.
52505
52506 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
52507
52508         * lib/diacrit.c, diacrit.h: Add GPL notice.
52509
52510         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
52511         notice.
52512         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
52513         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
52514         This avoids a potential constant-folding bug.
52515
52516 2004-10-05  Bruno Haible  <bruno@clisp.org>
52517
52518         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
52519         for the declaration of strsep.
52520
52521 2004-10-05  Bruno Haible  <bruno@clisp.org>
52522
52523         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
52524
52525 2004-10-04  Simon Josefsson  <jas@extundo.com>
52526
52527         * modules/memmem: New file.
52528         * tests/test-memmem.c: New file.
52529         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
52530
52531 2004-10-04  Simon Josefsson  <jas@extundo.com>
52532
52533         * m4/memmem.m4: New file.
52534
52535 2004-10-04  Simon Josefsson  <jas@extundo.com>
52536
52537         * lib/memmem.h: New file.
52538         * lib/memmem.c: New file, taken from glibc.
52539
52540 2004-10-04  Simon Josefsson  <jas@extundo.com>
52541
52542         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
52543         '#ifdef USE_UNLOCKED_IO'.
52544
52545 2004-10-04  Simon Josefsson  <jas@extundo.com>
52546
52547         * config/srclist.txt: Add memmem from glibc.
52548
52549 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
52550
52551         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
52552
52553         * modules/argmatch, modules/argp, modules/closeout, modules/error,
52554         modules/exclude, modules/getdate, modules/getline,
52555         modules/getndelim2, modules/getpass, modules/getpass-gnu,
52556         modules/getusershell, modules/linebuffer, modules/md5,
52557         modules/mountlist, modules/posixtm, modules/readtokens,
52558         modules/readutmp, modules/regex, modules/sha1,
52559         modules/version-etc, modules/yesno:
52560         Remove dependency on unlocked-io.
52561
52562 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
52563
52564         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
52565
52566         * m4/unlocked-io.m4: Add copyright notice.
52567         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
52568
52569 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
52570
52571         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
52572         * lib/xmalloc.c (xmemdup): Likewise.
52573         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
52574         XFREE): Remove these long-obsolescent macros.
52575         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
52576         * lib/xstrdup.c: Remove.
52577
52578         * lib/regex.c (re_comp): Cast gettext return value to char *,
52579         Problem reported by Martin Neitzel via Mark D. Baushke.
52580
52581 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
52582
52583         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
52584         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
52585         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
52586         regex.c, sha1.c, version-etc.c, yesno.c:
52587         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
52588         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
52589         the includer's responsibility.
52590
52591         Sync from coreutils.
52592
52593         * lib/modechange.c (mode_compile): Don't decrement a pointer that
52594         points to the start of a string, as the C Standard says the
52595         resulting behavior is undefined.
52596
52597         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
52598         simple -> simple_backups, numbered_existing ->
52599         numbered_existing_backups, numbered -> numbered_backups
52600         to avoid shadowing problems.  All uses changed.
52601         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
52602         * lib/backupfile.c (check_extension, numbered_backup):
52603         Rename locals to avoid shadowing 'basename'.
52604         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
52605         once.
52606
52607         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
52608         * lib/.cvsignore: Add getopt.h.
52609
52610 2004-10-04  Bruno Haible  <bruno@clisp.org>
52611
52612         * modules/README: New file.
52613         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
52614         not a module.
52615
52616 2004-10-02  Jim Meyering  <jim@meyering.net>
52617
52618         * lib/dirfd.h, getpagesize.h: Add copyright notice.
52619
52620 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52621
52622         * modules/strsep: New file.
52623
52624 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52625
52626         * m4/strsep.m4: New file.
52627
52628 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52629
52630         * lib/strsep.h: New file.
52631         * lib/strsep.c: New file.
52632
52633 2004-10-01  Simon Josefsson  <jas@extundo.com>
52634
52635         * lib/snprintf.c (snprintf): Handle size==0.
52636
52637 2004-10-01  Simon Josefsson  <jas@extundo.com>
52638             Bruno Haible  <bruno@clisp.org>
52639
52640         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
52641         (snprintf): Declare 'args'.
52642
52643 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
52644
52645         * lib/snprintf.c: Remove comments as to why each header is needed.
52646
52647 2004-10-01  Bruno Haible  <bruno@clisp.org>
52648
52649         * MODULES.html.sh: Add strsep.
52650
52651 2004-09-30  Simon Josefsson  <jas@extundo.com>
52652
52653         * modules/snprintf: New file.
52654
52655 2004-09-30  Simon Josefsson  <jas@extundo.com>
52656
52657         * m4/snprintf.m4: New file.
52658
52659 2004-09-30  Simon Josefsson  <jas@extundo.com>
52660
52661         * lib/snprintf.h, lib/snprintf.c: New files.
52662
52663 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52664
52665         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
52666         (hol_entry_help): Never translate an empty string.
52667         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
52668         * lib/argp.h (OPTION_NO_TRANS): New option.
52669
52670 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
52671
52672         * modules/argp (Maintainer): Replace Simon Josefsson
52673         by Sergey Poznyakoff.
52674
52675 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
52676
52677         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
52678         changes merged back into glibc.
52679
52680 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
52681
52682         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
52683
52684 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
52685
52686         * lib/xvasprintf.c: Include xalloc.h.
52687         (xvasprintf): Use xalloc_die, not xmalloc_die.
52688
52689 2004-09-29  Bruno Haible  <bruno@clisp.org>
52690
52691         * modules/alloca-opt: New file, derived from modules/alloca.
52692         * modules/allocsa: Depend on alloca-opt instead of alloca.
52693         * modules/setenv: Likewise.
52694         * modules/vasnprintf: Likewise.
52695         * MODULES.html.sh: Add alloca-opt.
52696
52697 2004-09-28  Simon Josefsson  <jas@extundo.com>
52698
52699         * gnulib-tool: New parameter --lgpl, to asseert that modules are
52700         LGPL, and to replace license template from GPL to LGPL.
52701
52702 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
52703
52704         * modules/dummy: Change license to LGPL.
52705
52706 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
52707
52708         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
52709
52710 2004-09-24  Simon Josefsson  <jas@extundo.com>
52711
52712         * modules/minmax (License): Change from GPL to LGPL.
52713
52714 2004-09-23  Simon Josefsson  <jas@extundo.com>
52715
52716         * gnulib-tool (--import): Typo.
52717
52718 2004-09-23  Simon Josefsson  <jas@extundo.com>
52719
52720         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
52721
52722 2004-09-22  Bruno Haible  <bruno@clisp.org>
52723
52724         * modules/*: Add 'License' field.
52725         * gnulib-tool: Accept --extract-license option.
52726         (func_get_license): New function.
52727
52728 2004-09-21  Bruno Haible  <bruno@clisp.org>
52729
52730         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
52731         Reported by Simon Josefsson.
52732
52733 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
52734
52735         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
52736         gl_AC_TYPE_LONG_LONG.
52737
52738 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
52739
52740         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
52741
52742 2004-09-18  Simon Josefsson  <jas@extundo.com>
52743         and  Paul Eggert  <eggert@cs.ucla.edu>
52744
52745         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
52746         calls with autoreconf.  Define GL_LIB.
52747
52748 2004-09-14  Karl Berry  <karl@gnu.org>
52749
52750         * config/srclist.txt: unsync setenv.c, sigh.
52751
52752 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
52753
52754         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
52755         Problem reported by Bruno Haible in:
52756         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
52757
52758 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
52759
52760         * config/srclist.txt: Comment out argp-pvh.c.
52761
52762 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
52763
52764         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
52765         in case some system header has #define'd it.  Problem reported by
52766         Soeren D. Schulze in
52767         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
52768
52769 2004-09-09  Karl Berry  <karl@gnu.org>
52770
52771         * regex.[ch]: delete from the root.  These were supposed to be
52772                 synced with emacs cvs, but this has not happened for about
52773                 a year, and anyway nothing else uses emacs regex.[ch].
52774                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
52775                 lib/regex[.ch] is untouched.
52776
52777 2004-09-09  Bruno Haible  <bruno@clisp.org>
52778
52779         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
52780
52781 2004-09-09  Bruno Haible  <bruno@clisp.org>
52782
52783         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
52784         modifications.
52785         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
52786
52787 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
52788
52789         * modules/xvasprintf: New file.
52790         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
52791
52792 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
52793
52794         * lib/xvasprintf.h: New file.
52795         * lib/xvasprintf.c: New file.
52796         * lib/xasprintf.c: New file.
52797
52798 2004-09-08  Bruno Haible  <bruno@clisp.org>
52799
52800         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
52801
52802 2004-09-08  Bruno Haible  <bruno@clisp.org>
52803
52804         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
52805         length is > INT_MAX.
52806         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
52807         more.
52808
52809 2004-09-08  Bruno Haible  <bruno@clisp.org>
52810
52811         * lib/stdint_.h: New file, taken from GNU clisp.
52812
52813 2004-09-08  Bruno Haible  <bruno@clisp.org>
52814             Oskar Liljeblad  <oskar@osk.mine.nu>
52815
52816         * modules/stdint: New file.
52817         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
52818
52819 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52820
52821         Import from coreutils.
52822         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
52823         strings on unbounded length.  alloca's performance benefits aren't
52824         that important here.
52825         (V_STRDUP): Remove.
52826         (parse_with_separator): New function, with most of the internals
52827         of the old parse_user_spec.  Allow user to omit both user and group,
52828         for compatibility with FreeBSD.
52829         Clone only the user name, not the entire spec.
52830         Do not set *uid, *gid unless entirely successful.
52831         Avoid memory leak in some failing cases.
52832         Fix regression for USER.GROUP reported by Dmitry V. Levin in
52833         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
52834         (parse_user_spec): Rewrite to use parse_with_separator.
52835
52836 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52837
52838         * modules/userspec: Don't depend on alloca.
52839
52840 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52841
52842         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
52843
52844 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
52845
52846         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
52847         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
52848         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
52849
52850 2004-08-16  Simon Josefsson  <jas@extundo.com>
52851
52852         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
52853         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
52854         Add --dry-run for --import.
52855         Let user provided command line parameters override configure.ac
52856         settings.
52857
52858 2004-08-12  Simon Josefsson  <jas@extundo.com>
52859
52860         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
52861         as discussed with Paul Eggert in threads rooted at
52862         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
52863         and
52864         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
52865         Before, the test was empty, and relied on ELIDE_CODE in source
52866         code.)
52867         (gl_PREREQ_GETOPT): New macro.
52868         (gl_GETOPT): Use them.
52869
52870 2004-08-12  Simon Josefsson  <jas@extundo.com>
52871
52872         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
52873         * lib/getopt_.h: Renamed from getopt.h.
52874
52875 2004-08-12  Simon Josefsson  <jas@extundo.com>
52876
52877         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
52878         Change default library name from libfoo to libgnu.
52879         Now, if you have a configure.ac that says:
52880                 gl_SOURCE_BASE(gl)
52881                 gl_M4_BASE(gl/m4)
52882                 gl_MODULES(error getopt etcetera)
52883                 gl_INIT
52884         you can import all you need by running:
52885                 ../gnulib/gnulib-tool --import
52886
52887         * modules/getopt (Files): Rename getopt.h to getopt_.h.
52888         (Makefile.am): Rewrite, use logic from argz.
52889         (Include): Use <getopt.h> instead of "getopt.h".
52890
52891 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
52892
52893         * modules/argp (Files): Add m4/unlocked-io.m4.
52894         (Depends-on): Add extensions.
52895
52896 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
52897
52898         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
52899         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
52900         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
52901         Check for program_invocation_name, program_invocation_short_name,
52902         flockfile, funlockfile, features.h, _getopt_long_only_r.
52903
52904 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
52905
52906         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
52907         its complicated substitute.
52908         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
52909         and program_invocation_name.
52910         (__argp_basename) [!_LIBC]: Remove; the only use was
52911         replaced by its body.
52912         (__argp_short_program_name): Change condition from
52913         !defined __argp_short_program_name to
52914         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
52915         to match argp-namefrob.h.
52916         (__argp_failure): Don't assume strerror_r returns char *.
52917         * lib/argp-parse.c (N_): Define unconditionally.
52918         (argp_default_options): Fill out initializers with 0 to avoid
52919         gcc warnings.
52920
52921 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
52922
52923         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
52924         getopt1.c.
52925
52926 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
52927
52928         Merge from coreutils.
52929
52930         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
52931
52932         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
52933         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
52934
52935 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
52936
52937         Merge from coreutils.
52938
52939         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
52940         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
52941         for Reliant Unix 5.43.
52942
52943         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
52944         (union fooround): Use uintmax_t, not long int.
52945         The rest is a merge from libc:
52946         [defined _LIBC]: Include <shlib-compat.h>.
52947         (_obstack) [defined _LIBC]: Remove after 2.3.4.
52948
52949         * lib/settime.c (settime): Recode to avoid warning with
52950         Sun Forte C 6U2.
52951
52952         * lib/strverscmp.c: Convert to UTF-8.
52953
52954 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
52955
52956         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
52957         m4/uintmax_t.m4.
52958
52959 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52960
52961         * modules/xalloc-die: New file.
52962         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
52963
52964         * modules/md5 (Files): Add m4/uint32_t.m4.
52965         * modules/sha1: Renamed from modules/sha.
52966         (Files):
52967         Rename lib/sha.h to lib/sha1.h.
52968         Rename lib/sha.c to lib/sha1.c.
52969         Rename m4/sha.m4 to m4/sha1.m4.
52970         (lib_SOURCES): Likewise.
52971         (configure.ac): Rename gl_SHA to gl_SHA1.
52972         (Include): sha.h -> sha1.h.
52973
52974 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52975
52976         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
52977         * m4/sha1.m4: Renamed from sha.m4.
52978         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
52979
52980 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52981
52982         * lib/obstack.h (obstack_empty_p):
52983         Don't assume that chunk->contents is suitably aligned.
52984         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
52985         Likewise. Problem reported by Benno in
52986         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
52987
52988         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
52989         readable.  This could be improved further but it'd take some work.
52990
52991 2004-08-08  Simon Josefsson  <jas@extundo.com>
52992
52993         * modules/xgethostname (Depends-on): Remove exit and error (not
52994         used).
52995
52996         * modules/getpass-gnu: Add getpass.h.
52997         (Depends-on): Add stdbool.
52998         * modules/getpass: Add getpass.h.
52999
53000 2004-08-08  Simon Josefsson  <jas@extundo.com>
53001
53002         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
53003         Check getpass declaration.
53004
53005 2004-08-08  Simon Josefsson  <jas@extundo.com>
53006
53007         * lib/xgethostname.c: Don't include error.h (not used).
53008
53009         * lib/getpass.h: Add.
53010         * lib/getpass.c: Include getpass.h first.
53011
53012 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
53013
53014         * lib/xalloc-die.c: New file.
53015         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
53016         All uses removed.
53017         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
53018         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
53019         xalloc-die.c.
53020         (_, N_, xalloc_die): Move to xalloc-die.c.
53021         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
53022         so that we needn't mess with xalloc_msg_memory_exhausted.
53023
53024         * lib/sha1.h: Renamed from sha.h.
53025         (SHA1_H): Renamed from _SHA_H.
53026         (sha1_ctx): Renamed from sha_ctx.
53027         (sha1_init_ctx): Renamed from sha_init_ctx.
53028         (sha1_process_block): Renamed from sha_process_block.
53029         (sha1_process_bytes): Renamed from sha_process_bytes.
53030         (sha1_finish_ctx): Renamed from sha_finish_ctx.
53031         (sha1_read_ctx): Renamed from sha_read_ctx.
53032         (sha1_stream): Renamed from sha_stream.
53033         (sha1_buffer): Renamed from sha_buffer.
53034         * lib/sha1.c: Likewise; renamed from sha.c.
53035         Do not include <sys/types.h>.
53036         Include <stddef.h> rather than <stdlib.h>.
53037
53038 2004-08-08  Bruno Haible  <bruno@clisp.org>
53039
53040         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
53041         FILESYSTEM_PREFIX_LEN.
53042         * lib/progreloc.c: Likewise.
53043         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
53044
53045 2004-08-06  Simon Josefsson  <jas@extundo.com>
53046
53047         * modules/progname (Depends-on): Don't depend on stdbool.
53048
53049 2004-08-06  Simon Josefsson  <jas@extundo.com>
53050
53051         * modules/getsubopt: New file.
53052         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53053         getsubopt.
53054
53055 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53056
53057         More merge from coreutils.
53058
53059         * m4/utimens.m4, m4/utimecmp.m4: New files.
53060         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
53061         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
53062         prereq.m4, sha.m4: Import changes from coreutils.
53063
53064 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53065
53066         More merge from coreutils.
53067         * modules/raise, modules/readtokens0, modules/utimens:
53068         * modules/utimecmp, module/xnanosleep: New files.
53069         * modules/strftime: Add lib/strftime.h.
53070         Change include from <time.h> to "strftime.h".
53071         * modules/yesno: Add lib/yesno.h.
53072         * modules/backupfile: Remove lib/addext.c.
53073         * modules/euidaccess: Add stat-macros.h.
53074         * modules/canonicalize, modules/euidaccess,
53075         modules/filemode, modules/lchown, modules/makepath,
53076         modules/rmdir, modules/stat: Likewise.
53077
53078 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53079
53080         Merge from tar.
53081         * lib/argp-help.c (make_hol, hol_append): Don't assume that
53082         SIZE_MAX is a valid preprocessor constant.
53083         (__argp_basename): Change from "#ifndef _LIBC"
53084         to "#ifndef __argp_short_program_name", so that
53085         we don't compile these functions for tar.
53086
53087         More merges from coreutils.
53088         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
53089         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
53090         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
53091         * lib/addext.c: Remove; no longer needed.
53092         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
53093         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
53094         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
53095         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
53096         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
53097         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
53098         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
53099         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
53100         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
53101         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
53102         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
53103         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
53104         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
53105         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
53106         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
53107         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
53108         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
53109         Import changes from coreutils.
53110
53111 2004-08-05  Simon Josefsson  <jas@extundo.com>
53112
53113         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
53114
53115 2004-08-05  Simon Josefsson  <jas@extundo.com>
53116
53117         * m4/getsubopt.m4: New file.
53118
53119 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
53120
53121         Merge from coreutils.
53122
53123         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
53124         * m4/getcwd-path-max.m4: New files.
53125
53126         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
53127         FILESYSTEM_PREFIX_LEN ->
53128         FILE_SYSTEM_PREFIX_LEN.
53129         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
53130         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
53131         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
53132         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
53133
53134         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
53135         prerequisite modules now handle the DOS stuff.
53136         Don't check for unistd.h.
53137
53138 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
53139
53140         Merge from coreutils.
53141
53142         * lib/.gdb-history: Remove; this doesn't belong here.
53143
53144         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
53145         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
53146         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
53147         * lib/getcwd.c: New files.
53148
53149         * lib/dirname.h: Include <stdbool.h>.
53150         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
53151         for consistency with POSIX terminology.  All uses changed.
53152         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
53153         (strip_trailing_slashes): Use bool for booleans.
53154         * lib/stripslash.c (strip_trailing_slashes): Likewise.
53155
53156         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
53157         sometimes returns a positive errno value even when it succeeds.
53158         (print_errno_message) [!LIBC]: Fall back on strerror if
53159         __strerror_r fails.
53160
53161         * lib/path-concat.c (mempcpy): Don't define if a system header defines
53162         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
53163         (longest_relative_suffix): New function.
53164         (path_concat): Use it.  Assume first argument is not NULL.
53165         Port to DOS.  Omit redundant separators.
53166         Report an error instead of returning NULL.
53167         Use mempcpy instead of memcpy.
53168         (xpath_concat): Remove: not declared or used.
53169
53170         * lib/same.h: Include <stdbool.h>
53171         (same_name): Return bool, not int.
53172         * lib/same.c (same_name): Likewise.
53173         (errno): Don't declare; we assume C89 or better now.
53174
53175         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
53176         if not already defined.
53177
53178         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
53179         * lib/dup-safer.c (errno): Likewise.
53180
53181 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
53182
53183         Merge from coreutils.
53184         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
53185         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
53186         * modules/path-concat: Don't depend on strdup.
53187
53188 2004-08-03  Simon Josefsson  <jas@extundo.com>
53189
53190         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
53191         * lib/progname.h: Don't include stdbool.h.
53192
53193 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
53194
53195         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
53196         * MODULES.html.sh (func_all_modules): Remove fatal.
53197
53198 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
53199
53200         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
53201
53202 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
53203
53204         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
53205         working.
53206
53207 2004-08-02  Simon Josefsson  <jas@extundo.com>
53208
53209         * lib/getsubopt.h: New file, with comments from Bruno Haible.
53210         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
53211         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
53212
53213 2004-08-01  Simon Josefsson  <jas@extundo.com>
53214
53215         * lib/xgetdomainname.c: Include stdlib.h, for free().
53216
53217 2004-07-19  Bruno Haible  <bruno@clisp.org>
53218
53219         * MODULES.html.sh (func_all_modules): Add dummy.
53220
53221 2004-07-16  Simon Josefsson  <jas@extundo.com>
53222
53223         * modules/dummy: New file.
53224
53225 2004-07-16  Simon Josefsson  <jas@extundo.com>
53226
53227         * lib/dummy.c: New file.
53228
53229 2004-07-16  Bruno Haible  <bruno@clisp.org>
53230
53231         * lib/backupfile.h: Add extern "C" for C++.
53232         * lib/closeout.h: Likewise.
53233         * lib/copy-file.h: Likewise.
53234         * lib/findprog.h: Likewise.
53235         * lib/full-write.h: Likewise.
53236         * lib/pathname.h: Likewise.
53237         * lib/progname.h: Likewise.
53238         * lib/stpcpy.h: Likewise.
53239         * lib/stpncpy.h: Likewise.
53240         * lib/strcase.h: Likewise.
53241         * lib/strstr.h: Likewise.
53242         * lib/xalloc.h: Likewise.
53243
53244         * lib/mbswidth.h: Add extern "C" for C++.
53245         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
53246
53247 2004-07-13  Robert Millan  <robertmh@gnu.org>
53248
53249         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
53250
53251 2004-07-09  Simon Josefsson  <jas@extundo.com>
53252
53253         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
53254         failed without this.)
53255
53256 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53257
53258         * modules/chown (Files): Add lib/fchown-stub.c, since
53259         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
53260
53261 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53262
53263         * lib/fchown-stub.c: New file.
53264
53265 2004-06-24  Jim Meyering  <jim@meyering.net>
53266
53267         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
53268
53269 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53270
53271         * modules/argz: Omit "#include".
53272
53273         * MODULES.html.sh (func_all_modules): Add calloc, to match
53274         2004-06-01 addition of calloc module.
53275
53276 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53277
53278         * m4/argz.m4: New file, which is autoupdated from libtool.
53279
53280 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53281
53282         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
53283         libtool.
53284
53285 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53286
53287         * config/srclist-update: Don't insist on "USA." before the
53288         close-comment, as libtool omits the period and puts the */ on a
53289         separate line.
53290         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
53291         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
53292
53293 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
53294
53295         * modules/argz: New file.
53296         * MODULES.html.sh (func_all_modules): Add argz.
53297
53298 2004-06-12  Jim Meyering  <jim@meyering.net>
53299         and  Paul Eggert  <eggert@cs.ucla.edu>
53300
53301         * modules/hash (Files): Add lib/xalloc.h.
53302         * modules/pipe (Depends-on): Add wait-process.
53303         * modules/stat (Depends-on): Add xalloc.
53304         * modules/userspec (Files): Add lib/userspec.h.
53305         * modules/xstrto
53306
53307         Upgrade from gettext-0.13.
53308         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
53309         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
53310         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
53311
53312 2004-06-10  Jim Meyering  <jim@meyering.net>
53313
53314         * lib/calloc.c: New file.
53315
53316 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
53317
53318         * lib/getdate.y (yylex): Allow space between sign and number.
53319         Problem reported by Dan Jacobson.
53320
53321 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
53322
53323         Merge from coreutils CVS.
53324
53325         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
53326         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
53327         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
53328         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
53329         xstrtol.m4: Fix copyright date and/or serial number.
53330
53331         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
53332         See if we need an fchown replacement.
53333         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
53334         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
53335         and use the replacement function if we detect either defect.
53336
53337         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
53338         gl_UTIMECMP.
53339
53340 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
53341         and  Jim Meyering  <jim@meyering.net>
53342
53343         Merge from coreutils CVS.
53344
53345         * lib/stat-macros.h: New file, with contents from file-type.h
53346         and coreutils' system.h.
53347         * lib/file-type.c: Include "stat-macros.h".
53348         * lib/file-type.h (file_type): Move all macro definitions to new file,
53349         stat-macros.h.
53350
53351         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
53352         Wrap old code with this conditional.
53353         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
53354         function that does not dereference symlinks.
53355         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
53356
53357         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
53358         dependency problems.
53359         (xreadlink): Accept new arg SIZE, for efficiency.
53360         All decls and uses changed.
53361         * lib/xreadlink.h: Include <stddef.h>, for size_t.
53362
53363         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
53364         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
53365
53366         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
53367         sysexits.h.
53368
53369 2004-06-01  Jim Meyering  <jim@meyering.net>
53370
53371         * m4/calloc.m4: New file.
53372
53373 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
53374
53375         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
53376         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
53377         Also, fix a typo in a diagnostic.
53378
53379 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
53380
53381         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
53382         or AC_FUNC_REALLOC.
53383
53384 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
53385
53386         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
53387         macros to be defined.
53388         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
53389         the allocator returns NULL because the requested size is zero.
53390
53391 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
53392
53393         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
53394         var.  Add comment explaining why libc still defines it.  This
53395         merges the following patch from glibc:
53396         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
53397
53398 2004-05-20  Andreas Schwab  <schwab@suse.de>
53399
53400         * m4/free.m4: Replace free if it not known to work, not the other
53401         way round.
53402
53403 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53404
53405         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
53406         present in glibc since revision 1.1 of this file.
53407         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
53408         obstack_alignment_mask, obstack_alloc, obstack_base,
53409         obstack_blank, obstack_blank_fast, obstack_chunk_size,
53410         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
53411         obstack_grow0, obstack_init, obstack_int_grow,
53412         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
53413         obstack_next_free, obstack_object_size, obstack_ptr_grow,
53414         obstack_ptr_grow_fast, obstack_room): Remove declarations of
53415         nonexistent functions.
53416
53417 2004-05-18  Karl Berry  <karl@gnu.org>
53418
53419         * config/srclist.txt: break link for vasnprintf.c.
53420
53421 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53422
53423         Port obstack to the AS/400, where pointers are 16 bytes wide and
53424         you cannot cast an integer to a valid pointer.  This patch is
53425         currently waiting to be integrated into glibc; see
53426         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
53427
53428         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
53429         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
53430         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
53431         (struct obstack): temp member is now a union of a pointer and
53432         an integer, instead of an integer.  All integer uses changed.
53433         This does not affect the physical layout of struct obstack,
53434         except on hosts (like the AS/400) where the size or alignment of
53435         void * is greater than that of ptrdiff_t.
53436         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
53437         __STDC__)]: Store temporary in pointer member of union, not
53438         integer member.
53439         * lib/obstack.c: Include <stddef.h>, for offsetof.
53440         (struct fooalign): Remove; it doesn't need a name.
53441         (union fooround): Change double to long double, and add void *.
53442         (DEFAULT_ALIGNMENT): Use offsetof to compute.
53443         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
53444         not a macro.  Hence the values are always int; so remove all
53445         casts-to-int in uses.
53446
53447 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53448
53449         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
53450         we can get this patch merged into glibc.
53451
53452 2004-05-17  Derek R. Price  <derek@ximbiot.com>
53453             Paul Eggert  <eggert@cs.ucla.edu>
53454
53455         * m4/argp: Depend on alloca.
53456
53457 2004-05-17  Derek R. Price  <derek@ximbiot.com>
53458             Paul Eggert  <eggert@cs.ucla.edu>
53459
53460         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
53461         freecoding.
53462
53463 2004-05-17  Bruno Haible  <bruno@clisp.org>
53464
53465         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
53466         precision that consists of a '.' followed by an empty digit string.
53467         Patch by Tor Lillqvist <tml@iki.fi>.
53468
53469 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53470
53471         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
53472         for backward compatibility with older code.  We need our own
53473         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
53474         it under some other name, and our alloca.h will define it.
53475
53476 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53477             Derek Price  <derek@ximbiot.com>
53478
53479         * lib/alloca.c: Include <alloca.h>, to get our interface.
53480         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
53481         include <alloca.h> first.  Use C89 prototype for alloca; this
53482         requires including <stddef.h> for size_t.  Use extern "C" if C++.
53483         Use #elif for simplicity, since we can assume C89 now.
53484         Don't try to source the system alloca.h since it will not be found
53485         and to prevent recursively including its replacement.
53486         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
53487         * lib/regex.c: Likewise.
53488
53489 2004-05-16  Derek Price  <derek@ximbiot.com>
53490             Paul Eggert  <eggert@cs.ucla.edu>
53491
53492         getline cleanup.  This changes the getndelim2 API: both order of
53493         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
53494         no delimiter).
53495
53496         * lib/getline.c: Don't include stddef.h or stdio.h, since our
53497         interface does that.
53498         (getline): Always use getdelim, so that we don't have two
53499         copies of this code.
53500         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
53501         if available.
53502         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
53503         (GETNDELIM2_MAXIMUM): New macro.
53504         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
53505         instead of the old practice of delim2==0.  All callers changed.
53506         Return -1 on overflow, instead of returning junk.
53507         Do not set *linesize unless allocation succeeds.
53508         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
53509         that we include sys/types.h.
53510         * lib/getnline.h: Likewise.
53511         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
53512         (getndelim2): Reorder arguments.
53513         * lib/getnline.c (getnline, getndelim):
53514         Don't discard the NMAX argument.
53515         (getnline): Invoke getndelim, to avoid code duplication.
53516         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
53517         of (size_t) -1 by callers of the getnline family.
53518
53519 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
53520
53521         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
53522         Check for gettimeofday.
53523         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
53524         Check for settimeofday, stime.
53525
53526 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
53527
53528         * lib/nanosleep.c (suspended): Change its type from int to
53529         sig_atomic_t volatile.
53530         (first_call): Make it private to rpl_nanosleep, and have it
53531         be zero initially as that's a bit faster.
53532         (my_usleep): Round up fractional times instead of truncating them,
53533         as this is the usual meaning for 'sleep'.
53534
53535         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
53536         doesn't work.
53537         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
53538         (ENOSYS): Define if not defined.
53539         (settime): Fall back on stime if it exists and settimeofday fails.
53540         But don't bother with fallbacks if a method fails with errno == EPERM.
53541
53542 2004-05-11  Jim Meyering  <jim@meyering.net>
53543
53544         Prior to this change, the save_cwd caller required read access to the
53545         current directory on most systems (ones with the fchdir function).
53546
53547         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
53548         fails, try write-only, and finally, resort to using xgetcwd.
53549
53550 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
53551
53552         * lib/obstack.c, obstack.h: Import changes from libc.
53553
53554 2004-04-28  Bruno Haible  <bruno@clisp.org>
53555
53556         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
53557         also implicitly appends .exe to executables.
53558         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
53559         accepts Windows pathnames.
53560         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
53561         Treat Cygwin like Windows, since it now accepts Windows pathnames.
53562         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
53563         Treat Cygwin like Windows, since it now accepts Windows pathnames.
53564         Reported by Derek Robert Price <derek@ximbiot.com>.
53565
53566 2004-04-21  Karl Berry  <karl@gnu.org>
53567
53568         * config/srclist.txt (localcharset.c): break sync.
53569
53570 2004-04-20  Paul Eggert  <eggert@twinsun.com>
53571
53572         * m4/host-os.m4: Add a copyright notice.
53573
53574 2004-04-20  Jim Meyering  <jim@meyering.net>
53575
53576         Change UTILS_ to gl_ in AC_DEFINE'd names.
53577         Change utils_- and jm_-prefixed variables, too.
53578         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
53579         UTILS_FUNC_MKDIR_TRAILING_SLASH.
53580         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
53581
53582         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
53583         Don't emit trailing blanks.
53584         Also rename jm_-prefixed variables to have gl_ prefix.
53585
53586         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
53587         Also rename jm_-prefixed variables to have gl_ prefix.
53588
53589         * m4/jm-macros.m4: Reflect the renamings.
53590         * m4/prereq.m4: Likewise.
53591
53592 2004-04-20  Jim Meyering  <jim@meyering.net>
53593
53594         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
53595         memory.
53596
53597 2004-04-20  Jim Meyering  <jim@meyering.net>
53598             Bruno Haible  <bruno@clisp.org>
53599
53600         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
53601         memory when realloc fails.
53602
53603 2004-04-19  Jim Meyering  <jim@meyering.net>
53604
53605         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
53606         now that readutmp.c may call `free (0)'.
53607
53608 2004-04-19  Bruno Haible  <bruno@clisp.org>
53609
53610         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
53611         * m4/inttypes_h.m4: Likewise.
53612         * m4/stdint_h.m4: Likewise.
53613         * m4/intmax_t.m4: Likewise.
53614         * m4/uintmax_t.m4: Likewise.
53615
53616 2004-04-18  Jim Meyering  <jim@meyering.net>
53617
53618         * m4/prereq.m4: Don't forbid jm_ prefix.
53619
53620         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
53621         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
53622         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
53623         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
53624         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
53625         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
53626         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
53627         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
53628         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
53629         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
53630         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
53631         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
53632         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
53633         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
53634         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
53635         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
53636         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
53637         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
53638         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
53639
53640 2004-04-18  Jim Meyering  <jim@meyering.net>
53641
53642         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
53643         failure, don't leak memory and do call END_UTMP_ENT.
53644
53645 2004-04-16  Jim Meyering  <jim@meyering.net>
53646
53647         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
53648         coreutils' stat program.
53649         (gl_PREREQ): Don't require jm_PREREQ_STAT.
53650
53651 2004-04-11  Paul Eggert  <eggert@twinsun.com>
53652
53653         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
53654         C89.
53655         (CHAR_BIT): Remove, since we assume C89.
53656         Include <stdint.h> if available, as per current Autoconf CVS advice.
53657
53658 2004-03-31  Jim Meyering  <jim@meyering.net>
53659
53660         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
53661         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
53662         * m4/xalloc.m4: Likewise.
53663
53664 2004-03-30  Paul Eggert  <eggert@twinsun.com>
53665
53666         Merge from coreutils.
53667
53668         * m4/inttostr.m4: New file.
53669         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
53670         Require AM_STDBOOL_H and gl_TIMESPEC instead.
53671         Require gl_CLOCK_TIME.
53672         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
53673
53674 2004-03-30  Paul Eggert  <eggert@twinsun.com>
53675
53676         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
53677         not bool, to be more consistent with Unix conventions.
53678         Suggested by Bruno Haible.
53679
53680         Merge from coreutils.
53681
53682         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
53683         * lib/umaxtostr.c: New files.
53684
53685         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
53686         the usual <time.h> dance.
53687         (get_date): Change signature to support fractional time stamps.
53688         All callers changed.
53689         * lib/getdate.y: Include "getdate.h" first, as we can now
53690         assume C89 and don't need to worry about 'const'.
53691         Similarly, include "unlocked-io.h" near start, not in middle.
53692         Include <limits.h>.
53693         (textint.value): Use long int rather than int.
53694         (textint.digits): Use size_t rather than int.
53695         (BILLION, LOG10_BILLION): New constants.
53696         (parser_control): New member rel_ns.  Members day_ordinal,
53697         time_zone, month, day, hour, minutes, rel_year, rel_month,
53698         rel_day, rel_hour, rel_minutes, rel_seconds
53699         are now long int, not int.  Member seconds is now struct timespec,
53700         not int.  New member timespec_seen.  Members dates_seen, days_seen,
53701         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
53702         not int.
53703         (%union.intval): Now long int, not int.
53704         New member timespec.
53705         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
53706         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
53707         (spec): Now is a timespec or an item list.
53708         (timespec, items): New nonterminals.
53709         (time, rel, relunit, number, get_date):
53710         Add support for fractional seconds.
53711         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
53712         (gmtime, localtime, mktime): Remove decls; not needed with C89.
53713         (to_hour): First arg is now long int, not int.
53714         (to_year): Returns long int, not int.
53715         Don't treat year -70 like 70.
53716         (tm_diff): Returns long int, not int.
53717         (lookup_word): Use bool instead of int when appropriate.
53718         (yylex): Use size_t for count, not int.
53719         Detect overflow when parsing large integer constants.
53720         Add support for fractions.
53721         (get_date): Make pointers 'const' if possible.
53722         Use more-portable code to detect integer overflow.
53723         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
53724         Don't use ctime; it's not reliable if the year has >4 digits.
53725
53726         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
53727         This is for compatibility with BSD.
53728
53729         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
53730         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
53731         From coreutils' system.h.
53732
53733         * lib/userspec.c: Don't include "posixver.h".
53734         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
53735         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
53736         compatible extension.  Simplify code by removing a boolean int
53737         that was always nonzero if a string was nonnull.
53738
53739 2004-03-30  Jim Meyering  <jim@meyering.net>
53740
53741         Merge from coreutils.
53742
53743         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
53744         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
53745         on some systems one must include <grp.h> before it.
53746         Reported by Christian Krackowizer.
53747
53748 2004-03-30  Jim Meyering  <jim@meyering.net>
53749
53750         Merge from coreutils.
53751
53752         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
53753
53754         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
53755         an empty input stream.
53756
53757         * lib/readtokens.c: Include <stdbool.h>.
53758         (readtoken): Use `size_t' rather than int/long.
53759         All callers adjusted.
53760         Use `bool' rather than `int' where appropriate.
53761         Use memset rather than an explicit loop.
53762         Use x2nrealloc rather than xrealloc.
53763         Allow the use of `\0' as a delimiter.
53764         (readtokens): Likewise.
53765         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
53766
53767 2004-03-30  Jim Meyering  <jim@meyering.net>
53768
53769         * m4/realloc.m4: Remove file, since now it does no more than
53770         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
53771         the `configure.ac' section of module/realloc.
53772         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
53773
53774 2004-03-30  Bruno Haible  <bruno@clisp.org>
53775
53776         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
53777         nonnull.
53778
53779 2004-03-29  Paul Eggert  <eggert@twinsun.com>
53780
53781         Merge changes to getloadavg.c from coreutils and Emacs.
53782
53783         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
53784         Define to an expression, not to the empty string.
53785         Include cloexec.h and xalloc.h.
53786         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
53787         Use set_cloexec_flag rather than rolling our own.
53788         * lib/cloexec.c, lib/cloexec.h: New files.
53789
53790 2004-03-29  Paul Eggert  <eggert@twinsun.com>
53791
53792         * m4/cloexec.m4: New file.
53793
53794 2004-03-18  Paul Eggert  <eggert@twinsun.com>
53795
53796         * lib/getopt.h: Sync with libc CVS.
53797
53798 2004-03-18  Paul Eggert  <eggert@twinsun.com>
53799             Bruno Haible  <bruno@clisp.org>
53800
53801         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
53802         mbswidth.
53803
53804 2004-03-18  Paul Eggert  <eggert@twinsun.com>
53805             Bruno Haible  <bruno@clisp.org>
53806
53807         * lib/mbswidth.h: Include <wchar.h> only if
53808         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
53809         <wchar.h>.
53810         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
53811
53812 2004-03-09  Paul Eggert  <eggert@twinsun.com>
53813
53814         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
53815         Sync with libc CVS.
53816         * lib/getopt_int.h: New file, also synced from libc.
53817
53818 2004-03-09  Paul Eggert  <eggert@twinsun.com>
53819
53820         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
53821         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
53822         Bring back getopt.c, getopt.h, getopt1.c.
53823
53824 2004-03-07  Paul Eggert  <eggert@twinsun.com>
53825
53826         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
53827         All uses changed.  Check for sa_sigaction member; this fixes
53828         a bug first reported by Jason Andrade in
53829         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
53830
53831 2004-03-07  Paul Eggert  <eggert@twinsun.com>
53832
53833         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
53834         '#if' expressions.  Unlike the code it replaces, it does not
53835         depend on (defined _SC_PAGESIZE).  However, it does depend on
53836         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
53837         first reported by Jason Andrade in
53838         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
53839
53840 2004-02-25  Simon Josefsson  <jas@extundo.com>
53841
53842         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
53843
53844 2004-02-25  Simon Josefsson  <jas@extundo.com>
53845
53846         * lib/strdup.h: New file.
53847         * lib/strdup.c: Include it.
53848         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
53849         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
53850
53851 2004-02-23  Karl Berry  <karl@gnu.org>
53852
53853         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
53854         (from fencepost.gnu.org:/gd/gnuorg).
53855
53856 2004-02-23  Karl Berry  <karl@gnu.org>
53857
53858         * config/srclistvars.sh (GNUORG) [karl]: redefine.
53859         * config/srclist.txt: add maintain/standards documents.
53860
53861 2004-02-18  Bruno Haible  <bruno@clisp.org>
53862
53863         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
53864         Reported by Derek Robert Price <derek@ximbiot.com>.
53865
53866 2004-02-16  Karl Berry  <karl@gnu.org>
53867
53868         * config/mkinstalldirs, install-sh: update from automake.
53869
53870 2004-02-06  Karl Berry  <karl@gnu.org>
53871
53872         * m4/po.m4: update from gettext 0.14.1.
53873
53874 2004-02-06  Karl Berry  <karl@gnu.org>
53875
53876         * lib/config.charset: update from gettext 0.14.1.
53877
53878 2004-02-05  Paul Eggert  <eggert@twinsun.com>
53879
53880         Add comments and code, prompted by suggestions from Bruno Haible
53881         for sh-quote.
53882         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
53883         describing the enum quoting_style values.
53884         * lib/quotearg.c (quotearg_alloc): New function.
53885         (quotearg_buffer_restyled): Treat lone { and } as special.
53886         Treat = as special.  Work around bug with older shells
53887         that "see" a '\' that is really the 2nd byte of a multibyte char.
53888         Quote empty string with shell_quoting_style.
53889
53890 2004-02-03  Bruno Haible  <bruno@clisp.org>
53891
53892         * m4/pipe.m4: New file, from GNU gettext.
53893
53894 2004-02-03  Bruno Haible  <bruno@clisp.org>
53895
53896         * lib/pipe.h: New file, from GNU gettext.
53897         * lib/pipe.c: New file, from GNU gettext.
53898
53899 2004-01-27  Bruno Haible  <bruno@clisp.org>
53900
53901         * m4/execute.m4: New file, from GNU gettext.
53902
53903 2004-01-27  Bruno Haible  <bruno@clisp.org>
53904
53905         * lib/execute.h: New file, from GNU gettext.
53906         * lib/execute.c: New file, from GNU gettext.
53907         * lib/w32spawn.h: New file, from GNU gettext.
53908
53909 2004-01-24  Paul Eggert  <eggert@twinsun.com>
53910
53911         Merge from diffutils.
53912
53913         * lib/file-type.c (file_type): Add typed memory objects.
53914         * lib/file-type.h (S_TYPEISTMO): New macro.
53915
53916         * lib/c-stack.h (c_stack_action): Remove argv argument.
53917         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
53918         (die): Don't calculate message unless segv_action returns.
53919         (get_stack_location, min_address_from_argv, max_address_from_argv,
53920         volatile stack_base, volatile_stack_size): Remove.
53921         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
53922         that every segmentation violation is a stack overflow.  (Ouch!)
53923         See Debian bug 136249 (still outstanding) for more info about why
53924         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
53925
53926 2004-01-24  Paul Eggert  <eggert@twinsun.com>
53927
53928         Exit-status fix from coreutils.
53929
53930         Use exit_failure consistently in place of EXIT_FAILURE,
53931         so that program exit statuses are consistent on failure.
53932
53933         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
53934         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
53935         * lib/argmatch.h: Comment fix to match the above.
53936         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
53937         Now a macro referring to exit_failure, instead of a separate
53938         variable.  Include "exitfail.h" to get it.
53939         * lib/xstrtol.h: Include "exitfail.h".
53940         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
53941
53942         * lib/long-options.c (parse_long_options): Use prototype
53943         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
53944         for clarity.
53945
53946 2004-01-21  Jim Meyering  <jim@meyering.net>
53947
53948         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
53949         so as not to conflict with a different-sized __mktime_internal
53950         function in GNU libc.
53951         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
53952         Problem building statically-linked `ls' reported by Michael Brunnbauer.
53953
53954 2004-01-20  Karl Berry  <karl@gnu.org>
53955
53956         * config/config.guess: update from config.
53957
53958         * config/srclistvars.sh: GNUWWWLICENSES for karl.
53959
53960 2004-01-20  Bruno Haible  <bruno@clisp.org>
53961
53962         Safer stack allocation.
53963         * lib/setenv.c: Include allocsa.h.
53964         (alloca): Remove fallback definition.
53965         (freea): Remove macro.
53966         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
53967         instead of freea.
53968
53969 2004-01-20  Bruno Haible  <bruno@clisp.org>
53970
53971         * m4/eealloc.m4: New file, from GNU gettext.
53972
53973 2004-01-20  Bruno Haible  <bruno@clisp.org>
53974
53975         * m4/allocsa.m4: New file, from GNU gettext.
53976
53977 2004-01-20  Bruno Haible  <bruno@clisp.org>
53978
53979         * lib/xallocsa.h: New file, from GNU gettext.
53980         * lib/xallocsa.c: New file, from GNU gettext.
53981
53982 2004-01-20  Bruno Haible  <bruno@clisp.org>
53983
53984         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
53985
53986 2004-01-20  Bruno Haible  <bruno@clisp.org>
53987
53988         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
53989         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
53990         specially.
53991
53992 2004-01-20  Bruno Haible  <bruno@clisp.org>
53993
53994         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
53995         patch.
53996
53997 2004-01-20  Bruno Haible  <bruno@clisp.org>
53998
53999         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
54000
54001 2004-01-20  Bruno Haible  <bruno@clisp.org>
54002
54003         * lib/eealloc.h: New file.
54004
54005 2004-01-20  Bruno Haible  <bruno@clisp.org>
54006
54007         * lib/binary-io.h: Avoid warnings on Cygwin.
54008
54009 2004-01-20  Bruno Haible  <bruno@clisp.org>
54010
54011         * lib/allocsa.h: New file, from GNU gettext.
54012         * lib/allocsa.c: New file, from GNU gettext.
54013
54014 2004-01-18  Karl Berry  <karl@gnu.org>
54015
54016         * doc/gpl.texi, doc/lgpl.texi: new files.
54017
54018 2004-01-18  Karl Berry  <karl@gnu.org>
54019
54020         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
54021         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
54022
54023 2004-01-15  Paul Eggert  <eggert@twinsun.com>
54024
54025         Merge from coreutils.
54026
54027         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
54028         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
54029         (gl_DEFAULT_POSIX2_VERSION): Move
54030         the documentation from 'configure' into 'config.hin',
54031         so that 'configure --help' isn't burdened by it and
54032         we don't have to worry about its formatting there.
54033         Reword the documentation so that it's more succinct
54034         and can be run together into a single paragraph.
54035         * m4/same.m4 (gl_SAME): Check for pathconf.
54036
54037 2004-01-15  Paul Eggert  <eggert@twinsun.com>
54038
54039         Merge from coreutils.
54040
54041         * lib/posixver.c: Include posixver.h.
54042
54043         * lib/same.c: Include <stdbool.h>, <limits.h>.
54044         (_POSIX_NAME_MAX): Define if not defined.
54045         (MIN): New macro.
54046         (same_name): If file names are silently truncated, report
54047         that the file names are the same if they are the same after
54048         the silent truncation.
54049
54050         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
54051         conversion function.
54052         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
54053         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
54054         longer needed.
54055
54056 2004-01-15  Jim Meyering  <jim@meyering.net>
54057
54058         Merge from coreutils.
54059
54060         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
54061         if no library is required.
54062         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
54063         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
54064         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
54065         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
54066         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
54067         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
54068         value, $ac_cv_search_crypt, if it's "none required".
54069         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
54070         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
54071         not gl_FUNC_GETLOADAVG.
54072         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
54073         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
54074
54075 2004-01-15  Jim Meyering  <jim@meyering.net>
54076
54077         Merge from coreutils.
54078
54079         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
54080         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
54081         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
54082
54083         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
54084         optional configure-time default.
54085
54086         * lib/version-etc.c (version_etc_copyright): Update copyright date.
54087
54088         * lib/xreadlink.c (xreadlink): Correct outdated comment.
54089
54090 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
54091
54092         Merge from coreutils.
54093
54094         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
54095         value, $ac_cv_search_nanosleep, if it's "none required".
54096
54097 2004-01-14  Paul Eggert  <eggert@twinsun.com>
54098
54099         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
54100         with like-named macro in fnmatch.c.
54101         (EXT): Use an internal constant instead.
54102
54103         Merge fnmatch patches from glibc.
54104         * lib/fnmatch.c (mbsinit): Remove define.
54105         Add libc_hidden_ver (__fnmatch, fnmatch).
54106         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
54107         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
54108
54109 2004-01-14  Karl Berry  <karl@gnu.org>
54110
54111         * config/install-sh: update from automake.
54112
54113 2004-01-13  Karl Berry  <karl@gnu.org>
54114
54115         * config/install-sh: update from automake.
54116
54117 2004-01-09  Karl Berry  <karl@gnu.org>
54118
54119         * config/install-sh: update from automake.
54120
54121 2004-01-05  Karl Berry  <karl@gnu.org>
54122
54123         * config/config.{sub,guess}: update from config.
54124
54125 2003-12-31  Karl Berry  <karl@gnu.org>
54126
54127         * config/depcomp: update from automake.
54128
54129 2003-12-14  Karl Berry  <karl@gnu.org>
54130
54131         * lib/config.charset: update from gettext-runtime.
54132
54133 2003-12-03  Paul Eggert  <eggert@twinsun.com>
54134
54135         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
54136         Bug reported by Alfred M. Szmidt.
54137
54138 2003-12-03  Bruno Haible  <bruno@clisp.org>
54139
54140         * m4/gettext.m4: Upgrade from gettext-0.13.
54141         * m4/po.m4: Upgrade from gettext-0.13.
54142         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
54143         * m4/intmax.m4: New file, from gettext-0.13.
54144         * m4/printf-posix.m4: New file, from gettext-0.13.
54145
54146 2003-11-29  Karl Berry  <karl@gnu.org>
54147
54148         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
54149
54150 2003-11-25  Paul Eggert  <eggert@twinsun.com>
54151             Bruno Haible  <bruno@clisp.org>
54152
54153         * lib/printf-parse.h: Don't include sys/types.h.
54154         (ARG_NONE): New macro.
54155         (char_directive): Change type of *arg_index fields to size_t.
54156         * lib/printf-parse.c: Don't include sys/types.h.
54157         (SSIZE_MAX): Remove macro.
54158         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
54159         Remove unnecessary overflow check.
54160         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
54161         fields.
54162
54163 2003-11-25  Bruno Haible  <bruno@clisp.org>
54164
54165         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
54166
54167 2003-11-25  Bruno Haible  <bruno@clisp.org>
54168
54169         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
54170         gt_TYPE_SSIZE_T.
54171
54172 2003-11-24  Paul Eggert  <eggert@twinsun.com>
54173
54174         * modules/alloca: Remove dependency on xalloc.
54175
54176 2003-11-24  Paul Eggert  <eggert@twinsun.com>
54177
54178         * lib/alloca.c: Remove dependency on xalloc module.
54179         (xalloc_die): Remove.
54180         (memory_full) [!defined emacs]: New macro.
54181         [!defined emacs]: Don't include xalloc.h.
54182         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
54183         address arithmetic overflows.  Change datatypes a bit to avoid
54184         unnecessary casts.
54185
54186 2003-11-22  Jim Meyering  <jim@meyering.net>
54187
54188         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
54189         s/size/size_t/.
54190
54191 2003-11-21  Karl Berry  <karl@gnu.org>
54192
54193         * config/config.{sub,guess}: update from config.
54194
54195 2003-11-18  Karl Berry  <karl@gnu.org>
54196
54197         * config/config.{sub,guess}: update from config.
54198
54199         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
54200
54201 2003-11-17  Paul Eggert  <eggert@twinsun.com>
54202
54203         * README: Mention that S+T cannot overflow if S is the size of
54204         an existing object and T is sufficiently small.
54205
54206 2003-11-17  Jim Meyering  <jim@meyering.net>
54207
54208         On systems without utime and without a utimes function capable of
54209         dealing with a NULL struct utimbuf* argument, this utime replacement
54210         could -- in unusual circumstances -- leak a file descriptor.
54211         * lib/utime.c: Include <unistd.h> and <errno.h>.
54212         (utime_null): Be sure to close `fd' and to preserve errno.
54213         Reported by Geoff Collyer via Arnold Robbins.
54214
54215 2003-11-17  Bruno Haible  <bruno@clisp.org>
54216
54217         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
54218         (Depends-on): Add xsize.
54219
54220 2003-11-17  Bruno Haible  <bruno@clisp.org>
54221
54222         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
54223
54224 2003-11-17  Bruno Haible  <bruno@clisp.org>
54225
54226         * lib/vasnprintf.c (alloca): Remove fallback definition.
54227         (freea): Remove definition.
54228         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
54229         Reported by Paul Eggert.
54230
54231 2003-11-16  Paul Eggert  <eggert@twinsun.com>
54232             Bruno Haible  <bruno@clisp.org>
54233
54234         Protect against address arithmetic overflow.
54235         * lib/printf-args.h: Include stddef.h.
54236         (arguments): Change type of field 'count' to size_t.
54237         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
54238         'unsigned int' where appropriate.
54239         * lib/printf-parse.h: Include sys/types.h.
54240         (char_directive): Change type of *arg_index fields to ssize_t.
54241         (char_directives): Change type of fields 'count', max_*_length to
54242         size_t.
54243         * lib/printf-parse.c: Include sys/types.h and xsize.h.
54244         (SSIZE_MAX): Define fallback value.
54245         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
54246         instead of 'int' where appropriate. Check a_allocated, d_allocated
54247         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
54248         * lib/vasnprintf.c: Include xsize.h.
54249         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
54250         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
54251         overflow. Avoid wraparound when converting a width or precision from
54252         decimal to binary.
54253
54254 2003-11-16  Bruno Haible  <bruno@clisp.org>
54255
54256         Update from GNU gettext.
54257         * lib/printf-parse.c: Generalize to it can be compiled for wide
54258         strings.
54259         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
54260         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
54261         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
54262         SNPRINTF): New macros.
54263         Don't include <alloca.h> if the file is used inside libintl.
54264         (local_wcslen): New function, for Solaris 2.5.1.
54265         (VASNPRINTF): Use it instead of wcslen.
54266
54267 2003-11-16  Bruno Haible  <bruno@clisp.org>
54268
54269         * lib/xsize.h (xmax): New function.
54270         (xsum, xsum3, xsum4): Declare as "pure" functions.
54271
54272 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54273
54274         * modules/xalloc (Files): Undo latest change, since xalloc.h
54275         no longer needs SIZE_MAX or PTRDIFF_MAX.
54276
54277 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54278
54279         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
54280         gl_PTRDIFF_MAX.
54281
54282 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54283
54284         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
54285         "return", to pacify some unknown compiler.  Problem reported
54286         by Joerg Schilling.
54287
54288 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54289
54290         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
54291         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
54292         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
54293         heuristic is just as accurate as far as we know, and it removes a
54294         dependency on size_max.m4 and ptrdiff_max.m4.
54295
54296 2003-11-11  Bruno Haible  <bruno@clisp.org>
54297
54298         * modules/xsize (Files): Add m4/size_max.m4.
54299         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
54300
54301 2003-11-11  Bruno Haible  <bruno@clisp.org>
54302
54303         * m4/size_max.m4: New file.
54304         * m4/ptrdiff_max.m4: New file.
54305         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
54306         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
54307         (gl_XALLOC): Invoke it.
54308
54309 2003-11-11  Bruno Haible  <bruno@clisp.org>
54310
54311         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
54312         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
54313         defined.
54314
54315 2003-11-10  Paul Eggert  <eggert@twinsun.com>
54316
54317         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
54318         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
54319         rejected some allocations of exactly SIZE_MAX - 2 bytes.
54320         From Bruno Haible.
54321         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
54322         not (size_t) -1, since it's defined here.
54323
54324 2003-11-09  Karl Berry  <karl@gnu.org>
54325
54326         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
54327
54328 2003-11-06  Paul Eggert  <eggert@twinsun.com>
54329
54330         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
54331         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
54332         Reject sizes of exactly SIZE_MAX bytes.
54333         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
54334         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
54335
54336 2003-11-05  Bruno Haible  <bruno@clisp.org>
54337
54338         * lib/xsize.h: Include limits.h, to avoid a possible collision with
54339         SIZE_MAX defined in <limits.h> on Solaris.
54340
54341 2003-11-04  Jim Meyering  <jim@meyering.net>
54342
54343         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
54344         variable names, rather than @VAR@.
54345         * modules/poll: Likewise.
54346
54347 2003-11-04  Bruno Haible  <bruno@clisp.org>
54348
54349         * modules/xsize: New file.
54350         * modules/linebreak: Depend on xsize.
54351         * MODULES.html.sh (func_all_modules): Add xsize.
54352
54353 2003-11-04  Bruno Haible  <bruno@clisp.org>
54354
54355         * m4/xsize.m4: New file.
54356
54357 2003-11-04  Bruno Haible  <bruno@clisp.org>
54358
54359         * lib/xsize.h: New file.
54360         * lib/linebreak.c: Include xsize.h.
54361         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
54362         argument for overflow.
54363         Suggested by Paul Eggert.
54364
54365 2003-11-03  Karl Berry  <karl@gnu.org>
54366
54367         * config/config.{guess,sub}: update from config.
54368
54369 2003-11-03  Jim Meyering  <jim@meyering.net>
54370
54371         * modules/userspec (lib_SOURCES): Add userspec.h.
54372         (Include): Add "userspec.h".
54373         Improve description.
54374
54375 2003-11-03  Jim Meyering  <jim@meyering.net>
54376
54377         * lib/userspec.c: Include "userspec.h".
54378         * lib/userspec.h: New file.
54379
54380 2003-11-03  Bruno Haible  <bruno@clisp.org>
54381
54382         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
54383
54384 2003-11-03  Bruno Haible  <bruno@clisp.org>
54385
54386         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
54387         available, to avoid (extremely rare) race condition.
54388         Suggested by Paul Eggert.
54389
54390 2003-11-02  Karl Berry  <karl@gnu.org>
54391
54392         * config/srclist.txt (vasprintf.c): sync broken, sigh.
54393
54394 2003-10-31  Paul Eggert  <eggert@twinsun.com>
54395
54396         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
54397         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
54398         (read_filesystem_list): Set and use me_type_malloced.
54399         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
54400         whatever the type happens to be), for brevity and consistency.
54401         Check for size calculation overflow on Alphas running OSF/1.
54402
54403 2003-10-31  Jim Meyering  <jim@meyering.net>
54404
54405         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
54406
54407         * lib/linebuffer.c: Include <string.h> for declaration of memset.
54408
54409 2003-10-30  Paul Eggert  <eggert@twinsun.com>
54410             Bruno Haible  <bruno@clisp.org>
54411
54412         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
54413         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
54414
54415 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
54416
54417         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
54418         netbsd*-gnu*.  Suggested by Robert Millan.
54419
54420 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54421
54422         * modules/group-member: Depend on stdbool.
54423
54424 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54425
54426         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
54427
54428 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54429
54430         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
54431         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
54432         after the 'gnu' in these cases.  This fixes some bugs in the
54433         previous change, and is based on suggestions by Robert Millan.
54434
54435 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54436
54437         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
54438         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
54439         no longer needed.
54440         * lib/quotearg.c (quotearg_n_options): Use it.
54441         * lib/group-member.c: Include <stdbool.h>.
54442         (free_group_info): Arg is now const *; don't free arg.
54443         (get_group_info): Now returns bool and accepts struct group_info *,
54444         rather than returning a malloc'ed struct group_info *.
54445         All uses changed.  Check for overflow in internal size calculation.
54446
54447         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
54448         rather than xmalloc/xrealloc.
54449         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
54450         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
54451         conformance bug: the old code used a pointer after freeing the
54452         storage that it addressed.
54453         * lib/hash.c (hash_initialize): Simplify the code by using
54454         xalloc_oversized rather than doing it by hand.
54455         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
54456         the buffer preserved.  Use free and xmalloc instead.
54457         * lib/quotearg.c (quotearg_n_options): Likewise.
54458         Use a simpler test for size overflow.  Don't use xalloc_oversized
54459         because unsigned int might be wider than size_t (!); this suggests
54460         that we should switch from unsigned int to size_t for slot numbers.
54461
54462 2003-10-28  Paul Eggert  <eggert@twinsun.com>
54463
54464         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
54465         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
54466         NetBSD kernels.  Requested by Richard Stallman.
54467
54468 2003-10-27  Paul Eggert  <eggert@twinsun.com>
54469
54470         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
54471         to allocate the returned structure.  Do not allocate a subarray,
54472         as x2nrealloc will do that.
54473         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
54474         instead of xnrealloc.
54475         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
54476
54477 2003-10-27  Bruno Haible  <bruno@clisp.org>
54478
54479         * lib/stdbool_.h: Better support for BeOS.
54480
54481 2003-10-26  Paul Eggert  <eggert@twinsun.com>
54482
54483         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
54484         now uses inline.
54485
54486 2003-10-26  Paul Eggert  <eggert@twinsun.com>
54487
54488         * lib/xalloc.h (xalloc_oversized): New static inline function, for
54489         callers that want to do their own size-overflow checking.  Include
54490         <stdbool.h>, since xalloc_oversized returns bool.
54491         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
54492         to use xalloc_oversized.
54493
54494         Add two functions x2realloc, x2nrealloc, for programs that grow
54495         arrays dynamically by doubling their sizes.
54496         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
54497         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
54498         New functions.
54499
54500         Port to C99 semantics for 'inline' of external functions.
54501         Bug reported by Bruno Haible.
54502         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
54503         with the old contents of xnmalloc.
54504         (xnmalloc, xmalloc): Use it.
54505         (xnrealloc_inline): New static inline function,
54506         with the old contents of xnrealloc.
54507         (xnrealloc, xrealloc): Use it.
54508
54509         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
54510         that.
54511
54512 2003-10-26  Karl Berry  <karl@gnu.org>
54513
54514         * config/srclist.txt (COPYING.DOC): no longer available from
54515         /gd/gnuorg; don't know where the ultimate source is.
54516
54517 2003-10-25  Paul Eggert  <eggert@twinsun.com>
54518
54519         Fix several address-calculation bugs in the hash modules,
54520         plus some minor code cleanup.
54521
54522         * lib/hash.h: Include <stdbool.h>, for bool.
54523         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
54524         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
54525         hash_get_n_entries, hash_get_max_bucket_length,
54526         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
54527         hash_rehash): Use size_t rather than unsigned.
54528         * lib/hash.c (struct hash_table, hash_get_n_buckets,
54529         hash_get_n_buckets_used, hash_get_n_entries,
54530         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
54531         hash_get_entries, hash_do_for_each, hash_string, is_prime,
54532         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
54533         Likewise.
54534         (SIZE_MAX): Define if not defined.
54535         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
54536         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
54537         hash_print):
54538         Use const * when possible.
54539         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
54540         (check_tuning): Fix bug: if tuning parameters were very close to
54541         0 or 1, rounding errors could have caused subscript violations.
54542         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
54543         (hash_initialize): Add 'fail:' label
54544         to free table and return NULL, and use it to simplify code.
54545         Use calloc rather than clearing the storage ourself.
54546         (hash_initialize, hash_rehash): Check for arithmetic overflow in
54547         buffer size calculations.
54548         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
54549         Include <stddef.h>, for size_t.
54550         * lib/hash-pjw.c (hash_pjw): Likewise.
54551         Switch to method described by Bruno Haible.
54552         Include <limits.h>, for CHAR_BIT.
54553         (SIZE_BITS): New macro.
54554
54555 2003-10-23  Paul Eggert  <eggert@twinsun.com>
54556
54557         * m4/getline.m4 (AM_FUNC_GETLINE):
54558         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
54559         hosts.  Problem reported by Derek Robert Price in
54560         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
54561         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
54562         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
54563
54564 2003-10-21  Paul Eggert  <eggert@twinsun.com>
54565
54566         * lib/getndelim2.c (getndelim2): When size calculation overflows,
54567         ceiling the allocation at NMAX bytes rather than silently
54568         discarding input bytes before NMAX is reached.  This makes
54569         a difference only if NMAX exceeds SIZE_MAX / 2.
54570
54571         * lib/obstack.c: Merge from glibc.
54572         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
54573         Add libc_hidden_def (_obstack_newchunk).
54574         (_obstack_free) [! defined _LIBC]: Remove.
54575         [defined _LIBC]: Make a strong alias from obstack_free, rather than
54576         a clone of the function body.
54577         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
54578         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
54579
54580         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
54581         glibc.
54582         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
54583         arg to memcpy.
54584
54585         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
54586         (obstack_ptr_grow_fast, obstack_int_grow_fast):
54587         Don't use lvalue casts, as GCC plans to remove support for them
54588         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
54589         was also present in the non-GCC version, indicating that this
54590         code had always been buggy and had never been widely used.
54591         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
54592         Use the fast variant of each macro, rather than copying the
54593         definiens of the fast variant; that way, we'll be more likely to
54594         catch future bugs in the fast variants.
54595
54596 2003-10-20  Bruno Haible  <bruno@clisp.org>
54597
54598         * modules/wait-process: New file.
54599         * MODULES.html.sh (func_all_modules): Add wait-process.
54600
54601 2003-10-20  Bruno Haible  <bruno@clisp.org>
54602
54603         * m4/wait-process.m4: New file.
54604
54605 2003-10-20  Bruno Haible  <bruno@clisp.org>
54606
54607         * lib/wait-process.h: New file, from GNU gettext.
54608         * lib/wait-process.c: New file, from GNU gettext.
54609
54610 2003-10-19  Jim Meyering  <jim@meyering.net>
54611
54612         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
54613         HPUX 10.20.
54614
54615 2003-10-18  Karl Berry  <karl@gnu.org>
54616
54617         * config/config.guess: update from config.
54618
54619 2003-10-16  Paul Eggert  <eggert@twinsun.com>
54620
54621         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
54622         (getgroups): First arg is int, not size_t.
54623         Don't let 'free' mangle errno.
54624
54625 2003-10-16  Paul Eggert  <eggert@twinsun.com>
54626
54627         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
54628
54629 2003-10-16  Karl Berry  <karl@gnu.org>
54630
54631         * config/config.{guess,sub}: update from config.
54632
54633 2003-10-16  Jim Meyering  <jim@meyering.net>
54634
54635         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
54636         memcpy.
54637
54638 2003-10-15  Paul Eggert  <eggert@twinsun.com>
54639
54640         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
54641         (SIZE_MAX): Remove.
54642         (new_exclude, add_exclude_file): Initial size no longer needs to
54643         be a power of 2.
54644         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
54645         our own address arithmetic overflow checking.
54646
54647         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
54648         (fnmatch): Do not alloca more than 2000 wide characters;
54649         instead, use malloc for large buffers.
54650         Check for address arithmetic overflow, and return -1
54651         with errno set to ENOMEM in that case.
54652         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
54653         (NEW_PATTERN): Do not alloca more than 8000 bytes;
54654         instead, return -1.  Check for address arithmetic overflow.
54655
54656 2003-10-14  Paul Eggert  <eggert@twinsun.com>
54657
54658         Handle invalid suffixes and overflow independently, so that
54659         callers can treat them independently as needed.  Fix some bugs in
54660         suffix handling, e.g., "100k@" was not diagnosed as an invalid
54661         suffix for a human-readable blocksize.  The major caller-visible
54662         change is the addition of a new
54663         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
54664         that both overflow and suffix chars were found.
54665
54666         * lib/human.c (humblock): Don't check separately for invalid suffix
54667         char; that is xstrtoumax's job (now that its bug is fixed).
54668         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
54669         INTMAX_MAX]: New macros.
54670         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
54671         TYPE_MAXIMUM): New macros.
54672         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
54673         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
54674         if overflow occurs, as it's what __strtol does and it's more useful
54675         in practice.
54676         (__xstrtol): If __strtol reports some error other than ERANGE,
54677         reflect it to the caller as LONGINT_INVALID.  If it reports
54678         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
54679         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
54680         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
54681         value.
54682         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
54683         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
54684         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
54685         [defined UINTMAX_MAX]: New macros.
54686
54687 2003-10-14  Bruno Haible  <bruno@clisp.org>
54688
54689         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
54690
54691 2003-10-14  Bruno Haible  <bruno@clisp.org>
54692
54693         * m4/sig_atomic_t: New file, from GNU gettext.
54694         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
54695
54696 2003-10-14  Bruno Haible  <bruno@clisp.org>
54697
54698         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
54699         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
54700         Also use volatile where needed.
54701
54702 2003-10-12  Paul Eggert  <eggert@twinsun.com>
54703
54704         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
54705         Change maintainer from Bruno Haible to 'all'.
54706
54707 2003-10-12  Paul Eggert  <eggert@twinsun.com>
54708
54709         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
54710
54711 2003-10-12  Paul Eggert  <eggert@twinsun.com>
54712
54713         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
54714         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
54715         and define in terms of the other primitives.
54716         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
54717         (SIZE_MAX): Define if not already defined.
54718         (array_size_overflow): New function.
54719         (xalloc_die): Abort instead of exiting if 'error' returns.
54720         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
54721         (xmalloc, xrealloc): Use them.
54722         (xcalloc): Check for address arithmetic overflow.
54723         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
54724         a bit faster than strcpy.
54725
54726 2003-10-10  Simon Josefsson  <jas@extundo.com>
54727
54728         * modules/argp (Depends-on): Add restrict and strcase.
54729
54730 2003-10-10  Simon Josefsson  <jas@extundo.com>
54731
54732         * m4/argp.m4: Add AC_C_INLINE.
54733
54734 2003-10-08  Paul Eggert  <eggert@twinsun.com>
54735
54736         Merge getpass from libc, plus a few fixes.
54737
54738         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
54739         Include <stdbool.h>.
54740         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
54741         __fsetlocking to empty.
54742         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
54743         do include <bits/libc-lock.h>.
54744         Do not include <fcntl.h>; not needed.
54745         [_LIBC]: Include <wchar.h>.
54746         (NOTCANCEL_MODE): New macro.
54747         (flockfile, funlockfile) [_LIBC]: New macros.
54748         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
54749         [!_LIBC]: New macros.
54750         (call_fclose): New function.
54751         (getpass): Use it.  Save tty stream separately; this simplifies the
54752         code and makes it more reliable if stdin happens to equal stdout.
54753         Invoke __fsetlocking on tty.
54754         Handle thread cancellation if needed.
54755         Namespace cleanup (use __tcgetattr, __getline).
54756         Use bool for Booleans.
54757         [USE_IN_LIBIO]: Handle wide streams.
54758         [!_LIBC]: Unconditionally do the fseek, since we don't know what
54759         stream might go where.
54760
54761         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
54762         doesn't have to include <stdio.h> before us.
54763         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
54764         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
54765         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
54766         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
54767         if not declared, so that we can use getpass.c code from libc without
54768         rewriting it.
54769         (flockfile, ftrylockfile, funlockfile): New macros.
54770
54771 2003-10-08  Paul Eggert  <eggert@twinsun.com>
54772
54773         * modules/getpass: Depend on stdbool.
54774
54775 2003-10-08  Paul Eggert  <eggert@twinsun.com>
54776
54777         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
54778
54779 2003-10-07  Karl Berry  <karl@gnu.org>
54780
54781         * config/config.{guess,sub}: update from config.
54782
54783 2003-10-06  Jim Meyering  <jim@meyering.net>
54784             Bruno Haible  <bruno@clisp.org>
54785
54786         This lets translators provide better translations for the
54787         "Written by ..." part of --version output.
54788         * lib/version-etc.h: Include stdarg.h.
54789         (version_etc_copyright): Declare as readonly.
54790         (version_etc): Make this function variadic with a NULL-terminated list
54791         of author name strings.
54792         (version_etc_va): New declaration.
54793         * lib/version-etc.c: Include stdarg.h, stdlib.h.
54794         (version_etc_copyright): Declare as readonly.
54795         (version_etc_va): New function. Provide a different translatable string
54796         for each possible number of authors < 10. Abbreviate when there are 10
54797         authors or more.
54798         (version_etc): Make this function variadic. Call version_etc_va.
54799         Suggestion from Gary V. Vaughan.
54800
54801         * lib/long-options.h (parse_long_options): Change prototype: the
54802         authors string is moved to the end and becomes variadic.
54803         * lib/long-options.c: Include stdarg.h.
54804         (parse_long_options): Make this function variadic, too.
54805         Call version_etc_va, not version_etc.
54806
54807 2003-10-06  Bruno Haible  <bruno@clisp.org>
54808
54809         * modules/version-etc-2: Remove file.
54810         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
54811
54812 2003-10-06  Bruno Haible  <bruno@clisp.org>
54813
54814         * modules/fatal-signal: New file.
54815         * MODULES.html.sh (func_all_modules): Add fatal-signal.
54816
54817 2003-10-06  Bruno Haible  <bruno@clisp.org>
54818
54819         * m4/fatal-signal.m4: New file.
54820         * m4/signalblocking.m4: New file, from GNU gettext.
54821
54822 2003-10-06  Bruno Haible  <bruno@clisp.org>
54823
54824         * lib/version-etc-2.h: Remove file.
54825         * lib/version-etc-2.c: Remove file.
54826
54827 2003-10-06  Bruno Haible  <bruno@clisp.org>
54828
54829         * lib/fatal-signal.h: New file, from GNU gettext.
54830         * lib/fatal-signal.c: New file, from GNU gettext.
54831
54832 2003-10-05  Paul Eggert  <eggert@twinsun.com>
54833
54834         * README: Rework advice for preventing empty .o files.
54835         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
54836         not <sys/types.h>.
54837
54838 2003-10-04  Karl Berry  <karl@gnu.org>
54839
54840         * lib/argp*: update from libc.
54841
54842 2003-10-04  Karl Berry  <karl@gnu.org>
54843
54844         * config/config.{guess,sub}: update from config.
54845
54846 2003-10-02  Bruno Haible  <bruno@clisp.org>
54847
54848         * modules/lchown (Include): Add lchown.h.
54849         * modules/time_r (Include): Use "..." syntax.
54850         * modules/xgetdomainname (Include): Add xgetdomainname.h.
54851
54852 2003-10-01  Simon Josefsson  <jas@extundo.com>
54853
54854         * MODULES.html.sh (func_all_modules): Move gethostname from section
54855         'based on' to section 'lacking' POSIX:2001.
54856
54857 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
54858
54859         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
54860         to output mode on the same stream.
54861
54862 2003-09-29  Paul Eggert  <eggert@twinsun.com>
54863
54864         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
54865         Fix arg typo in previous patch.
54866
54867 2003-09-28  Jim Meyering  <jim@meyering.net>
54868
54869         * lib/error.c: Correct cpp indentation.
54870
54871 2003-09-27  Paul Eggert  <eggert@twinsun.com>
54872
54873         * modules/free: New file.
54874
54875 2003-09-27  Paul Eggert  <eggert@twinsun.com>
54876
54877         * m4/free.m4: New file.
54878
54879 2003-09-27  Paul Eggert  <eggert@twinsun.com>
54880
54881         * lib/minmax.h (MIN, MAX)
54882         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
54883         Omit the special code that used __typeof__, since we worry that
54884         it could be more trouble than it's worth.  See:
54885         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
54886         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
54887
54888         * lib/free.c: New file.
54889
54890 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
54891
54892         Trivial fixes to Makefile.am parts of module listings.
54893         * modules/strstr: Append strstr.h to lib_SOURCES.
54894         * modules/strcase: Likewise, for strcase.h.
54895
54896 2003-09-27  Karl Berry  <karl@gnu.org>
54897
54898         * config/mkinstalldirs: update from automake.
54899
54900 2003-09-26  Paul Eggert  <eggert@twinsun.com>
54901
54902         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
54903         (error_tail): Do not loop, reallocating temporary buffer, since
54904         the output cannot contain more wide characters than the input
54905         contains bytes, the size must be big enough already.  This avoids
54906         one potential size overflow calculation.  Check for size overflow
54907         when calculating temporary buffer size.  Free temporary buffer
54908         when done, if it was allocated with malloc; this plugs a memory
54909         leak.  Remove casts from void * to pointers, that are no longer
54910         needed now that we're assuming C89 or better.
54911
54912         Merge error changes from glibc.
54913
54914         * lib/error.c, error.h: Update copyright notice header to match glibc.
54915         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
54916         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
54917         Disable cancellation while printing error.
54918         * lib/error.h: Prepend __ to parameter names.
54919
54920 2003-09-26  Jim Meyering  <jim@meyering.net>
54921
54922         * lib/error.c (error_tail): Move some declarations
54923         into inner scope where the local variables are used.
54924
54925 2003-09-26  Bruno Haible  <bruno@clisp.org>
54926
54927         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
54928         stpncpy().
54929         Don't define stpncpy through config.h; it's now done through stpncpy.h.
54930
54931 2003-09-26  Bruno Haible  <bruno@clisp.org>
54932
54933         * lib/stpncpy.h (gnu_stpncpy): New declaration.
54934         (stpncpy): Define as alias for gnu_stpncpy.
54935         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
54936
54937 2003-09-25  Simon Josefsson  <jas@extundo.com>
54938
54939         * lib/xgetdomainname.h: New file.
54940         * lib/xgetdomainname.c: New file.
54941
54942 2003-09-25  Simon Josefsson  <jas@extundo.com>
54943             Bruno Haible  <bruno@clisp.org>
54944
54945         * modules/getdomainname: New file.
54946         * modules/xgetdomainname: New file.
54947         * MODULES.html.sh (func_all_modules): Add getdomainname,
54948         xgetdomainname.
54949
54950 2003-09-25  Simon Josefsson  <jas@extundo.com>
54951             Bruno Haible  <bruno@clisp.org>
54952
54953         * m4/getdomainname.m4: New file.
54954
54955 2003-09-25  Simon Josefsson  <jas@extundo.com>
54956             Bruno Haible  <bruno@clisp.org>
54957
54958         * lib/getdomainname.h: New file.
54959         * lib/getdomainname.c: New file.
54960
54961 2003-09-25  Karl Berry  <karl@gnu.org>
54962
54963         * lib/argp-fmtstream.c, argp-help.c: update from libc.
54964
54965 2003-09-25  Karl Berry  <karl@gnu.org>
54966
54967         * config/install-sh: update from automake.
54968
54969 2003-09-25  Bruno Haible  <bruno@clisp.org>
54970
54971         * modules/version-etc-2: New file, from modules/version-etc with
54972         modifications.
54973         * MODULES.html.sh (func_all_modules): Add version-etc-2.
54974
54975 2003-09-25  Bruno Haible  <bruno@clisp.org>
54976
54977         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
54978         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
54979
54980 2003-09-24  Simon Josefsson  <jas@extundo.com>
54981
54982         * modules/xgethostname: Add xgethostname.h.
54983
54984 2003-09-24  Paul Eggert  <eggert@twinsun.com>
54985
54986         * lib/linebuffer.c (freebuffer): Don't free the argument, just
54987         the buffer associated with the argument.  Bug reported by
54988         Simon Josefsson.
54989
54990 2003-09-24  Paul Eggert  <eggert@twinsun.com>
54991
54992         * README: Document assumptions that 'int' is at least 32 bits
54993         wide, that integer arithmetic is 2's complement without overflow,
54994         that there are no holes in integer values, that adding sizes of
54995         two nonoverlapping objects can't overflow, and that all-bits-zero
54996         yields scalar zero.  Fix spelling and capitalization typos.
54997
54998 2003-09-19  Karl Berry  <karl@gnu.org>
54999
55000         * lib/argp.h: update from libc.
55001
55002 2003-09-17  Paul Eggert  <eggert@twinsun.com>
55003
55004         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
55005         to avoid spurious warnings like "AC_RUN_IFELSE was called before
55006         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
55007
55008 2003-09-17  Paul Eggert  <eggert@twinsun.com>
55009
55010         * gnulib-tool: Use "test -h", not "test -L", for portability
55011         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
55012         (tags_regexp): Remove, since \| doesn't conform to POSIX.
55013         (sed_extract_prog): Issue s commands one-by-one, rather than
55014         using \| in one s command.
55015
55016 2003-09-16  Paul Eggert  <eggert@twinsun.com>
55017
55018         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
55019         input error, instead of returning NULL the next time we are called
55020         (and therefore losing track of errno).
55021
55022 2003-09-16  Bruno Haible  <bruno@clisp.org>
55023
55024         * gnulib-tool (func_create_testdir): Warn about duplicated
55025         dependencies.
55026
55027 2003-09-15  Paul Eggert  <eggert@twinsun.com>
55028
55029         * modules/argmatch, modules/fatal, modules/obstack,
55030         modules/xalloc, modules/xgethostname: Sort dependencies by
55031         importance, not alphabetically.
55032
55033 2003-09-15  Paul Eggert  <eggert@twinsun.com>
55034
55035         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
55036         fails, so that the caller gets the proper errno.
55037
55038         * lib/readutmp.c (read_utmp): Likewise.
55039         Check for fstat error.  Close stream and free storage
55040         when failing.
55041
55042 2003-09-14  Karl Berry  <karl@gnu.org>
55043
55044         * config/srclist.txt (strdup.c): disable for c89 changes.
55045
55046 2003-09-14  Jim Meyering  <jim@meyering.net>
55047
55048         * lib/getloadavg.c: Correct cpp indentation.
55049         * lib/strdup.c: Likewise.
55050         * lib/vasnprintf.c: Likewise.
55051
55052 2003-09-14  Bruno Haible  <bruno@clisp.org>
55053
55054         * modules/fwriteerror: New file.
55055         * MODULES.html.sh (func_all_modules): Add fwriteerror.
55056
55057 2003-09-14  Bruno Haible  <bruno@clisp.org>
55058
55059         * lib/fwriteerror.h: New file.
55060         * lib/fwriteerror.c: New file.
55061
55062 2003-09-12  Paul Eggert  <eggert@twinsun.com>
55063
55064         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
55065         modules/xgethostname, modules/xalloc: Depend on exit.
55066
55067 2003-09-12  Paul Eggert  <eggert@twinsun.com>
55068
55069         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
55070
55071         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
55072         and AC_MINIX, too, so that their extensions are available.
55073
55074         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
55075         This macro has been superseded by gl_BACKUPFILE.
55076
55077         More patches to assume C89 or better.
55078
55079         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
55080
55081         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
55082         unconditionally.
55083         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
55084         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
55085         Include <string.h>, <stdlib.h> unconditionally.
55086         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
55087         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
55088         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
55089         headers or for string.h.
55090         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
55091         or strtoul.
55092
55093         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
55094         headers.
55095         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
55096         * m4/userspec.m4 (gl_USERSPEC): Likewise.
55097         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
55098         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
55099         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55100         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
55101         memcpy, memset.
55102         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
55103         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
55104         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
55105         strtol.
55106         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
55107         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
55108         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
55109         strtoul.
55110
55111 2003-09-12  Paul Eggert  <eggert@twinsun.com>
55112
55113         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
55114         * lib/obstack.c [!defined _LIBC]: Likewise.
55115         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
55116         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
55117         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
55118
55119         More changes to assume C89 or better.
55120
55121         * lib/error.c (error_tail): Assume vprintf.
55122
55123         * lib/argmatch.c (getenv): Remove decl.
55124         * lib/progreloc.c (get_full_program_name): Define via prototype.
55125         * lib/setenv.c (clearenv): Likewise.
55126         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
55127         needed.
55128         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
55129         (malloc, memcpy): Remove decls.
55130         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
55131         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
55132         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
55133         (memcpy): Remove macro.
55134         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
55135         (__P): Remove.  All uses removed.
55136         (PTR): Remove.  All uses changed to void *.
55137         (CHAR_BIT, NULL): Remove.
55138         (spaces, zeros, memset_space, memset_zero)
55139         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
55140         Remove.
55141         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
55142         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
55143         Define with prototype.
55144         Remove now-unnecessary prototype decl.
55145         (extra_args_spec): Assume ANSI C.  All uses changed.
55146         (extra_args_spec_iso): Remove.
55147         (my_strftime, emacs_strftimeu): Define via prototype.
55148         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
55149         unconditionally.
55150         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
55151         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
55152         (strtoul, strtol): Remove decls.
55153         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
55154         LONG_MAX): Remove.
55155         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
55156         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
55157         (LOCALE_PARAM_PROTO): New macro.
55158         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
55159         (INTERNAL (strtol), strtol): Define with a prototype.
55160         (PARAMS): Remove.  All uses removed.
55161         * lib/tempname.c: Include <string.h> unconditionally.
55162         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
55163         * lib/xgethostname.c (main): Define with a prototype.
55164         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
55165         Include <stdlib.h> unconditionally.
55166         (calloc, malloc, realloc, free): Remove decls.
55167         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
55168         Include <stdlib.h> unconditionally.  Sort include file names.
55169         (strtod): Remove.
55170         (xstrtod): Define with a prototype.
55171         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
55172         (strtol, strtoul): Remove decls.
55173
55174 2003-09-11  Paul Eggert  <eggert@twinsun.com>
55175
55176         More patches to assume C89 or better.
55177         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
55178         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
55179         string.h, memchr, STDC_HEADERS.
55180
55181 2003-09-11  Paul Eggert  <eggert@twinsun.com>
55182
55183         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
55184         Include <stdlib.h>, <string.h> unconditionally.
55185         Remove now-unnecessary cast to char *.
55186         * lib/strnlen.c: Include <string.h> unconditionally.
55187         * lib/yesno.c (yesno): Define with a prototype.
55188
55189 2003-09-11  Bruno Haible  <bruno@clisp.org>
55190
55191         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
55192
55193 2003-09-10  Jim Meyering  <jim@meyering.net>
55194
55195         * lib/error.c: Correct indentation of cpp directives.
55196
55197 2003-09-10  Bruno Haible  <bruno@clisp.org>
55198
55199         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
55200         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
55201         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
55202         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
55203         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
55204         <stdlib.h> and <string.h> checks.
55205         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
55206         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
55207
55208 2003-09-10  Bruno Haible  <bruno@clisp.org>
55209
55210         * lib/strcspn.c: Include <string.h> unconditionally.
55211         * lib/strpbrk.c: Include <string.h> unconditionally.
55212         * lib/strstr.c: Include <string.h> unconditionally.
55213         * lib/unicodeio.c: Include <string.h> unconditionally.
55214         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
55215         * lib/unsetenv.c: Likewise.
55216         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
55217         * lib/yesno.c: Include <stdlib.h> unconditionally.
55218         (rpmatch): Add prototype.
55219
55220 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55221
55222         More patches to assume C89 or better.
55223         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
55224         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
55225         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
55226         or for string.h.
55227         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
55228         stdlib.h.
55229         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
55230         C headers.
55231         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
55232         string.h.
55233         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
55234         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
55235         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
55236         or for string.h.
55237         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
55238         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
55239         C headers.
55240         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
55241         memcpy.
55242         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
55243         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
55244         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
55245         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
55246         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
55247         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
55248         string.h, free.
55249         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
55250         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
55251         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
55252         C headers, or for string.h.
55253         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
55254         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
55255         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
55256         headers, memory.h, stdlib.h, string.h, strings.h.
55257         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
55258         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
55259         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
55260         strchr.
55261         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
55262         headers, memory.h, string.h.
55263         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
55264         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
55265         free.
55266         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
55267         headers.
55268         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
55269         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
55270         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
55271         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
55272         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
55273
55274 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55275
55276         More K&R removal.
55277
55278         * lib/acosl.c (main): Use a prototype.
55279         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
55280         tanl.c: Likewise.
55281
55282         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
55283
55284         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
55285         (getopt, etopt_long, getopt_long_only, _getopt_internal)
55286         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
55287         with a prototype.
55288         * lib/getopt.c (const): Remove macro.
55289         Include <string.h> unconditionally.
55290         (my_index): Remove; all uses changed to strchr.
55291         (strlen): Remove decl.
55292         (exchange): Remove forward decl; no longer needed.
55293         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
55294         Define with prototype.
55295         * lib/getopt1.c (const): Remove macro.
55296         (getopt_long, getopt_long_only, main): Define with prototype.
55297
55298         * lib/getugroups.c: Include <string.h> unconditionally.
55299
55300         * lib/getusershell.c: Include <stdlib.h> unconditionally.
55301         (getusershell, setusershell, endusershell, readname, main):
55302         Define with prototypes.
55303
55304         * lib/group-member.c: Include group-member.h first.
55305         Include <stdlib.h> unconditionally.
55306
55307         * lib/hard-locale.c: Include hard-locale.h first.
55308         Include <stdlib.h>, <string.h> unconditionally.
55309
55310         * lib/hash.c (free, malloc): Remove decls.
55311         Include <stdlib.h> unconditionally.
55312
55313         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
55314         (getenv): Do not declare.
55315
55316         * lib/idcache.c: Include <string.h> unconditionally.
55317
55318         * lib/long-options.c: Include long-options.h first, to test interface.
55319         Include <stdlib.h> unconditionally.
55320
55321         * lib/makepath.c: Include makepath.h first, to test interface.
55322         Include <stdlib.h> and <string.h> unconditionally.
55323
55324         * lib/linebuffer.c: Include <stdlib.h>.
55325         (free): Remove decl.
55326
55327         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
55328         stddef.h. rpl_malloc returns void *, not char *.
55329         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
55330         prototype.
55331
55332         * lib/md5.h: Include <limits.h> unconditionally.
55333         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
55334         (__P): Remove; all uses removed.
55335         * lib/md5.c: Include "md5.h" first.
55336         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
55337         md5_buffer, md5_process_bytes, md5_process_block):
55338         Define with prototypes.
55339         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
55340         * lib/sha.c: Include "sha.h" first.
55341         Include <stdlib.h>, <string.h> unconditionally.
55342
55343         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
55344         * lib/memcmp.c (__ptr_t): Likewise.
55345         * lib/memrchr.c (__ptr_t): Likewise.
55346         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
55347         Include <string.h> unconditionally.
55348         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
55349         * lib/memchr.c: Include <stdlib.h> unconditionally.
55350         * lib/memchr.c (LONG_MAX): Remove.
55351         * lib/memrchr.c (LONG_MAX): Likewise.
55352         * lib/memchr.c (__memchr): Define via a prototype.
55353         * lib/memrchr.c (__memrchr): Likewise.
55354         * lib/memcmp.c (__P): Remove, and remove all uses.
55355         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
55356         Remove forward decls; no longer needed.
55357         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
55358         Use types required by C89 in prototype.
55359
55360         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
55361         * lib/savedir.c: Likewise.
55362         * lib/mkdir.c (free): Remove decl.
55363         * lib/rmdir.c (rmdir): Define with a prototype.
55364         * lib/savedir.c: Include savedir.h first, to test interface.
55365
55366         * lib/mktime.c (STDC_HEADERS): Remove.
55367         Include <stdlib.h>, <string.h> unconditionally.
55368
55369         * lib/modechange.c: Include <stdlib.h> unconditionally.
55370         (malloc): Remove decl.
55371
55372         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
55373         (free): Remove decl.
55374
55375         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
55376         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
55377         (This type really should be intptr_t, but that's a C99ism.)
55378         (_obstack_memcpy): Remove: all uses changed to memcpy.
55379         Include <string.h> unconditionally.
55380         (struct obstack): Assume __STDC__ for types of members
55381         chunkfun, freefun, extra_arg.
55382         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
55383         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
55384         obstack_begin, obstack_specify_allocation,
55385         obstack_specify_allocation_with_arg, obstack_chunkfun,
55386         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
55387         Remove unprototyped decls and the macros that use them.
55388         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
55389         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
55390         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
55391         (defined __STDC__ && __STDC__)]:
55392         Remove nonprototyped code.
55393         Include <stdlib.h> unconditionally.
55394         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
55395         _obstack_allocated_p, _obstack_free, obstack_free,
55396         _obstack_memory_used, print_and_abort):
55397         Define using prototypes.
55398         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
55399         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
55400         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
55401         obstack_next_free, obstack_object_size, obstack_room) [0]:
55402         Remove unused, unprototyped code.
55403
55404         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
55405
55406         * lib/physmem.c (physmem_total, physmem_available, main): Define
55407         with prototypes.
55408
55409         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
55410         (main): Define with a prototype.
55411
55412         * lib/posixver.c (getenv): Remove decl.
55413
55414         * lib/putenv.c (malloc): Returns void *, not char *.
55415         Include <string.h> unconditionally.
55416         (strchr, memcpy, NULL): Do not define.
55417
55418         * lib/readtokens.c: Include readtokens.h first, to test interface.
55419         Include <stdlib.h>, <string.h> unconditionally.
55420         (init_tokenbuffer): Define with a prototype.
55421
55422         * lib/regex.c (PARAMS): Remove.  All uses removed.
55423         All uses of _RE_ARGS removed, too.
55424         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
55425         unconditionally.
55426         (bzero): Assume memset exists.
55427         (memcmp, memcpy, NULL): Remove.
55428         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
55429         char, or assignments to local vars of type signed char.
55430         (init_syntax_once, PREFIX(extract_number_and_incr),
55431         PREFIX(print_partial_compiled_pattern),
55432         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
55433         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
55434         PREFIX(regex_grow_registers), PREFIX(regex_compile),
55435         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
55436         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
55437         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
55438         wcs_compile_range, byte_compile_range, truncate_wchar,
55439         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
55440         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
55441         count_mbs_length, wcs_re_match_2_internal,
55442         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
55443         PREFIX(alt_match_null_string_p),
55444         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
55445         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
55446         regfree, PREFIX(extract_number)): Define with prototype.  Remove
55447         now-unnecessary declaration, if any.
55448         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
55449         regcomp, regexec):
55450         Remove now-unnecessary casts among pointer types.
55451         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
55452
55453         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
55454         (free): Remove decl.
55455
55456         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
55457
55458         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
55459         (free): Remove decl.
55460
55461         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
55462         * lib/xgetcwd.c: Likewise.
55463
55464         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
55465         (free): Remove decl.
55466
55467         * lib/strchrnul.c (strchrnul): Define with a prototype.
55468         Fix bug: c_in was not converted to char before searching.
55469
55470         The following changes are not K&R related:
55471
55472         * lib/group-member.h: Include <sys/types.h>, so that this file is
55473         self-contained.
55474         * lib/makepath.h: Likewise.
55475
55476         * lib/getusershell.c (readname, default_index, line_size, readname):
55477         Use size_t, not int, for sizes.
55478         (readname): If the size overflows, report an error instead of
55479         looping forever.
55480
55481 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55482
55483         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
55484         libc.
55485
55486 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55487
55488         * README: New section: portability guidelines.
55489
55490 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
55491
55492         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
55493         C89 spec.
55494
55495 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
55496
55497         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
55498
55499 2003-09-08  Paul Eggert  <eggert@twinsun.com>
55500
55501         Assume C89 or better; remove K&R cruft.
55502         A few of these changes were first proposed by Derek Robert Price
55503         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
55504
55505         * lib/addext.c: Include <string.h> unconditionally.
55506         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
55507         Don't declare getenv or malloc.
55508
55509         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
55510         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
55511         (NULL): Remove.
55512         (find_stack_direction, alloca): Use prototypes.
55513
55514         * lib/atexit.c (atexit): Define using a prototype.
55515
55516         * lib/basename.c, dirname.c, stripslash.c:
55517         Include <string.h> unconditionally.
55518
55519         * lib/bcopy.c: Include <stddef.h>.
55520         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
55521
55522         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
55523
55524         * lib/error.h (error, error_at_line, error_print_progname)
55525         [! (defined (__STDC__) && __STDC__)]: Remove decls.
55526         * lib/error.c: Include error.h first, to check interface.
55527         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
55528         (VA_START): Remove; all uses changeed to va_start.
55529         (exit, strerror): Remove decls.
55530         (error_print_progname): Prototype uncondionally.
55531         Don't include <errno.h>; no longer needed.
55532         (private_strerror): Remove.
55533         (error_tail): Always define.
55534         (error, error_at_line): Assume C89 or better; always use prototypes.
55535         * lib/fatal.c: Include "fatal.h" first, to test interface.
55536         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
55537         (VA_START): Remove; all uses changed to va_start.
55538         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
55539         this case.
55540         (exit): Remove decl.
55541         (fatal): Prototype unconditionally.  Assume va_start works.
55542         Abort at end, to pacify gcc.
55543
55544         * lib/euidaccess.c (main): Define with a prototype.
55545
55546         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
55547
55548         * lib/exitfail.c: Include <stdlib.h> unconditionally.
55549
55550         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
55551         prototypes.
55552         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
55553         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
55554         (getenv): Remove decl.
55555         (fnmatch): Define using a prototype.
55556         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
55557         (FCT): Define using a prototype.
55558
55559         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
55560
55561         * lib/gethostname.c: Include <stddef.h>.
55562         (gethostname): Define with prototype.  Length is size_t, not int.
55563
55564 2003-09-08  Paul Eggert  <eggert@twinsun.com>
55565
55566         Assume C89 or better; remove K&R cruft.
55567         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
55568         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
55569         string.h, getenv, malloc.
55570         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
55571         headers.
55572         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
55573         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
55574         do not check for strerror.
55575         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
55576         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
55577         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
55578         do not check for doprnt or vprintf.
55579         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
55580         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
55581
55582 2003-09-08  Paul Eggert  <eggert@twinsun.com>
55583
55584         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
55585         getversion.c should have been removed then, but was accidentally
55586         preserved.
55587
55588         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
55589         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
55590
55591 2003-09-08  Karl Berry  <karl@gnu.org>
55592
55593         * config/config.sub, config.guess, srclistvars.sh: update from savannah
55594                 config, forget about prep.
55595
55596         * config/depcomp, missing: update from automake.
55597
55598 2003-09-07  Paul Eggert  <eggert@twinsun.com>
55599
55600         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
55601         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
55602
55603 2003-09-07  Paul Eggert  <eggert@twinsun.com>
55604
55605         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
55606         copy_tm_result.  Bug reported by Simon Josefsson in
55607         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
55608
55609 2003-09-06  Paul Eggert  <eggert@twinsun.com>
55610
55611         * m4/time_r.m4: New file.
55612         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
55613         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
55614         is. Check for timegm declaration.
55615         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
55616         Do not check for gmtime_r.
55617         Replace mktime if __mktime_internal does not exist and if mktime
55618         hasn't been replaced already.
55619
55620 2003-09-06  Paul Eggert  <eggert@twinsun.com>
55621
55622         * lib/time_r.c, lib/time_r.h: New files.
55623
55624         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
55625         __localtime_r.
55626         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
55627         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
55628
55629         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
55630         __gmtime_r.
55631         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
55632         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
55633         Include <time_r.h>.
55634
55635         * lib/timegm.c: Switch to glibc implementation, with the following
55636         changes:
55637         [defined HAVE_CONFIG_H]: Include <config.h>.
55638         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
55639         (__mktime_internal) [!defined _LIBC]: New decl.
55640         (__gmtime_r) [!defined _LIBC]: New macro and function.
55641         (timegm): Use a prototype, since gnulib assumes C89.
55642         Do not bother declaring tmp to be const, as it's not really usefu.
55643         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
55644         (timegm): Declare only if HAVE_DECL_TIMEGM.
55645
55646 2003-09-06  Paul Eggert  <eggert@twinsun.com>
55647
55648         * MODULES.html.sh (func_all_modules): Add time_r.
55649         * modules/time_r: New file.
55650         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
55651         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
55652
55653 2003-09-03  Paul Eggert  <eggert@twinsun.com>
55654
55655         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
55656         Bug reported by Lute Kamstra in
55657         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
55658
55659         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
55660         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
55661         course with correspondingly smaller numbers for tomorrow and
55662         yesterday.  From Tadayoshi Funaba.  Originally installed into
55663         sh-utils on 1999-08-07, but the patch got lost (I guess during the
55664         coreutils merge?).
55665
55666 2003-08-31  Simon Josefsson  <jas@extundo.com>
55667
55668         * modules/timegm: New file.
55669         * MODULES.html.sh (func_all_modules): Add timegm.
55670
55671 2003-08-31  Simon Josefsson  <jas@extundo.com>
55672
55673         * m4/timegm.m4: New file.
55674
55675 2003-08-31  Simon Josefsson  <jas@extundo.com>
55676
55677         * lib/timegm.h: New file.
55678         * lib/timegm.c: New file.  Based on
55679         wget-1.8.2/src/http.c:mktime_from_utc.
55680
55681 2003-08-31  Karl Berry  <karl@gnu.org>
55682
55683         * lib/argp.h: update from libc.
55684
55685 2003-08-28  Bruno Haible  <bruno@clisp.org>
55686
55687         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
55688         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
55689         followed by '#define fnmatch fnmatch_posix' gives an error.
55690
55691 2003-08-28  Bruno Haible  <bruno@clisp.org>
55692
55693         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
55694         warning on QNX, which defines O_BINARY to 000000.
55695
55696 2003-08-27  Jim Meyering  <jim@meyering.net>
55697
55698         * m4/mkstemp.m4: Require that the system mkstemp be able to create
55699         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
55700         would fail after 32.  Reported by Danny Levinson.  Details here:
55701         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
55702
55703 2003-08-24  Bruno Haible  <bruno@clisp.org>
55704
55705         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
55706         MSVC7 <stdio.h> is included later.
55707
55708 2003-08-22  Simon Josefsson  <jas@extundo.com>
55709
55710         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
55711
55712 2003-08-20  Karl Berry  <karl@gnu.org>
55713
55714         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
55715
55716 2003-08-20  Bruno Haible  <bruno@clisp.org>
55717
55718         * modules/progname: New file.
55719         * MODULES.html.sh (func_all_modules): Add progname.
55720
55721 2003-08-20  Bruno Haible  <bruno@clisp.org>
55722
55723         * lib/progname.h: New file, from GNU gettext.
55724         * lib/progname.c: New file, from GNU gettext.
55725         * lib/progreloc.c: New file, from GNU gettext.
55726
55727 2003-08-19  Jim Meyering  <jim@meyering.net>
55728
55729         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
55730         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
55731
55732 2003-08-19  Bruno Haible  <bruno@clisp.org>
55733
55734         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
55735         more.
55736
55737 2003-08-19  Bruno Haible  <bruno@clisp.org>
55738
55739         * lib/xstrdup.c: Assume <string.h> exists.
55740
55741 2003-08-18  Paul Eggert  <eggert@twinsun.com>
55742
55743         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
55744         in makefile rules.
55745
55746 2003-08-18  Jim Meyering  <jim@meyering.net>
55747
55748         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
55749         * m4/lib-ld.m4: Likewise.
55750
55751 2003-08-18  Jim Meyering  <jim@meyering.net>
55752
55753         * lib/setenv.h: Indent nested cpp directive.
55754         * lib/vasnprintf.c: Remove trailing blanks.
55755
55756 2003-08-17  Simon Josefsson  <jas@extundo.com>
55757
55758         * modules/xstrndup: New file.
55759         * MODULES.html.sh (func_all_modules): Add xstrndup.
55760
55761 2003-08-17  Simon Josefsson  <jas@extundo.com>
55762
55763         * modules/argp: Fix autoconf macro name. Add more dependencies.
55764
55765 2003-08-17  Simon Josefsson  <jas@extundo.com>
55766
55767         * m4/xstrndup.m4: New file.
55768
55769 2003-08-17  Simon Josefsson  <jas@extundo.com>
55770
55771         * m4/argp.m4: New file.
55772
55773 2003-08-17  Simon Josefsson  <jas@extundo.com>
55774             Bruno Haible  <bruno@clisp.org>
55775
55776         * lib/xstrndup.h: New file.
55777         * lib/xstrndup.c: New file.
55778
55779 2003-08-17  Bruno Haible  <bruno@clisp.org>
55780
55781         * modules/strndup (Files, Include): Add lib/strndup.h.
55782
55783 2003-08-17  Bruno Haible  <bruno@clisp.org>
55784
55785         * modules/euidaccess (Files): Add lib/euidaccess.h.
55786
55787 2003-08-17  Bruno Haible  <bruno@clisp.org>
55788
55789         * lib/strndup.h: New file.
55790
55791 2003-08-17  Bruno Haible  <bruno@clisp.org>
55792
55793         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
55794         like AC_GNU_SOURCE.
55795         * modules/extensions (configure.ac): Comment out the invocation of
55796         gl_USE_SYSTEM_EXTENSIONS.
55797
55798 2003-08-16  Paul Eggert  <eggert@twinsun.com>
55799
55800         Merges from coreutils, etc.
55801         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
55802         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
55803         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
55804         fixing a typo.
55805         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
55806         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
55807
55808 2003-08-16  Paul Eggert  <eggert@twinsun.com>
55809
55810         Document merge from coreutils.
55811         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
55812         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
55813         * modules/utime: Add m4/utimes-null.m4.
55814
55815 2003-08-16  Paul Eggert  <eggert@twinsun.com>
55816
55817         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
55818         space, undoing this 2003-08-12 change:
55819         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
55820
55821 2003-08-16  Paul Eggert  <eggert@twinsun.com>
55822
55823         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
55824         strtoul.c from libc, undoing this 2003-08-12 change:
55825         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
55826
55827 2003-08-16  Jim Meyering  <jim@meyering.net>
55828
55829         Merges from coreutils.
55830         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
55831         prefix.  Adjust cache variables similarly.  Create 500 rather than
55832         just 300 files, to exercise bug on Darwin6.5, too.
55833         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
55834         $missing_dir.
55835         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
55836         AM_SYS_POSIX_TERMIOS.
55837         Reported by mkc@mathdogs.com.
55838         Also change use of $am_cv_sys_posix_termios
55839         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
55840         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
55841         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
55842         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
55843         in /proc/mounts until it finds one with matching device number.  This
55844         is unnecessary when the FILE argument *is* a mount point.  No stat call
55845         is necessary in that case.  So, disable the statvfs-testing code on
55846         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
55847         as RedHat bug# 84846.
55848         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
55849         to 1MB, so as not to render systems with no stack size limit (e.g.,
55850         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
55851         Include <unistd.h>.  On some systems,
55852         it is required for the definition of _SC_PAGESIZE.
55853
55854 2003-08-16  Jim Meyering  <jim@meyering.net>
55855
55856         Merge from coreutils.
55857         * lib/xstrtoimax.c: #else #if -> #elif.
55858         * lib/xstrtoumax.c: Likewise.
55859
55860 2003-08-16  Jim Meyering  <jim@meyering.net>
55861
55862         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
55863         * m4/utimes.m4: Removed.
55864         * m4/utimes-null.m4: Renamed from utimes.m4.
55865
55866         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
55867         to 1MB, so as not to render systems with no stack size limit (e.g.,
55868         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
55869         Include <unistd.h>.  On some systems,
55870         it is required for the definition of _SC_PAGESIZE.
55871
55872 2003-08-16  Jim Meyering  <jim@meyering.net>
55873         and Paul Eggert  <eggert@cs.ucla.edu>
55874
55875         Merges from coreutils, etc.
55876
55877         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
55878         using the latest version from cvs.  This avoids problems with #line
55879         directives using a vendor (Sun) compiler.
55880         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
55881         Don't set GETGROUPS_LIB here; now it's
55882         done via getgroups.m4's wrapper function.
55883         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
55884         rather than just in sh-util/configure.in, so that the
55885         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
55886         same.
55887         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
55888         AC_FUNC_GETLOADAVG where to find getloadavg.c.
55889         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
55890         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
55891         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
55892         Remove code that is now done by the newly-required macros.
55893         Append $(EXEEXT) to DF_PROG.
55894         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
55895         Do not invoke or require the following here,
55896         since prereq.m4 or some gnulib .m4 now does this for us:
55897         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
55898         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
55899         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
55900         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
55901         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
55902         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
55903         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
55904         AC_FUNC_OBSTACK.
55905         Do not replace the following functions, as this is now the job
55906         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
55907         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
55908         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
55909         atexit getpass, strdup, getpagesize.
55910         Replace 'raise'.
55911         Do not check for the following functions, as this is now the job
55912         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
55913         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
55914         setregid.
55915         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
55916         Check for sys/sysctl.h.
55917         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
55918         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
55919         of checking for ssize_t ourselves.
55920
55921         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
55922         Require every macro that gnulib/modules/* suggests for us.
55923         (jm_PREREQ_ADDEXT): New macro.
55924         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
55925         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
55926
55927         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
55928         (gl_PHYSMEM): Use it.
55929         Also check for `table' function.
55930         Check for new headers and functions.
55931         Add check for sys/sysmp.h.
55932         With suggestions from Kaveh Ghazi.
55933         Ignore headers that are present but cannot be compiled.  This
55934         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
55935         C 5.4.
55936
55937 2003-08-15  Paul Eggert  <eggert@twinsun.com>
55938
55939         Document merge from coreutils.
55940         * modules/userspec: Depend on posixver.
55941         * modules/strftime: Depend on tzset.
55942
55943 2003-08-15  Paul Eggert  <eggert@twinsun.com>
55944
55945         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
55946         rather than tab, after '#' in shell-script copyright notices.
55947         Suggested by Bruno Haible.
55948
55949 2003-08-15  Paul Eggert  <eggert@twinsun.com>
55950
55951         * config/srclist-update: Use three spaces, rather than tab, after '#'
55952         in shell-script copyright notices.  Suggested by Bruno Haible.
55953         Remove unnecessary parenthesization in regular expression.
55954
55955 2003-08-15  Jim Meyering  <jim@meyering.net>
55956
55957         Merge from coreutils.
55958         * lib/xgethostname.c: Include <stdlib.h>.
55959         (xghostname): Don't exit for anything other than memory-related
55960         failure; just return NULL.
55961         * lib/userspec.c: Include "posixver.h".
55962         (parse_user_spec): Accept `.' as a separator only
55963         in pre-POSIX-200112 mode.
55964         * lib/strtoimax.c: Use #elif rather than #else #if.
55965         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
55966         Remove function, now that we can rely on a working tzset function.
55967         [!_LIBC]: Ensure that the required autoconf test has been run.
55968         [!defined _NL_CURRENT && HAVE_STRFTIME]:
55969         Use underlying_strftime for %r.
55970         * lib/sha.c: Merge in some clean-up and optimization changes from
55971         glibc.
55972         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
55973         Ensure that it is a multiple of 64.
55974         Rearrange loop exit tests so as to avoid performing an
55975         additional fread after encountering an error or EOF.
55976         * lib/realloc.c: Update copyright date.
55977
55978 2003-08-15  Jim Meyering  <jim@meyering.net>
55979         and Paul Eggert  <eggert@twinsun.com>
55980
55981         Merge from coreutils.
55982         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
55983         member but strut utmpx does not.  Needed for AIX 4.3.3.
55984         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
55985
55986 2003-08-15  Jim Meyering  <jim@meyering.net>
55987         and Paul Eggert  <eggert@cs.ucla.edu>
55988
55989         Merges from coreutils, etc.
55990         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
55991         Require gl_FUNC_TZSET_CLOBBER.
55992         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
55993         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
55994         members.
55995
55996 2003-08-14  Paul Eggert  <eggert@twinsun.com>
55997
55998         Help the merge from coreutils.
55999         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
56000         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
56001         * m4/tzset.m4: Use it too.
56002
56003 2003-08-14  Paul Eggert  <eggert@twinsun.com>
56004
56005         * modules/tzset: New file.
56006
56007 2003-08-14  Jim Meyering  <jim@meyering.net>
56008
56009         Merges from coreutils.
56010         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
56011         variable names, rather than @FNMATCH_H@.
56012         * modules/alloca: Likewise for $(ALLOCA_H).
56013
56014         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
56015         the three copies of the literal target, `fnmatch.h'.
56016         * modules/alloca (alloca.h): Likewise.
56017
56018 2003-08-14  Jim Meyering  <jim@meyering.net>
56019
56020         Merge from coreutils.
56021         * m4/tzset.m4: New file.
56022         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
56023         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
56024         otherwise, AIX 5.1 systems would end up using the latter.
56025         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
56026         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
56027         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
56028         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
56029
56030 2003-08-14  Jim Meyering  <jim@meyering.net>
56031
56032         Merge from coreutils.
56033         * lib/obstack.h: Whitespace changes.
56034         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
56035         and xcalloc return values.
56036         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
56037         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
56038         hang on OSF/1 5.1 for DIR on both local and remote file systems.
56039         Reported by (and fix confirmed by) Nelson H. F. Beebe.
56040         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
56041         error from mntctl.
56042         Use mntctl's return value to drive the entry-processing loop, since
56043         we can't rely on the value of the vmt_length member in the last
56044         entry.  On some systems doing so could result in exhausting
56045         virtual memory.  Based in part on a patch from Mike Jetzer.
56046
56047 2003-08-14  Jim Meyering  <jim@meyering.net>
56048         and Paul Eggert  <eggert@twinsun.com>
56049
56050         Merges from coreutils, plus other fixes.
56051         * lib/physmem.c: Merge in portability changes from gcc/libiberty
56052         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
56053         for credits and details.  Thanks to Kaveh Ghazi for helping
56054         to keep these files in sync.
56055         (ARRAY_SIZE): Define it.
56056         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
56057         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
56058         (memcasecmp): Don't assume size_t fits in unsigned int.
56059         Remove casts and duplicate code.
56060         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
56061         (memcpy): Remove definition.
56062         Merge in some clean-up and optimization changes from glibc.
56063         [BLOCKSIZE]: Move definition to top of file.
56064         Ensure that it is a multiple of 64.
56065         Rearrange loop exit tests so as to avoid performing an
56066         additional fread after encountering an error or EOF.
56067         * lib/md5.h (md5_uintptr): Define.
56068         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
56069         return to the initial working directory.  Preserve errno
56070         for caller.
56071         * lib/idcache.c: Include "xalloc.h".
56072         (xmalloc, xrealloc): Remove decls.
56073         (getuser): Remove casts no longer required in C89.
56074         * lib/human.c: Include stdio.h, for sprintf.
56075         * lib/group-member.c: Include "xalloc.h".
56076         (xmalloc, xrealloc): Remove decls.
56077         (get_group_info): Remove casts no longer required in C89.
56078         * lib/getusershell.c (readname): Remove casts no longer required in
56079         C89.
56080         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
56081         * lib/getline.c: Whitespace fix, from coreutils.
56082
56083 2003-08-13  Paul Eggert  <eggert@twinsun.com>
56084
56085         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
56086         Check for isascii.
56087
56088         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
56089         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
56090         Undo previous (whitespace-only) change.
56091
56092 2003-08-13  Paul Eggert  <eggert@twinsun.com>
56093
56094         * lib/exclude.c: Include <ctype.h>
56095         (IN_CTYPE_DOMAIN): New macro.
56096         (is_space): New fn.
56097         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
56098         and empty lines.
56099
56100         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
56101         Undo previous (whitespace-only) change.
56102
56103 2003-08-13  Paul Eggert  <eggert@twinsun.com>
56104
56105         * config/srclist-update: Change update back to the old behavior,
56106         leaving whitespace alone.  Use one 'sed' command rather than a
56107         pipeline.
56108         (fixlicense): Now a variable, not a function.
56109         (remove_trailing_blanks): Remove.
56110         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
56111         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
56112         Undo previous (whitespace-only) change.
56113
56114 2003-08-12  Paul Eggert  <eggert@twinsun.com>
56115
56116         Merge from coreutils.
56117         * modules/euidaccess: Add lib_SOURCES, include for new
56118         file euidaccess.h
56119
56120 2003-08-12  Paul Eggert  <eggert@twinsun.com>
56121
56122         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
56123         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
56124         Normalize leading white space and remove trailing white space.
56125
56126         Merge from coreutils
56127         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
56128
56129         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
56130         0.12.1.  These files are now being upgraded automatically by
56131         ../config/srclist-update.
56132
56133 2003-08-12  Paul Eggert  <eggert@twinsun.com>
56134
56135         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
56136         Normalize leading white space and remove trailing white space.
56137         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
56138         notice, as per ../config/srclist-update.
56139
56140         Merge from coreutils.
56141         * lib/euidaccess.h: New file.
56142         * lib/euidaccess.c: Include it.
56143         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
56144         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
56145         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
56146
56147 2003-08-12  Paul Eggert  <eggert@twinsun.com>
56148
56149         * config/srclist-update: Add copyright notice.
56150         (remove_id_lines, remove_trailing_blanks): New constants.
56151         (fixfile): Use them to normalize spacing a bit in copied files.
56152         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
56153         Normalize leading white space and remove trailing white space.
56154
56155         * config/texinfo.tex: Sync with texinfo.
56156
56157         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
56158         strtoul.c from libc, to merge coreutils whitespace changes.
56159
56160         * config/srclist.txt: Get the following m4 files from gettext:
56161         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
56162         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
56163         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
56164         wint_t.m4.
56165
56166 2003-08-12  Karl Berry  <karl@gnu.org>
56167
56168         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
56169         been made.
56170
56171 2003-08-11  Paul Eggert  <eggert@twinsun.com>
56172
56173         * modules/gnu-source, m4/gnu-source.m4:
56174         Remove; we're assuming Autoconf 2.54 or later now.
56175         Suggested by Bruno Haible.
56176         * MODULES.html.sh (func_all_modules): Remove gnu-source.
56177
56178 2003-08-11  Bruno Haible  <bruno@clisp.org>
56179
56180         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
56181
56182 2003-08-11  Bruno Haible  <bruno@clisp.org>
56183
56184         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
56185         (vasnprintf): Use it instead of wcslen.
56186
56187 2003-08-11  Bruno Haible  <bruno@clisp.org>
56188
56189         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
56190         value to ensure that _Bool promotes to int. Use #define for _Bool when
56191         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
56192
56193 2003-08-10  Karl Berry  <karl@gnu.org>
56194
56195         * lib/regex.h: update from libc (whitespace fix).
56196
56197 2003-08-09  Paul Eggert  <eggert@twinsun.com>
56198
56199         Merge some files from coreutils.  These changes were
56200         originally made by Jim Meyering.
56201         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
56202         many older Unixes require this.
56203         * lib/alloca.c (alloca): Remove cast to argument of free;
56204         no longer needed in C89.
56205         * lib/alloca_.h, regex.h: Fix white space to match
56206         what GNU indent does.
56207
56208 2003-08-09  Paul Eggert  <eggert@twinsun.com>
56209
56210         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
56211         apparently Emacs's Unicode mode got confused before my 2003-08-05
56212         checkin.
56213
56214 2003-08-08  Paul Eggert  <eggert@twinsun.com>
56215
56216         * m4/extensions.m4: New file.
56217         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
56218         Require gl_USE_SYSTEM_EXTENSIONS.
56219         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
56220         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
56221
56222 2003-08-08  Paul Eggert  <eggert@twinsun.com>
56223
56224         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
56225         * modules/extensions, modules/gnu-source: New files.
56226         * modules/timespec, modules/unlocked-io: Depend on extensions.
56227
56228 2003-08-07  Paul Eggert  <eggert@twinsun.com>
56229
56230         * modules/restrict: New file.
56231         * MODULES.html.sh (func_all_modules): Add restrict.
56232         * modules/regex: Depend on restrict.
56233
56234 2003-08-07  Paul Eggert  <eggert@twinsun.com>
56235
56236         * m4/restrict.m4: New file.
56237         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
56238
56239 2003-08-07  Bruno Haible  <bruno@clisp.org>
56240
56241         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
56242         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
56243
56244 2003-08-07  Bruno Haible  <bruno@clisp.org>
56245
56246         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
56247         makes the module 'getndelim2' compatible with the module 'getline'.
56248
56249 2003-08-05  Paul Eggert  <eggert@twinsun.com>
56250
56251         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
56252         byte with "\201" to avoid glitches when editing that source file
56253         with multi-gnome-terminal.
56254
56255 2003-08-05  Paul Eggert  <eggert@twinsun.com>
56256
56257         * lib/bumpalloc.h: Remove.
56258
56259 2003-08-05  Paul Eggert  <eggert@twinsun.com>
56260
56261         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
56262         * modules/bumpalloc: Remove.
56263
56264 2003-08-04  Paul Eggert  <eggert@twinsun.com>
56265
56266         * lib/getloadavg.c: Change copyright notice and spacing to conform to
56267         GNU coding style.
56268
56269         Merge from coreutils.
56270         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
56271         1. From glibc.
56272         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
56273         from Karl Berry, implemented by Jim Meyering.
56274         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
56275         from Dmitry V. Levin.
56276         Remove anachronistic cast of xrealloc.
56277         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
56278         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
56279         type. Otherwise, it wouldn't compile with at least /bin/cc on
56280         ymp-cray-unicos9.0.2.X.
56281         Combine two mostly-identical uses of alloca into one.
56282         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
56283
56284 2003-08-04  Dave Love  <d.love@dl.ac.uk>
56285
56286         [From Emacs.]
56287
56288         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
56289         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
56290         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
56291         obsolete NLIST_NAME_UNION.
56292         [__GNU__]: Undef BSD and FSCALE.
56293         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
56294
56295 2003-08-03  Paul Eggert  <eggert@twinsun.com>
56296
56297         * lib/stdbool_.h (_Bool): Make it signed char, instead of
56298         an enum type, so that it's guaranteed to promote to int.  See:
56299         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
56300
56301 2003-08-03  Karl Berry  <karl@gnu.org>
56302
56303         * config/depcomp: update from automake.
56304
56305 2003-07-31  Paul Eggert  <eggert@twinsun.com>
56306
56307         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
56308         (strerror): Don't assume that a printable int fits in 14 bytes.
56309
56310 2003-07-31  Bruno Haible  <bruno@clisp.org>
56311
56312         * modules/getpass-gnu: New file.
56313         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
56314
56315 2003-07-31  Bruno Haible  <bruno@clisp.org>
56316
56317         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
56318
56319 2003-07-24  Karl Berry  <karl@gnu.org>
56320
56321         * config/missing: update from automake.
56322
56323 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
56324             Bruno Haible  <bruno@clisp.org>
56325
56326         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
56327         * lib/getline.c (getline, getdelim): Likewise.
56328         Remove _GNU_SOURCE define; now it's defined in config.h through
56329         m4/getline.m4.
56330
56331 2003-07-23  Karl Berry  <karl@gnu.org>
56332
56333         * config/config.sub: update from prep.
56334
56335 2003-07-22  Paul Eggert  <eggert@twinsun.com>
56336
56337         * modules/xalloc (Depends-on): Add exitfail.
56338         * modules/xmemcoll: Likewise.
56339
56340 2003-07-22  Paul Eggert  <eggert@twinsun.com>
56341
56342         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
56343         over-parenthesization in macros.
56344
56345         Sync with coreutils.
56346
56347         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
56348         required by C99.
56349
56350         Use `exit_failure' for xalloc and xmemcoll instead of their own
56351         private exit-failure variables.
56352         * lib/xalloc.h (xalloc_exit_failure): Remove.
56353         * lib/xmalloc.c: Likewise.  Include exitfail.h.
56354         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
56355         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
56356         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
56357         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
56358
56359 2003-07-20  Jim Meyering  <jim@meyering.net>
56360
56361         * modules/closeout (Depends-on): Add exitfail.
56362         Suggestion from Bruno Haible.
56363
56364 2003-07-19  Karl Berry  <karl@gnu.org>
56365
56366         * config/config.sub: update from prep.
56367
56368 2003-07-18  Paul Eggert  <eggert@twinsun.com>
56369
56370         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
56371         Remove.
56372         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
56373         to test that it can stand by itself.  Include "exitfail.h".
56374         Clients should set exit_failure instead.
56375         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
56376
56377 2003-07-18  Bruno Haible  <bruno@clisp.org>
56378
56379         * modules/getndelim2: New file.
56380         * modules/getline: Share files with module getndelim2.
56381         * modules/getnline: Depend on getndelim2 instead of sharing files with
56382         it. Add getnline.c to lib_SOURCES.
56383         * MODULES.html.sh (func_all_modules): Add getndelim2.
56384
56385 2003-07-18  Bruno Haible  <bruno@clisp.org>
56386
56387         * m4/getndelim2.m4: New file.
56388         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
56389         invoke gl_PREREQ_GETNDELIM2.
56390         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
56391         gl_PREREQ_GETNDELIM2.
56392         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
56393         gl_GETNDELIM2.
56394
56395 2003-07-18  Bruno Haible  <bruno@clisp.org>
56396
56397         * lib/getndelim2.h: New file.
56398         * lib/getndelim2.c: Make into a module of its own. Include config.h,
56399         getndelim2.h.
56400         (getndelim2): Make non-static. Change return type to ssize_t.
56401         * lib/getline.h: Change argument names.
56402         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
56403         * lib/getnline.c: Include getndelim2.h.
56404
56405 2003-07-18  Andreas Schwab  <schwab@suse.de>
56406
56407         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
56408
56409 2003-07-17  Karl Berry  <karl@gnu.org>
56410
56411         * config/config.sub: update from prep.
56412
56413 2003-07-17  Bruno Haible  <bruno@clisp.org>
56414
56415         * modules/getnline: New file.
56416         * modules/getline: Add lib/getndelim2.c to source file list.
56417         * MODULES.html.sh (func_all_modules): Add getnline.
56418
56419 2003-07-17  Bruno Haible  <bruno@clisp.org>
56420
56421         * m4/getnline.m4: New file.
56422
56423 2003-07-17  Bruno Haible  <bruno@clisp.org>
56424
56425         * m4/Makefile.am.in: Remove file.
56426         * m4/Makefile.am: Remove file.
56427         * m4/Makefile.in: Remove file.
56428
56429 2003-07-17  Bruno Haible  <bruno@clisp.org>
56430
56431         * lib/getnline.h: New file.
56432         * lib/getnline.c: New file.
56433         * lib/getndelim2.c: New file, extracted from getline.c.
56434         (getndelim2): Renamed from getdelim2, with added nmax argument.
56435         * lib/getline.c: Include getndelim2.c.
56436         (getdelim2): Moved out to getndelim2.c.
56437         (getline, getdelim): Update.
56438
56439 2003-07-17  Bruno Haible  <bruno@clisp.org>
56440
56441         * lib/Makefile.am: Remove file.
56442         * lib/Makefile.in: Remove file.
56443
56444 2003-07-17  Bruno Haible  <bruno@clisp.org>
56445
56446         * configure.in: Remove file.
56447         * Makefile.in: Remove file.
56448
56449 2003-07-17  Bruno Haible  <bruno@clisp.org>
56450
56451         * MODULES.html.sh: Put the </BODY> right before </HTML>.
56452
56453 2003-07-16  Karl Berry  <karl@gnu.org>
56454
56455         * config/srclist-update: was running fixlicense twice, which caused
56456                 texinfo.tex to be nullified for some reason.  Simplify,
56457                 $gplsrc is no longer needed as far as I can see?
56458
56459 2003-07-16  Jim Meyering  <jim@meyering.net>
56460
56461         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
56462
56463 2003-07-15  Paul Eggert  <eggert@twinsun.com>
56464
56465         * config/srclist.txt: Get the following files from gettext-runtime/intl
56466         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
56467         ref-del.sin.  From Bruno Haible.
56468         * config/srclist-update (fixfile): Change grep pattern again, since the
56469         previous fix didn't work (there was another trailing $).  Use
56470         '[$]' to escape the $s.
56471
56472 2003-07-15  Karl Berry  <karl@gnu.org>
56473
56474         * lib/vasnprintf.c: update from gettext.
56475
56476 2003-07-15  Karl Berry  <karl@gnu.org>
56477
56478         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
56479         gets expanded when surrounded by '$'.
56480
56481 2003-07-15  Jim Meyering  <jim@meyering.net>
56482
56483         * modules/save-cwd: Don't depend on error.  From Derek Price.
56484
56485 2003-07-15  Jim Meyering  <jim@meyering.net>
56486
56487         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
56488
56489 2003-07-14  Simon Josefsson  <jas@extundo.com>
56490
56491         * modules/mempcpy: New file.
56492         * MODULES.html.sh (func_all_modules): Add mempcpy.
56493
56494 2003-07-14  Simon Josefsson  <jas@extundo.com>
56495
56496         * m4/mempcpy.m4: New file.
56497
56498 2003-07-14  Simon Josefsson  <jas@extundo.com>
56499
56500         * lib/mempcpy.h: New file.
56501         * lib/mempcpy.c: New file.
56502
56503 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56504
56505         * modules/getdate, modules/posixtm: Depend on mktime.
56506
56507 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56508
56509         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
56510         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
56511         unicodeio.c, unicodeio.h, unlocked-io.h:
56512         Switch from LGPL to GPL.
56513
56514 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56515
56516         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
56517         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
56518         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
56519         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
56520         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
56521         updated automatically by ../config/srclist-update.  This changes
56522         their license from LPGL to GPL.
56523
56524 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56525
56526         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
56527         assumed to refer to the root of the most recent stable gettext version.
56528         * config/srclistvars.sh: Add defaults for eggert.
56529         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
56530         Match "This program" as well as "The program".  This is needed
56531         for gettext.
56532
56533 2003-07-14  Jim Meyering  <jim@meyering.net>
56534
56535         Don't emit diagnostics.  Let callers do that.
56536         * lib/save-cwd.c: Don't include "error.h".
56537         (save_cwd): Don't call error.  Ensure that errno is valid
56538         when returning nonzero.
56539
56540         * lib/save-cwd.h (restore_cwd): Update prototype.
56541         * lib/save-cwd.c (restore_cwd): Remove two parameters.
56542         Simplify.  Don't call error upon failure.  Let callers do that.
56543         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
56544         when auditing is enabled.  But don't bother updating the #if.
56545
56546 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
56547
56548         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
56549         it breaks C++ compilation.
56550         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
56551
56552 2003-07-10  Simon Josefsson  <jas@extundo.com>
56553
56554         * modules/strchrnul (Makefile.am): Add strchrnul.h.
56555
56556 2003-07-10  Jim Meyering  <jim@meyering.net>
56557
56558         * m4/clock_time.m4: Remove trailing blank.
56559         * m4/intmax_t.m4: Likewise.
56560
56561 2003-07-10  Jim Meyering  <jim@meyering.net>
56562
56563         * lib/vasnprintf.c: Remove trailing blanks.
56564         Make cpp indentation consistent.
56565
56566 2003-07-09  Paul Eggert  <eggert@twinsun.com>
56567
56568         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
56569         posixver.c, strftime.c, strnlen.c, strverscmp.c:
56570         Switch from LGPL to GPL.
56571
56572 2003-07-09  Paul Eggert  <eggert@twinsun.com>
56573
56574         * config/srclist.txt: Sort sublists.  Add
56575         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
56576         that differ from gnulib for one reason or another; we'd like this list
56577         to be smaller but for now let's document what we have.
56578
56579 2003-07-08  Paul Eggert  <eggert@twinsun.com>
56580
56581         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
56582         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
56583         and sweeter "eval x=$x".
56584         * config/srclist.txt: Get lib/argp* from glibc.
56585
56586 2003-07-07  Paul Eggert  <eggert@twinsun.com>
56587
56588         * lib/mktime.c: Fix some boundary cases and remove need for floating
56589         point.
56590
56591         Issue a compile-time diagnostic if time_t is floating point, or if
56592         two's complement arithmetic is not in effect, or if arithmetic
56593         right shift does not propagate the sign.  These assumptions were
56594         all in the original code but they weren't checked.
56595
56596         (TIME_T_MIDPOINT, verify): New macros.
56597         (__isleap): Remove; it has integer overflow problems.
56598         (leapyear): New function, without those problems.
56599         (ydhms_tm_diff): Remove; splitting into two parts.
56600         (ydhms_diff): New function, containing the arithmetic part of
56601         the old ydhms_tm_diff function.  Issue a compile-time
56602         diagnostic if we are not using C99 integer division.
56603         Avoid casts when possible.
56604         (guess_time_tm): New function, containing the checking part of
56605         the old ydhms_tm_diff function.  Return the new value, rather than
56606         the difference between it and the old.  Accept a new argument T
56607         so that *T specifies the old value.  Check for overflow in the result.
56608
56609         (__mktime_internal): Use a time_t offset, not a long int offset.
56610         This undoes the 2003-06-04 change, which is no longer needed now
56611         that we have better overflow checking.
56612         (localtime_offset): Likewise.
56613
56614         (__mktime_internal): Avoid harmful overflow on hosts where time_t
56615         and long are 64-bit but int is only 32-bit.
56616         (ydhms_diff): Use long int to store year1 and yday1.
56617         Issue a compile-time diagnostic if long int is not wide enough.
56618
56619         (__mktime_internal): Use long int to store adjusted year and yday.
56620         Use plain C rather than preprocessor commands, if that doesn't
56621         affect efficiency.
56622         Check for overflow (and try to repair) after each probe
56623         rather than checking only at the very end.  This avoids some bugs
56624         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
56625         does not equal GMT offset at maximum time).
56626         Use integer to check for overflow rather than floating point; this
56627         is more portable to non-IEEE hosts, and is a tad faster.
56628         When we detect that we are oscillating between two values,
56629         don't check whether tm_isdst has the requested value, since
56630         we already know the answer.  When tm_isdst has the wrong value,
56631         use a different heuristic to find the right one, based on the
56632         extreme values actually observed in practice in tz2003a,
56633         rather than the (overly optimistic) "previous 3 calendar quarters".
56634
56635         (not_equal_tm, print_tm, check_result): Use "const T" rather than
56636         "T const" to accommodate glibc style.
56637         (check_result): Use less-confusing report format.  "long" -> "long int.
56638         (main): Likewise.
56639         Don't loop if the iteration overflows time_t.
56640         Allow a negative step in the iteration.
56641
56642 2003-07-06  Karl Berry  <karl@gnu.org>
56643
56644         * config/depcomp: update from automake.
56645         * config/config.sub: update from prep.
56646
56647 2003-07-03  Karl Berry  <karl@gnu.org>
56648
56649         * config/config.guess: update from prep.
56650
56651 2003-07-01  Paul Eggert  <eggert@twinsun.com>
56652
56653         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
56654         xreadlink.c now includes it unconditionally.
56655
56656 2003-07-01  Paul Eggert  <eggert@twinsun.com>
56657
56658         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
56659         having it depend on HAVE_SYS_TYPES_H.
56660
56661 2003-07-01  Bruno Haible  <bruno@clisp.org>
56662
56663         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
56664         <sys/types.h> should be sufficient.
56665         Reported by Paul Eggert.
56666
56667 2003-06-26  Karl Berry  <karl@gnu.org>
56668
56669         * config/depcomp: update from automake.
56670
56671 2003-06-26  Bruno Haible  <bruno@clisp.org>
56672
56673         * modules/human: Depend on module stdbool.
56674
56675 2003-06-25  Bruno Haible  <bruno@clisp.org>
56676
56677         * modules/readlink: New file.
56678         * modules/xreadlink: Depend on it.
56679         * MODULES.html.sh (func_all_modules): Add readlink.
56680
56681 2003-06-25  Bruno Haible  <bruno@clisp.org>
56682
56683         * m4/readlink.m4: New file.
56684
56685 2003-06-25  Bruno Haible  <bruno@clisp.org>
56686
56687         * lib/readlink.c: New file.
56688
56689 2003-06-22  Karl Berry  <karl@gnu.org>
56690
56691         * config/srclist.txt: update mkinstalldirs from automake.
56692         * config/mkinstalldirs: update.
56693
56694 2003-06-22  Bruno Haible  <bruno@clisp.org>
56695
56696         Portability to mingw32.
56697         * m4/ssize_t.m4: New file, from GNU gettext.
56698         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
56699         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
56700
56701 2003-06-22  Bruno Haible  <bruno@clisp.org>
56702
56703         * modules/safe-read: Add m4/ssize_t.m4.
56704         * modules/xreadlink: Add m4/ssize_t.m4.
56705
56706 2003-06-20  Bruno Haible  <bruno@clisp.org>
56707
56708         Assume C89, so PARAMS isn't needed.
56709         * lib/unicodeio.h (PARAMS): Remove.
56710         * lib/unicodeio.c: Don't use PARAMS.
56711
56712 2003-06-18  Karl Berry  <karl@gnu.org>
56713
56714         * config/config.{guess,sub}: update from prep.
56715
56716 2003-06-18  Jim Meyering  <jim@meyering.net>
56717
56718         Merge changes from coreutils.
56719         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
56720         Remove explicit declarations of xmalloc and realloc.
56721         Include xalloc.h.
56722         (read_utmp): Remove anachronistic cast of xmalloc.
56723
56724 2003-06-17  Paul Eggert  <eggert@twinsun.com>
56725
56726         Assume C89, so PARAMS isn't needed.
56727         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
56728         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
56729         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
56730         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
56731         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
56732         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
56733         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
56734         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
56735         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
56736         lib/xstrtod.h, lib/xstrtol.h: Likewise.
56737         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
56738         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
56739         no longer needed. Anyway, config.h should always be included before any
56740         other file.
56741
56742 2003-06-11  Simon Josefsson  <jas@extundo.com>
56743
56744         * modules/sysexits: New file.
56745         * MODULES.html.sh (func_all_modules): Add sysexits.
56746
56747 2003-06-11  Simon Josefsson  <jas@extundo.com>
56748
56749         * lib/sysexit_.h: New file.
56750
56751 2003-06-11  Derek Price  <derek@ximbiot.com>
56752
56753         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
56754         necessary.
56755
56756 2003-06-11  Bruno Haible  <bruno@clisp.org>
56757
56758         * m4/sysexits.m4: New file.
56759
56760 2003-06-10  Simon Josefsson  <jas@extundo.com>
56761
56762         * lib/argp.h: New file, from glibc.
56763         * lib/argp-ba.c: New file, from glibc.
56764         * lib/argp-eexst.c: New file, from glibc.
56765         * lib/argp-fmtstream.c: New file, from glibc.
56766         * lib/argp-fmtstream.h: New file, from glibc.
56767         * lib/argp-fs-xinl.c: New file, from glibc.
56768         * lib/argp-help.c: New file, from glibc.
56769         * lib/argp-namefrob.h: New file, from glibc.
56770         * lib/argp-parse.c: New file, from glibc.
56771         * lib/argp-pv.c: New file, from glibc.
56772         * lib/argp-pvh.c: New file, from glibc.
56773         * lib/argp-xinl.c: New file, from glibc.
56774
56775 2003-06-10  Simon Josefsson  <jas@extundo.com>
56776
56777         * modules/strchrnul: New file.
56778
56779 2003-06-10  Simon Josefsson  <jas@extundo.com>
56780
56781         * modules/argp: New file.
56782
56783 2003-06-10  Simon Josefsson  <jas@extundo.com>
56784
56785         * m4/strchrnul.m4: New file.
56786
56787 2003-06-10  Simon Josefsson  <jas@extundo.com>
56788
56789         * lib/strchrnul.h: New file.
56790         * lib/strchrnul.c: New file.
56791
56792 2003-06-10  Bruno Haible  <bruno@clisp.org>
56793
56794         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
56795
56796 2003-06-07  Karl Berry  <karl@gnu.org>
56797
56798         * config/config.{guess,sub}: update from prep.
56799
56800 2003-06-07  Jim Meyering  <jim@meyering.net>
56801
56802         * modules/strtod: Use $(...) notation, not @...@ for
56803         AC_REPLACE'd variables.
56804         * modules/localcharset: Likewise.
56805
56806 2003-06-07  Jim Meyering  <jim@meyering.net>
56807
56808         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
56809         in place of my name in the copyright comment.
56810         Remove definition and uses of __P.
56811
56812         From coreutils.
56813         * lib/stat.c: Don't declare xmalloc explicitly.
56814         Instead, include "xalloc.h".
56815         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
56816         xrealloc, and xcalloc return values.
56817         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
56818         Improve comment.
56819         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
56820
56821 2003-06-07  Bruno Haible  <bruno@clisp.org>
56822
56823         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
56824         avoid AC_CONFIG_LINKS.
56825         * modules/fnmatch (Makefile.am): Use explicit creation rule for
56826         fnmatch.h, to avoid AC_CONFIG_LINKS.
56827         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
56828
56829 2003-06-07  Bruno Haible  <bruno@clisp.org>
56830
56831         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
56832         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
56833         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
56834         directory.
56835         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
56836         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
56837         directory.
56838
56839 2003-06-06  Jim Meyering  <jim@meyering.net>
56840
56841         Merge from coreutils.
56842         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
56843         Consolidate declarations and initializations of *_base* locals.
56844
56845         Merge from coreutils.
56846         This avoids a core dump on systems without GNU putenv,
56847         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
56848         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
56849         (unsetenv): New static function, from GNU libc.
56850         (rpl_putenv): Use it.
56851
56852         * lib/modechange.c: Remove trailing blanks.
56853
56854         Merge from coreutils.
56855         * lib/fsusage.c: Remove declaration of statfs.
56856         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
56857
56858         * lib/posixtm.c: Include <stdbool.h> unconditionally.
56859
56860 2003-06-06  Jim Meyering  <jim@meyering.net>
56861
56862         * lib/stdbool_.h: Renamed from stdbool.h.in.
56863
56864 2003-06-06  Jim Meyering  <jim@meyering.net>
56865             Bruno Haible  <bruno@clisp.org>
56866
56867         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
56868         Adjust Makefile.am snippet not to redirect directly to target.
56869         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
56870
56871 2003-06-05  Paul Eggert  <eggert@twinsun.com>
56872
56873         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
56874         mismatch, look in future quarters as well as past.  This fixes a
56875         bug when processing fall-backwards gaps immediately after a long
56876         period of daylight-saving time.
56877
56878         * lib/mktime.c: Assume freestanding C89 or better.
56879         (HAVE_LIMITS_H): Remove.  Assume it's 1.
56880         (__P): Remove; not used.
56881         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
56882         (mktime, not_equal_tm, print_tm, check_result,
56883         main): Use prototypes.  Use const * where appropriate.
56884         (main): Fix typo in testing code that uncovered by above changes.
56885         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
56886
56887 2003-06-04  Paul Eggert  <eggert@twinsun.com>
56888
56889         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
56890         locale.h, localeconv.  This merges changes from coreutils.
56891
56892         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
56893         It can be removed after the next Autoconf is released.
56894         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
56895         needed.
56896
56897 2003-06-04  Paul Eggert  <eggert@twinsun.com>
56898
56899         * lib/mktime.c: Fix Debian bug 177940
56900         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
56901         (localtime_offset): Now long int, not time_t, because we want it
56902         to be guaranteed to be signed.  All uses changed.
56903         (__mktime_internal): If overflow would occur when adding offset,
56904         don't add it.
56905
56906         Merge 'human' changes from coreutils.  Rewrite to support
56907         locale-specific notations like thousands separators.
56908         * lib/human.c: Simplify authorship notice.
56909         Include human.h immediately after config.h.
56910         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
56911         <limits.h>: Do not include, since human.h does.
56912         (SIZE_MAX, UINTMAX_MAX): New macros.
56913         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
56914         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
56915         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
56916         (power_letter): Renamed from suffixes.
56917         (generate_suffix_backwards): Remove.
56918         (adjust_value): Now takes int style (because of human.h changes)
56919         and long double value (for greater precision on some platforms).
56920         (group_number): New function.
56921         (human_readable): Use it.  Use integer options, not enum.
56922         Put the options before the sizes in the arg list.
56923         Support all the new options.
56924         The old human_readable function has been removed;
56925         use inttostr.h instead.
56926         (human_readable, default_block_size, humblock):
56927         Use uintmax_t, not int, for block sizes.
56928         (human_readable_inexact, block_size_types): Remove.
56929         (block_size_opts): New constant.
56930         (human_options): Renamed from human_block_size, with new signature
56931         that allows block sizes up to UINTMAX_MAX.  All callers changed.
56932         * lib/human.h: Add copyright and authorship notice.
56933         Include <limits.h> and <stdbool.h> unconditionally.
56934         (PARAMS): Remove.  All uses removed.
56935         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
56936         (enum human_inexact_style): Remove tag; now a nameless enum.
56937         (human_floor, human_ceiling, human_round_to_even): Now have
56938         values 2, 0, 1 rather than -1, 1, 0.
56939         (human_group_digits, human_suppress_point_zero, human_autoscale,
56940         human_base_1024, human_SI, human_B): New constants.
56941         (human_readable_inexact, human_block_size): Remove.
56942         (human_readable): Size args are now uintmax_t, not int.
56943         (human_options): New decl.
56944
56945         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
56946         unnecessary now that we assume C89 or better.  This change
56947         imported from coreutils.
56948
56949         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
56950         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
56951         in the 2003-05-30 sync from glibc.
56952
56953         .h files should stand alone, but we shouldn't include <sys/types.h>
56954         if we can get away with just <stddef.h>.
56955
56956         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
56957         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
56958         rather than <sys/types.h>, as we merely need size_t.
56959         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
56960         to get size_t.
56961         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
56962         Include <stdio.h>, to get FILE.
56963         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
56964         memcasecmp.h has included <stddef.h> and all we need is size_t.
56965         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
56966         our interface, instead of including <sys/types.h>
56967
56968 2003-06-04  Paul Eggert  <eggert@twinsun.com>
56969
56970         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
56971         now, as glibc mktime is buggy on non-glibc systems.
56972
56973 2003-06-03  Karl Berry  <karl@gnu.org>
56974
56975         * config/config.sub: update from prep.
56976
56977 2003-06-02  Paul Eggert  <eggert@twinsun.com>
56978
56979         [from coreutils]
56980         Fix some minor time-related bugs with POSIX time arguments.
56981         Some valid time stamps were being rejected (notably -1, and
56982         time stamps before 1900 on 64-bit hosts).  And some invalid
56983         time stamps were being accepted, e.g. September 31.
56984
56985         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
56986         that we can return (time_t) -1 successfully.
56987         * lib/posixtm.c: Likewise.
56988         [HAVE_STDBOOL_H]: Include <stdbool.h>.
56989         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
56990         (t): Remove static var.
56991         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
56992         of static var.  All uses changed.
56993         (year): Do not reject years before 1900; they can occur with
56994         64-bit time_t.
56995         (posix_time_parse): Do not check for out-of-range components;
56996         that is now the caller's responsibility, since our checks were
56997         only approximations.
56998         (posixtime): Use mktime to check for out-of-range components,
56999         since it knows them exactly.
57000         If mktime returns (time_t) -1, check whether an error actually occurred
57001         by invoking localtime on -1.
57002         (main) [TEST_POSIXTIME]: Check for input data errors, and report
57003         posixtime failures better.
57004         Improve the test data (in comments only).
57005
57006 2003-06-02  Karl Berry  <karl@gnu.org>
57007
57008         * config/mkinstalldirs (version): new variable.
57009         (--version): new option.
57010         (usage): improve message.
57011
57012 2003-05-30  Karl Berry  <karl@gnu.org>
57013
57014         * lib/mktime.c: update from libc.
57015
57016 2003-05-30  Bruno Haible  <bruno@clisp.org>
57017
57018         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
57019         * config/config.rpath: Upgrade to gettext-0.12.1.
57020
57021 2003-05-30  Bruno Haible  <bruno@clisp.org>
57022
57023         * m4/gettext.m4: Upgrade to gettext-0.12.1.
57024         * m4/nls.m4: New file, from gettext-0.12.1.
57025         * m4/po.m4: New file, from gettext-0.12.1.
57026         * m4/progtest.m4: Upgrade to gettext-0.12.1.
57027
57028 2003-05-30  Bruno Haible  <bruno@clisp.org>
57029
57030         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
57031         * lib/localcharset.h: Likewise.
57032         * lib/localcharset.c: Likewise.
57033
57034 2003-05-29  Karl Berry  <karl@gnu.org>
57035
57036         * config/config.rpath: update from gettext.
57037
57038 2003-05-28  Paul Eggert  <eggert@twinsun.com>
57039
57040         Assume the headers required for C89 freestanding compilers.
57041         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
57042         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
57043         * m4/human.m4 (gl_HUMAN): Likewise.
57044         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
57045         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
57046         * m4/userspec.m4 (gl_USERSPEC): Likewise.
57047         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
57048         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57049         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
57050
57051 2003-05-28  Paul Eggert  <eggert@twinsun.com>
57052
57053         Assume the headers required for C89 freestanding compilers.
57054         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
57055         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
57056         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
57057         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
57058         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
57059         define, since <limits.h> is guaranteed to do that.
57060         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
57061         * lib/exclude.c: Include <stdbool.h> unconditionally.
57062         * lib/tempname.c: Include <stddef.h> unconditionally.
57063         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
57064         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
57065         <stddef.h> does that.
57066         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
57067         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
57068         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
57069         needed.
57070         * lib/xstrtol.c: Likewise.
57071         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
57072         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
57073
57074         * lib/addext.c (addext): Use assignment rather than cast, to avoid
57075         warnings on some platforms.
57076
57077         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57078         arbitrarily.
57079
57080 2003-05-26  Jim Meyering  <jim@meyering.net>
57081
57082         Merge in a change from coreutils:
57083         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
57084         that is guaranteed to be `no'.  Use `no_such_member' to indicate
57085         that condition, rather than `-1' which is slightly misleading.
57086         Change the name of the cache variable to have the gl_ prefix.
57087         Prompted by a patch from Richard Dawe for DJGPP.
57088
57089 2003-05-24  Karl Berry  <karl@gnu.org>
57090
57091         * config/config.guess: update from prep.
57092
57093 2003-05-22  Karl Berry  <karl@gnu.org>
57094
57095         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
57096
57097 2003-05-20  Karl Berry  <karl@gnu.org>
57098
57099         * config/config.guess: update from prep.
57100
57101 2003-05-18  Karl Berry  <karl@gnu.org>
57102
57103         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
57104         might actually be set by the user.
57105
57106         * config/depcomp, install-sh, mdate-sh: update from automake.
57107
57108 2003-05-17  Bruno Haible  <bruno@clisp.org>
57109
57110         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
57111         invalid expansion for AC_EGREP_CPP.
57112         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
57113         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
57114         Suggested by Akim Demaille <akim@epita.fr> in
57115         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
57116
57117 2003-05-12  Jim Meyering  <jim@meyering.net>
57118
57119         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
57120         the space-padded-by-default conversion specifiers, %e, %k, %l.
57121
57122 2003-05-12  Bruno Haible  <bruno@clisp.org>
57123
57124         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
57125         the string is longer than 4 KB.
57126
57127 2003-05-11  Karl Berry  <karl@gnu.org>
57128
57129         * config/config.{guess,sub}: update from prep.
57130
57131 2003-05-09  Bruno Haible  <bruno@clisp.org>
57132
57133         * modules/error: Add m4/strerror_r.m4 to file list.
57134
57135 2003-05-03  Bruno Haible  <bruno@clisp.org>
57136
57137         Upgrade to Unicode-4.0.
57138         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
57139         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
57140         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
57141         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
57142         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
57143         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
57144         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
57145         Change width of U+E0100..U+E01EF from 1 to 0.
57146
57147 2003-04-25  Jim Meyering  <jim@meyering.net>
57148
57149         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
57150         of type size_t, not int.
57151
57152 2003-04-25  Bruno Haible  <bruno@clisp.org>
57153
57154         * lib/copy-file.c: Include <stddef.h>, for size_t.
57155
57156 2003-04-21  Paul Eggert  <eggert@twinsun.com>
57157
57158         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
57159         code which expansion is under static control.  Patch imported from
57160         Akim Demaille's patch to Bison; see
57161         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
57162
57163 2003-04-14  Bruno Haible  <bruno@clisp.org>
57164
57165         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
57166
57167 2003-04-11  Jim Meyering  <jim@meyering.net>
57168
57169         Merge changes from Coreutils.
57170
57171         2003-03-22  Jim Meyering  <jim@meyering.net>
57172
57173         * lib/strftime.c (widen): Cast alloca return value to proper type.
57174
57175         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
57176
57177         From GNU libc.
57178         * lib/strftime.c (my_strftime): Handle very large width
57179         specifications for numeric values correctly.  Improve checks for
57180         overflow.
57181
57182         2003-01-19  Jim Meyering  <jim@meyering.net>
57183
57184         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
57185         definitions.
57186         (nl_get_alt_digit) [! defined my_strftime]: Define.
57187         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
57188         _nl_get_alt_digit and _nl_get_walt_digit.
57189
57190         * lib/strftime.c (my_strftime): Merge in locale-related changes from
57191         libc. These changes have no effect outside of _LIBC.
57192
57193 2003-04-10  Bruno Haible  <bruno@clisp.org>
57194
57195         * modules/findprog: New file.
57196         * MODULES.html.sh (func_all_modules): Add it.
57197
57198 2003-04-10  Bruno Haible  <bruno@clisp.org>
57199
57200         * m4/findprog.m4: New file.
57201         * m4/eaccess.m4: New file.
57202
57203 2003-04-10  Bruno Haible  <bruno@clisp.org>
57204
57205         * lib/findprog.h: New file, from GNU gettext.
57206         * lib/findprog.c: New file, from GNU gettext.
57207
57208 2003-04-05  Jim Meyering  <jim@meyering.net>
57209
57210         Merge changes from Coreutils.
57211
57212         * lib/exclude.h (PARAMS): Remove definition and uses.
57213         * lib/exclude.c: Remove uses of `PARAMS'.
57214
57215         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
57216         Add test-cases for DOS filenames. Declare program_name.
57217         (main): Set up program_name.  Patch by Rich Dawe.
57218
57219         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57220         error from mntctl.
57221         Use mntctl's return value to drive the entry-processing loop, since
57222         we can't rely on the value of the vmt_length member in the last
57223         entry.  On some systems doing so could result in exhausting
57224         virtual memory.  Based in part on a patch from Mike Jetzer.
57225
57226 2003-04-04  Bruno Haible  <bruno@clisp.org>
57227
57228         * modules/linebreak: New file.
57229         * MODULES.html.sh (func_all_modules): Add it.
57230
57231 2003-04-04  Bruno Haible  <bruno@clisp.org>
57232
57233         * m4/linebreak.m4: New file.
57234
57235 2003-04-04  Bruno Haible  <bruno@clisp.org>
57236
57237         * lib/linebreak.h: New file, from GNU gettext.
57238         * lib/linebreak.c: New file, from GNU gettext with slight
57239         modifications.
57240         * lib/lbrkprop.h: New file, from GNU gettext.
57241
57242 2003-04-03  Bruno Haible  <bruno@clisp.org>
57243
57244         * modules/utf8-ucs4: New file.
57245         * modules/utf16-ucs4: New file.
57246         * modules/ucs4-utf8: New file.
57247         * modules/ucs4-utf16: New file.
57248         * MODULES.html.sh (func_all_modules): Add them.
57249
57250 2003-04-03  Bruno Haible  <bruno@clisp.org>
57251
57252         * m4/utf-ucs4.m4: New file.
57253         * m4/ucs4-utf.m4: New file.
57254
57255 2003-04-03  Bruno Haible  <bruno@clisp.org>
57256
57257         * lib/utf8-ucs4.h: New file, from GNU gettext.
57258         * lib/utf16-ucs4.h: New file, from GNU gettext.
57259         * lib/ucs4-utf8.h: New file, from GNU gettext.
57260         * lib/ucs4-utf16.h: New file, from GNU gettext.
57261
57262 2003-04-02  Bruno Haible  <bruno@clisp.org>
57263
57264         * modules/binary-io: New file.
57265         * MODULES.html.sh (func_all_modules): Add it.
57266
57267 2003-04-02  Bruno Haible  <bruno@clisp.org>
57268
57269         * lib/binary-io.h: New file, from GNU gettext.
57270
57271 2003-04-01  Bruno Haible  <bruno@clisp.org>
57272
57273         * modules/pathname: New file.
57274         * MODULES.html.sh (func_all_modules): Add it.
57275
57276 2003-04-01  Bruno Haible  <bruno@clisp.org>
57277
57278         * lib/pathname.h: New file, from GNU gettext.
57279         * lib/concatpath.c: New file, from GNU gettext.
57280
57281 2003-03-30  Bruno Haible  <bruno@clisp.org>
57282
57283         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
57284
57285 2003-03-30  Bruno Haible  <bruno@clisp.org>
57286
57287         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
57288         function chown() doesn't exist.
57289
57290 2003-03-28  Bruno Haible  <bruno@clisp.org>
57291
57292         * modules/copy-file: New file.
57293         * MODULES.html.sh (func_all_modules): Add it.
57294
57295 2003-03-28  Bruno Haible  <bruno@clisp.org>
57296
57297         * m4/copy-file.m4: New file.
57298
57299 2003-03-28  Bruno Haible  <bruno@clisp.org>
57300
57301         * lib/copy-file.h: New file, from GNU gettext.
57302         * lib/copy-file.c: New file, from GNU gettext.
57303
57304 2003-03-18  Jim Meyering  <jim@meyering.net>
57305
57306         * lib/quote.c (quote_n): Fix typo in comment.
57307
57308 2003-03-18  Bruno Haible  <bruno@clisp.org>
57309
57310         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
57311         checking.
57312         * m4/onceonly_2_57.m4: Likewise.
57313
57314 2003-03-17  Bruno Haible  <bruno@clisp.org>
57315
57316         * m4/onceonly.m4: Require autoconf 2.54 or newer.
57317         (m4_quote): Remove macro.
57318         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
57319
57320 2003-03-14  Jim Meyering  <jim@meyering.net>
57321
57322         Merge changes from Coreutils.
57323         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
57324         to be const, in order to avoid warnings.
57325         (obstack_room): Likewise.
57326         (obstack_empty_p): Likewise.
57327
57328 2003-03-14  Bruno Haible  <bruno@clisp.org>
57329
57330         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
57331         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
57332
57333 2003-03-13  Paul Eggert  <eggert@twinsun.com>
57334
57335         Merge changes from Bison.
57336         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
57337         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
57338         when compiling Bison 1.875's `bitset bset = obstack_alloc
57339         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
57340         * lib/hash.c: Include <stdbool.h> unconditionally.
57341
57342 2003-03-13  Paul Eggert  <eggert@twinsun.com>
57343
57344         * m4/onceonly.m4 (m4_quote): New macro.
57345         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
57346         Quote AC_FOREACH variable-expansions properly.
57347
57348 2003-03-13  Paul Eggert  <eggert@twinsun.com>
57349
57350         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
57351
57352 2003-03-09  Paul Eggert  <eggert@twinsun.com>
57353
57354         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
57355         Reported by Bruce Becker; see:
57356         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
57357
57358 2003-03-03  Paul Eggert  <eggert@twinsun.com>
57359             Bruno Haible  <bruno@clisp.org>
57360
57361         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
57362         Reported by John Hughes, see
57363         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
57364
57365 2003-02-20  Bruno Haible  <bruno@clisp.org>
57366
57367         * MODULES.html.sh (func_all_modules): Add poll.
57368
57369 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57370
57371         * modules/poll: New file.
57372
57373 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57374
57375         * lib/poll_.h: New file.
57376         * lib/poll.c: New file.
57377
57378 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57379
57380         * m4/poll.m4: New file.
57381
57382 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57383
57384         * modules/mathl: New file.
57385
57386 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57387
57388         * lib/mathl.h: New file.
57389         * lib/acosl.c: New file.
57390         * lib/asinl.c: New file.
57391         * lib/atanl.c: New file.
57392         * lib/ceill.c: New file.
57393         * lib/cosl.c: New file.
57394         * lib/expl.c: New file.
57395         * lib/floorl.c: New file.
57396         * lib/frexpl.c: New file.
57397         * lib/ldexpl.c: New file.
57398         * lib/logl.c: New file.
57399         * lib/sincosl.c: New file.
57400         * lib/sinl.c: New file.
57401         * lib/sqrtl.c: New file.
57402         * lib/tanl.c: New file.
57403         * lib/trigl.c: New file.
57404         * lib/trigl.h: New file.
57405
57406 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57407
57408         * m4/mathl.m4: New file.
57409
57410 2003-02-18  Bruno Haible  <bruno@clisp.org>
57411
57412         * MODULES.html.sh (func_all_modules): Add mathl.
57413
57414 2003-02-17  Bruno Haible  <bruno@clisp.org>
57415
57416         * modules/mkdtemp: New module.
57417         * MODULES.html.sh (func_all_modules): Add it.
57418
57419 2003-02-17  Bruno Haible  <bruno@clisp.org>
57420
57421         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
57422
57423 2003-02-17  Bruno Haible  <bruno@clisp.org>
57424
57425         * lib/mkdtemp.h: New file, from GNU gettext.
57426         * lib/mkdtemp.c: New file, from GNU gettext.
57427
57428 2003-02-02  Jim Meyering  <jim@meyering.net>
57429
57430         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
57431         e.g. glibc-2.2.93.
57432
57433 2003-01-31  Bruno Haible  <bruno@clisp.org>
57434
57435         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
57436         'rpl_rename'.
57437         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
57438         'rpl_strnlen'.
57439         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
57440         'rpl_strtod'.
57441         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
57442         'rpl_utime'.
57443
57444 2003-01-31  Bruno Haible  <bruno@clisp.org>
57445
57446         * lib/rename.c: #undef rename before defining rpl_rename.
57447         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
57448
57449 2003-01-30  Bruno Haible  <bruno@clisp.org>
57450
57451         * modules/vasnprintf, modules/vasprintf: New modules.
57452         * MODULES.html.sh (func_all_modules): Add them.
57453
57454 2003-01-30  Bruno Haible  <bruno@clisp.org>
57455
57456         * m4/signed.m4: New file, from GNU gettext.
57457         * m4/longdouble.m4: New file, from GNU gettext.
57458         * m4/wchar_t.m4: New file, from GNU gettext.
57459         * m4/wint_t.m4: New file, from GNU gettext.
57460         * m4/vasnprintf.m4: New file.
57461         * m4/vasprintf.m4: New file.
57462
57463 2003-01-30  Bruno Haible  <bruno@clisp.org>
57464
57465         * lib/printf-args.h: New file, from GNU gettext.
57466         * lib/printf-args.c: New file, from GNU gettext.
57467         * lib/printf-parse.h: New file, from GNU gettext.
57468         * lib/printf-parse.c: New file, from GNU gettext.
57469         * lib/vasnprintf.h: New file, from GNU gettext.
57470         * lib/vasnprintf.c: New file, from GNU gettext.
57471         * lib/asnprintf.c: New file, from GNU gettext.
57472         * lib/vasprintf.h: New file, from GNU gettext with modifications.
57473         * lib/vasprintf.c: New file, from GNU gettext.
57474         * lib/asprintf.c: New file, from GNU gettext.
57475
57476 2003-01-29  Bruno Haible  <bruno@clisp.org>
57477
57478         * modules/stpncpy: New module.
57479         * MODULES.html.sh (func_all_modules): Add it.
57480
57481 2003-01-29  Bruno Haible  <bruno@clisp.org>
57482
57483         * m4/stpncpy.m4: New file.
57484
57485 2003-01-29  Bruno Haible  <bruno@clisp.org>
57486
57487         * lib/stpncpy.h: New file, from GNU gettext with modifications.
57488         * lib/stpncpy.c: New file, from GNU gettext with modifications.
57489
57490 2003-01-28  Bruno Haible  <bruno@clisp.org>
57491
57492         * modules/c-ctype: New module.
57493         * MODULES.html.sh (func_all_modules): Add it.
57494
57495 2003-01-28  Bruno Haible  <bruno@clisp.org>
57496
57497         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
57498         Paul Eggert.
57499         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
57500         Paul Eggert.
57501
57502 2003-01-27  Bruno Haible  <bruno@clisp.org>
57503
57504         * modules/xsetenv: New module.
57505         * MODULES.html.sh (func_all_modules): Add it.
57506
57507 2003-01-27  Bruno Haible  <bruno@clisp.org>
57508
57509         * lib/xsetenv.h: New file, from GNU gettext.
57510         * lib/xsetenv.c: New file, from GNU gettext.
57511
57512 2003-01-23  Jim Meyering  <jim@meyering.net>
57513
57514         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
57515         from working on systems without dirfd (at least Irix and OSF1/Tru64).
57516
57517 2003-01-23  Bruno Haible  <bruno@clisp.org>
57518
57519         * modules/minmax: New module.
57520         * MODULES.html.sh (func_all_modules): Add it.
57521
57522 2003-01-23  Bruno Haible  <bruno@clisp.org>
57523
57524         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
57525         Eggert.
57526
57527 2003-01-22  Bruno Haible  <bruno@clisp.org>
57528
57529         * modules/exit: New module.
57530         * MODULES.html.sh (func_all_modules): Add it.
57531
57532 2003-01-22  Bruno Haible  <bruno@clisp.org>
57533
57534         * lib/exit.h: New file, from GNU gettext.
57535
57536 2003-01-19  Bruno Haible  <bruno@clisp.org>
57537
57538         * gnulib-tool: Recognize option --extract-maintainer.
57539         (func_get_maintainer): New function.
57540         * modules/*: Add Maintainer entry.
57541
57542 2003-01-16  Jim Meyering  <jim@meyering.net>
57543
57544         * m4/regex.m4: The `regex' struct is both input and output.
57545         Initialize it before each use.  Patch by Tim Waugh.
57546
57547 2003-01-16  Bruno Haible  <bruno@clisp.org>
57548
57549         * MODULES.html.sh: Add a table of contents. Add the module name as
57550         leftmost column. Add hyperlinks.
57551
57552 2003-01-15  Bruno Haible  <bruno@clisp.org>
57553
57554         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
57555
57556 2003-01-15  Bruno Haible  <bruno@clisp.org>
57557
57558         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
57559         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
57560         suffix.
57561
57562 2003-01-15  Bruno Haible  <bruno@clisp.org>
57563
57564         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
57565
57566 2003-01-15  Bruno Haible  <bruno@clisp.org>
57567
57568         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
57569         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
57570
57571 2003-01-14  Jim Meyering  <jim@meyering.net>
57572
57573         * lib/same.c (same_name): Tweak a comment.
57574
57575 2003-01-14  Bruno Haible  <bruno@clisp.org>
57576
57577         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
57578         when a string comparison is sufficient.
57579
57580 2003-01-14  Bruno Haible  <bruno@clisp.org>
57581
57582         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
57583         'unsigned int'.
57584
57585 2003-01-14  Bruno Haible  <bruno@clisp.org>
57586
57587         * lib/hash-pjw.c: Add comment about low quality of this function.
57588
57589 2003-01-13  Bruno Haible  <bruno@clisp.org>
57590
57591         * modules/stpcpy: Distribute lib/stpcpy.h.
57592         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
57593
57594 2003-01-13  Bruno Haible  <bruno@clisp.org>
57595
57596         * modules/*: Add a description.
57597         * modules/strpbrk: Fix Makefile.am snippet.
57598         * modules/strtoimax: Fix dependencies.
57599         * modules/strtoumax: Likewise.
57600
57601 2003-01-13  Bruno Haible  <bruno@clisp.org>
57602
57603         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
57604         * modules/alloca (Makefile.am): All object files depend on alloca.h.
57605         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
57606
57607 2003-01-13  Bruno Haible  <bruno@clisp.org>
57608
57609         * gnulib-tool (func_create_testdir): Store config/* files in the main
57610         directory.
57611         * config.rpath: Move to ...
57612         * config/config.rpath: ... here.
57613         * modules/gettext: Contains config/config.rpath, not config.rpath.
57614         * modules/iconv: Likewise.
57615
57616 2003-01-12  Paul Eggert  <eggert@twinsun.com>
57617
57618         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
57619         to avoid collisions with libcurses and libreadline.
57620
57621         * m4/getstr.m4: Remove.
57622         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
57623
57624 2003-01-12  Paul Eggert  <eggert@twinsun.com>
57625
57626         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
57627         to avoid collisions with libcurses and libreadline.
57628
57629         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
57630         * lib/getstr.h, getstr.c: Remove.
57631         * lib/getline.c: Include "getline.h", to check interface.
57632         Move body of old getstr.c here: this defines MIN_CHUNK and
57633         declares getdelim2, which is renamed from getstr.
57634         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
57635
57636         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
57637         All uses changed.
57638         * lib/linebuffer.h: Likewise.
57639         (readline): Remove backward-compatibility macro.
57640
57641 2003-01-12  Paul Eggert  <eggert@twinsun.com>
57642
57643         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
57644         to avoid collisions with libcurses and libreadline.
57645         * getstr: Remove.
57646         * MODULES.html.sh: Remove getstr.
57647         * modules/getline: Depend on unlocked-io, not getstr.
57648
57649 2003-01-12  Jim Meyering  <jim@meyering.net>
57650
57651         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
57652
57653 2003-01-10  Bruno Haible  <bruno@clisp.org>
57654
57655         * modules/alloca: Change Makefile.am requirements. Simplify Include
57656         requirements. Add lib/alloca_.h to file list.
57657
57658 2003-01-10  Bruno Haible  <bruno@clisp.org>
57659
57660         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
57661
57662 2003-01-10  Bruno Haible  <bruno@clisp.org>
57663
57664         * lib/alloca_.h: New file.
57665         * lib/getdate.y: Unconditionally include alloca.h.
57666         * lib/makepath.c: Likewise.
57667         * lib/setenv.c: Likewise.
57668         * lib/userspec.c: Likewise.
57669
57670 2003-01-09  Karl Berry  <karl@gnu.org>
57671
57672         * MODULES.html.sh: include `dirname $0` in PATH, to find
57673         gnulib-tool.
57674
57675 2003-01-09  Bruno Haible  <bruno@clisp.org>
57676
57677         * modules/stdbool: Change configure.ac, Makefile.am requirements.
57678         Simplify Include requirements. Add lib/stdbool.h.in to file list.
57679
57680 2003-01-09  Bruno Haible  <bruno@clisp.org>
57681
57682         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
57683
57684 2003-01-09  Bruno Haible  <bruno@clisp.org>
57685
57686         * lib/stdbool.h.in: New file.
57687
57688 2003-01-09  Bruno Haible  <bruno@clisp.org>
57689
57690         * gnulib-tool (func_all_modules): Ignore files ending in ~.
57691         * MODULES.html.sh: Likewise.
57692
57693 2003-01-08  Jim Meyering  <jim@meyering.net>
57694
57695         * lib/full-write.c: Undefine and define-away `const' after inclusion
57696         of errno.h, not before.  Suggestion from Bruno Haible.
57697
57698 2003-01-08  Bruno Haible  <bruno@clisp.org>
57699
57700         * modules/full-read: Depend on full-write.
57701
57702 2003-01-08  Bruno Haible  <bruno@clisp.org>
57703
57704         * lib/safe-read.c: Include specification header first, to ensure its
57705         selfcontainedness.
57706         * lib/full-write.c: Likewise.
57707
57708 2003-01-07  Jim Meyering  <jim@meyering.net>
57709
57710         * lib/full-write.c: Rework so that it may serve to define full_read,
57711         too.
57712         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
57713
57714 2003-01-07  Bruno Haible  <bruno@clisp.org>
57715
57716         * lib/strtoimax.c: Include <stdint.h> as an alternative to
57717         <inttypes.h>.
57718         * lib/xstrtol.h: Likewise.
57719         * lib/xstrtoimax.c: Likewise.
57720         * lib/xstrtoumax.c: Likewise.
57721         * lib/human.h: Likewise.
57722
57723         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
57724         on systems that have <inttypes.h> but not <stdint.h>.
57725
57726 2003-01-07  Bruno Haible  <bruno@clisp.org>
57727
57728         * MODULES.html.sh: Add copyright notice.
57729         (missed_files): Omit CVS directory entries.
57730         (func_module): Make it work with sed-3.02.
57731         * MODULES.txt: Remove file.
57732
57733 2003-01-06  Jim Meyering  <jim@meyering.net>
57734
57735         * lib/version-etc.c: Update year in translatable copyright string.
57736
57737 2003-01-03  Karl Berry  <karl@gnu.org>
57738
57739         * config/config.{guess,sub}: update from prep.
57740
57741 2003-01-02  Karl Berry  <karl@gnu.org>
57742
57743         * doc/COPYING.DOC: belatedly updated to 1.2.
57744
57745 2003-01-01  Karl Berry  <karl@gnu.org>
57746
57747         * gnulib-tool (func_verify_module): report module name $module in
57748         error message, not $1.
57749         * gnulib-tool (create-testdir): don't complain if destdir couldn't
57750         be created, only if it doesn't exist.
57751         * gnulib-tool (last_checkin_date): don't expand the $Date here.
57752
57753 2002-12-31  Paul Eggert  <eggert@twinsun.com>
57754
57755         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
57756
57757 2002-12-31  Paul Eggert  <eggert@twinsun.com>
57758
57759         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
57760         memcmp if strcoll doesn't work.
57761
57762 2002-12-31  Bruno Haible  <bruno@clisp.org>
57763
57764         * lib/utime.c (utime_null): No need to call ftruncate if the file was
57765         nonempty.
57766
57767 2002-12-31  Bruno Haible  <bruno@clisp.org>
57768
57769         * lib/memcoll.c (STRCOLL): New macro.
57770         (memcoll): Use it.
57771
57772 2002-12-31  Bruno Haible  <bruno@clisp.org>
57773
57774         * lib/localcharset.h: New file.
57775         * lib/localcharset.c: Include it.
57776         * lib/unicodeio.c: Likewise.
57777
57778 2002-12-31  Bruno Haible  <bruno@clisp.org>
57779
57780         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
57781         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
57782
57783 2002-12-31  Bruno Haible  <bruno@clisp.org>
57784
57785         * lib/getline.h: Include <stddef.h>, for size_t.
57786
57787         * lib/unicodeio.h: Include <stddef.h>, for size_t.
57788         * lib/unicodeio.c: Don't include <stddef.h>.
57789
57790 2002-12-31  Bruno Haible  <bruno@clisp.org>
57791
57792         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
57793         HAVE_TM_ZONE.
57794
57795 2002-12-24  Karl Berry  <karl@gnu.org>
57796
57797         * config/config.guess: update from prep.
57798
57799 2002-12-24  Bruno Haible  <bruno@clisp.org>
57800
57801         General infrasructure.
57802         * m4/README: Rewritten.
57803         * m4/onceonly.m4: New file.
57804         * m4/onceonly_2_57.m4: New file.
57805
57806         Module atexit.
57807         * m4/atexit.m4: New file.
57808
57809         Module strtod.
57810         * m4/strtod.m4: New file.
57811
57812         Module strtol.
57813         * m4/strtol.m4: New file.
57814
57815         Module strtoul.
57816         * m4/strtoul.m4: New file.
57817
57818         Module memchr.
57819         * m4/memchr.m4: New file.
57820
57821         Module memcmp.
57822         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
57823         (jm_FUNC_MEMCMP): Invoke it.
57824
57825         Module memcpy.
57826         * m4/memcpy.m4: New file.
57827
57828         Module memmove.
57829         * m4/memmove.m4: New file.
57830
57831         Module memset.
57832         * m4/memset.m4: New file.
57833
57834         Module strcspn.
57835         * m4/strcspn.m4: New file.
57836
57837         Module strpbrk.
57838         * m4/strpbrk.m4: New file.
57839
57840         Module strstr.
57841         * m4/strstr.m4: New file.
57842
57843         Module strerror.
57844         * m4/strerror.m4: New file.
57845
57846         Module mktime.
57847         * m4/mktime.m4: Renamed from jm-mktime.m4.
57848         (gl_PREREQ_MKTIME): New macro.
57849         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
57850
57851         Module malloc.
57852         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
57853         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
57854         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
57855
57856         Module realloc.
57857         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
57858         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
57859         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
57860
57861         Module strftime.
57862         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
57863         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
57864         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
57865         gl_TM_GMTOFF.
57866         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
57867
57868         Module xalloc.
57869         * m4/xalloc.m4: New file.
57870
57871         Module alloca.
57872         * m4/alloca.m4: New file.
57873
57874         Module putenv.
57875         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
57876         (jm_FUNC_PUTENV): Invoke it.
57877
57878         Module setenv.
57879         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
57880         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
57881         when invoked twice.
57882         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
57883         gt_FUNC_SETENV.
57884
57885         Module memrchr.
57886         * m4/memrchr.m4: New file.
57887
57888         Module stpcpy.
57889         * m4/stpcpy.m4: New file.
57890
57891         Module strcase.
57892         * m4/strcase.m4: New file.
57893
57894         Module strdup.
57895         * m4/strdup.m4: New file.
57896
57897         Module strnlen.
57898         * m4/strnlen.m4: New file.
57899
57900         Module strndup.
57901         * m4/strndup.m4: New file.
57902
57903         Module xstrtod.
57904         * m4/xstrtod.m4: New file.
57905
57906         Module xstrtol.
57907         * m4/xstrtol.m4: New file.
57908
57909         Module getdate.
57910         * m4/getdate.m4: New file.
57911
57912         Module unlocked-io.
57913         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
57914         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
57915         * m4/jm-glibc-io.m4n: Remove file.
57916
57917         Module long-options.
57918         * m4/long-options.m4: New file.
57919
57920         Module md5.
57921         * m4/md5.m4: New file.
57922
57923         Module sha.
57924         * m4/sha.m4: New file.
57925
57926         Module getstr.
57927         * m4/getstr.m4: New file.
57928
57929         Module getline.
57930         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
57931         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
57932         <sys/types.h>, for size_t. Use the function name gnu_getline, not
57933         simply getline. Infoke gl_PREREQ_GETLINE.
57934
57935         Module obstack.
57936         * m4/obstack.m4: New file.
57937
57938         Module hash.
57939         * m4/hash.m4: New file.
57940
57941         Module readtokens.
57942         * m4/readtokens.m4: New file.
57943
57944         Module strverscmp.
57945         * m4/strverscmp.m4: New file.
57946
57947         Module stdbool.
57948         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
57949         OSF/1.
57950
57951         Module strtoll.
57952         * m4/strtoll.m4: New file.
57953
57954         Module strtoull.
57955         * m4/strtoull.m4: New file.
57956
57957         Module strtoimax.
57958         * m4/strtoimax.m4: New file.
57959
57960         Module strtoumax.
57961         * m4/strtoumax.m4: New file.
57962
57963         Module xstrtoimax.
57964         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
57965         jm_AC_PREREQ_XSTRTOIMAX.
57966         Moved the strtol prerequisites to strtol.m4.
57967         Moved the strtoll prerequisites to strtoll.m4.
57968         Moved the strtoimax prerequisites to strtoimax.m4.
57969
57970         Module xstrtoumax.
57971         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
57972         jm_AC_PREREQ_XSTRTOUMAX.
57973         Moved the strtoul prerequisites to strtoul.m4.
57974         Moved the strtoull prerequisites to strtoull.m4.
57975         Moved the strtoumax prerequisites to strtoumax.m4.
57976
57977         Module chown.
57978         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
57979         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
57980
57981         Module dup2.
57982         * m4/dup2.m4: New file.
57983
57984         Module ftruncate.
57985         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
57986         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
57987
57988         Module getgroups.
57989         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
57990         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
57991
57992         Module gettimeofday.
57993         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
57994         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
57995         gl_PREREQ_GETTIMEOFDAY.
57996
57997         Module mkdir.
57998         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
57999         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
58000
58001         Module mkstemp.
58002         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
58003         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
58004         jm_AC_TYPE_UINTMAX_T.
58005         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
58006
58007         Module stat.
58008         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
58009         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
58010
58011         Module lstat.
58012         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
58013         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
58014
58015         Module timespec.
58016         * m4/timespec.m4 (gl_TIMESPEC): New macro.
58017         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
58018         * m4/st_mtim.m4: Indentation.
58019
58020         Module nanosleep.
58021         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
58022         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
58023         gl_PREREQ_NANOSLEEP.
58024
58025         Module regex.
58026         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
58027         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
58028         (gl_REGEX): New macro.
58029
58030         Module rename.
58031         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
58032         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
58033
58034         Module rmdir.
58035         * m4/rmdir.m4: New file.
58036
58037         Module utime.
58038         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
58039         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
58040         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
58041
58042         Module dirname.
58043         * m4/dirname.m4: New file.
58044
58045         Module getopt.
58046         * m4/getopt.m4: New file.
58047
58048         Module unistd-safer.
58049         * m4/unistd-safer.m4: New file.
58050
58051         Module fnmatch.
58052         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
58053         declaration.
58054         (gl_PREREQ_FNMATCH_EXTRA): New macro.
58055         (gl_FUNC_FNMATCH_POSIX): New macro.
58056         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
58057         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
58058         simply fnmatch.
58059
58060         Module exclude.
58061         * m4/exclude.m4: New file.
58062
58063         Module human.
58064         * m4/human.m4: New file.
58065
58066         Module acl.
58067         * m4/acl.m4: Nop.
58068
58069         Module backupfile.
58070         * m4/backupfile.m4: New file.
58071         * m4/d-ino.m4: Indentation.
58072
58073         Module fsusage.
58074         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
58075         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
58076         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
58077
58078         Module dirfd.
58079         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
58080         requirements.
58081
58082         Module euidaccess.
58083         * m4/euidaccess.m4: New file.
58084
58085         Module file-type.
58086         * m4/file-type.m4: New file.
58087
58088         Module fileblocks.
58089         * m4/fileblocks.m4: New file.
58090
58091         Module filemode.
58092         * m4/filemode.m4: New file.
58093
58094         Module isdir.
58095         * m4/isdir.m4: New file.
58096
58097         Module lchown.
58098         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
58099         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
58100
58101         Module makepath.
58102         * m4/makepath.m4: New file.
58103
58104         Module modechange.
58105         * m4/modechange.m4: New file.
58106
58107         Module mountlist.
58108         * m4/mountlist.m4: New file.
58109         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
58110         Indentation.
58111
58112         Module path-concat.
58113         * m4/path-concat.m4: New file.
58114
58115         Module pathmax.
58116         * m4/pathmax.m4: New file.
58117
58118         Module same.
58119         * m4/same.m4: New file.
58120
58121         Module save-cwd.
58122         * m4/save-cwd.m4: New file.
58123
58124         Module savedir.
58125         * m4/savedir.m4: New file.
58126
58127         Module xgetcwd.
58128         * m4/xgetcwd.m4: New file.
58129         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
58130
58131         Module xreadlink.
58132         * m4/xreadlink.m4: New file.
58133
58134         Module safe-read.
58135         * m4/safe-read.m4: New file.
58136
58137         Module safe-write.
58138         * m4/safe-write.m4: New file.
58139
58140         Module closeout.
58141         * m4/closeout.m4: New file.
58142
58143         Module stdio-safer.
58144         * m4/stdio-safer.m4: New file.
58145
58146         Module getpass.
58147         * m4/getpass.m4: New file.
58148
58149         Module getugroups.
58150         * m4/getugroups.m4: New file.
58151
58152         Module group-member.
58153         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
58154         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
58155
58156         Module idcache.
58157         * m4/idcache.m4: New file.
58158
58159         Module userspec.
58160         * m4/userspec.m4: New file.
58161
58162         Module gettime.
58163         * m4/clock_time.m4: New file.
58164         * m4/gettime.m4: New file.
58165
58166         Module settime.
58167         * m4/settime.m4: New file.
58168
58169         Module posixtm.
58170         * m4/posixtm.m4: New file.
58171
58172         Module gethostname.
58173         * m4/gethostname.m4: New file.
58174
58175         Module canon-host.
58176         * m4/canon-host.m4: New file.
58177
58178         Module gettext.
58179         * m4/codeset.m4: New file, from gettext-0.11.5.
58180         * m4/gettext.m4: New file, from gettext-0.11.5.
58181         * m4/glibc21.m4: New file, from gettext-0.11.5.
58182         * m4/iconv.m4: New file, from gettext-0.11.5.
58183         * m4/intdiv0.m4: New file, from gettext-0.11.5.
58184         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
58185         * m4/inttypes.m4: New file, from gettext-0.11.5.
58186         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
58187         * m4/isc-posix.m4: New file, from gettext-0.11.5.
58188         * m4/lcmessage.m4: New file, from gettext-0.11.5.
58189         * m4/lib-ld.m4: New file, from gettext-0.11.5.
58190         * m4/lib-link.m4: New file, from gettext-0.11.5.
58191         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
58192         * m4/progtest.m4: New file, from gettext-0.11.5.
58193         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
58194         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
58195         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
58196
58197         Module localcharset.
58198         * m4/localcharset.m4: New file.
58199
58200         Module hard-locale.
58201         * m4/hard-locale.m4: New file.
58202
58203         Module mbswidth.
58204         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
58205         onceonly macros.
58206         * m4/mbrtowc.m4: Add comment.
58207
58208         Module memcasecmp.
58209         * m4/memcasecmp.m4: New file.
58210
58211         Module memcoll.
58212         * m4/memcoll.m4: New file.
58213
58214         Module unicodeio.
58215         * m4/unicodeio.m4: New file.
58216
58217         Module rpmatch.
58218         * m4/rpmatch.m4: New file.
58219
58220         Module yesno.
58221         * m4/yesno.m4: New file.
58222
58223         Module exitfail.
58224         * m4/exitfail.m4: New file.
58225
58226         Module c-stack.
58227         * m4/c-stack.m4 (gl_C_STACK): New macro.
58228         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
58229
58230         Module error.
58231         * m4/error.m4 (gl_ERROR): New macro.
58232         (jm_PREREQ_ERROR): Use onceonly macros.
58233
58234         Module fatal.
58235         * m4/fatal.m4: New file.
58236
58237         Module getloadavg.
58238         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
58239         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
58240
58241         Module getpagesize.
58242         * m4/getpagesize.m4: New file.
58243
58244         Module getusershell.
58245         * m4/getusershell.m4: New file.
58246
58247         Module physmem.
58248         * m4/physmem.m4: New file.
58249
58250         Module posixver.
58251         * m4/posixver.m4: New file.
58252
58253         Module quotearg.
58254         * m4/quotearg.m4: New file.
58255
58256         Module quote.
58257         * m4/quote.m4: New file.
58258
58259         Module readutmp.
58260         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
58261
58262         Module sig2str.
58263         * m4/sig2str.m4: New file.
58264
58265         Other.
58266         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
58267         ulonglong.m4.
58268         * m4/intmax_t.m4: New file.
58269         * m4/d-type.m4: Indentation.
58270         * m4/jm-macros.m4: Update.
58271         * m4/prereq.m4 (jm_PREREQ): Update.
58272         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
58273         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
58274         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
58275         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
58276         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
58277         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
58278         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
58279         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
58280         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
58281         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
58282         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
58283         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
58284         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
58285         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
58286         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
58287         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
58288         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
58289         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
58290         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
58291
58292 2002-12-24  Bruno Haible  <bruno@clisp.org>
58293
58294         * MODULES.txt: Update according to m4/ changes.
58295
58296         Module gettext.
58297         * config.rpath: New file, from gettext-0.11.5.
58298
58299         * modules/*: New module descriptions.
58300         * gnulib-tool: New file.
58301         * MODULES.html.sh: New file.
58302
58303 2002-12-21  Karl Berry  <karl@gnu.org>
58304
58305         * doc/fdl.texi: update to version 1.2.
58306
58307 2002-12-19  Karl Berry  <karl@gnu.org>
58308
58309         * config/config.guess: update from prep.
58310
58311 2002-12-18  Bruno Haible  <bruno@clisp.org>
58312
58313         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
58314         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
58315
58316 2002-12-17  Bruno Haible  <bruno@clisp.org>
58317
58318         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
58319         stdlib.h, string.h.
58320
58321 2002-12-17  Bruno Haible  <bruno@clisp.org>
58322
58323         * lib/canon-host.c (strdup): Remove unused declaration.
58324
58325         * lib/fsusage.c: Include full_read.h.
58326         (get_fs_usage): Use full_read instead of safe_read.
58327
58328         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
58329
58330 2002-12-12  Karl Berry  <karl@gnu.org>
58331
58332         * config/config.guess: update from prep.
58333
58334 2002-12-11  Bruno Haible  <bruno@clisp.org>
58335
58336         * m4/setenv.m4: New file, from gettext-0.11.5.
58337
58338 2002-12-11  Bruno Haible  <bruno@clisp.org>
58339
58340         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
58341         not unsetenv().
58342         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
58343         modifications:
58344
58345         2002-12-11  Bruno Haible  <bruno@clisp.org>
58346
58347                 * setenv.c (alloca): Fall back to malloc.
58348                 (freea): New macro.
58349                 (setenv): Use freea() to free memory allocated with alloca().
58350
58351         2002-11-13  Bruno Haible  <bruno@clisp.org>
58352
58353                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
58354                 function declarations.
58355                 * unsetenv.c (unsetenv): Likewise.
58356
58357         2002-03-04  Bruno Haible  <bruno@clisp.org>
58358
58359                 Portability to AIX 4.3.3.
58360                 * unsetenv.c: New file, extracted from setenv.c.
58361                 * setenv.c: Move the unsetenv() function to unsetenv.c.
58362
58363         2001-12-20  Bruno Haible  <bruno@clisp.org>
58364
58365                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
58366                 use malloc instead. For SunOS 4.
58367
58368         2001-12-11  Bruno Haible  <bruno@clisp.org>
58369
58370                 * setenv.c: Declare alloca.
58371                 (compar_fn_t): New typedef.
58372                 (KNOWN_VALUE, STORE_VALUE): Use it.
58373
58374         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
58375         setenv.h.
58376
58377 2002-12-10  Paul Eggert  <eggert@twinsun.com>
58378
58379         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
58380         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
58381         Choose values that are less likely to collide with system fnmatch
58382         options.
58383         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
58384         defined (e.g., a pure POSIX system).
58385         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
58386         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
58387
58388 2002-12-06  Paul Eggert  <eggert@twinsun.com>
58389
58390         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
58391         a pain in practice to deal with generated m4 files.  This change
58392         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
58393
58394         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
58395         and jm-glibc-io.m4, as they are no longer a special case.
58396         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
58397         kludge and the auto-generation stuff.  Check only whether the
58398         functions are declared, not whether they exist, since older hosts
58399         that don't declare the functions can't use the optimization anyway.
58400
58401 2002-12-06  Jim Meyering  <jim@meyering.net>
58402
58403         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
58404
58405         Merge in changes from libc's misc/error.c, in preparation
58406         for the merge of gnulib's changes back into libc.
58407
58408         * lib/error.c (_): Define only if not already defined.
58409         Move definition to follow all #include directives.
58410         Include unlocked-io.h only if !_LIBC.
58411         [_LIBC]: Include <libio/libioP.h>.
58412         [USE_IN_LIBIO]: Include <libio/iolibio.h>
58413         (fflush): Tweak definition to use INTUSE.
58414         (putc): Define.
58415
58416 2002-12-05  Paul Eggert  <eggert@twinsun.com>
58417
58418         * lib/alloca.c [defined emacs]: Include "lisp.h".
58419         (xalloc_die) [defined emacs]: New macro.
58420         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
58421         [! defined emacs]: Include <xalloc.h>.
58422         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
58423         (pointer): Typedef to POINTER_TYPE *.
58424         (malloc): Remove decl; we now always use xmalloc.
58425         (alloca): Use old-style definition, since Emacs needs this.
58426         Check for arithmetic overflow when computing combined size.
58427
58428 2002-12-04  Paul Eggert  <eggert@twinsun.com>
58429
58430         Do not generate unlocked-io.h automatically, since it's easier to
58431         maintain it by hand.
58432
58433         * lib/unlocked-io.h: New file, from GNU diffutils,
58434         but with proper copyright notice and attribution.
58435         * lib/gen-uio: Remove.
58436         * lib/Makefile.am: Add copyright notice.
58437         (libfetish_a_SOURCES): Add unlocked-io.h.
58438         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
58439         (DISTCLEANFILES, io_functions): Remove macros.
58440         (EXTRA_DIST): Remove gen_uio.
58441         (unlocked-io.h): Remove rule.
58442
58443 2002-12-04  Jim Meyering  <jim@meyering.net>
58444
58445         Reflect the fact that stat.c and lstat.c are no longer generated.
58446         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
58447         (DISTCLEANFILES): Likewise.
58448         (EXTRA_DIST): Likewise.
58449         (all_local): Don't depend on stat.c or lstat.c.
58450         (stat.c, lstat.c): Remove rules.
58451         (EXTRA_DIST): Remove xstat.in.
58452
58453         * lib/xstat.in: Remove file.  Contents moved into stat.c.
58454         * lib/stat.c: New file.  Contents mostly from xstat.in.
58455         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
58456         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
58457
58458         * lib/safe-read.c: Rework so that it may serve to define safe_write,
58459         too.
58460         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
58461
58462 2002-12-03  Jim Meyering  <jim@meyering.net>
58463
58464         * lib/safe-read.c, safe-write.c: Change variable names and comments,
58465         but not semantics, to minimize the differences between these two files.
58466         (safe_read): Change comment to mention SAFE_READ_ERROR.
58467
58468         * lib/safe-read.c (IS_EINTR): Define.
58469         (safe_read): Use IS_EINTR in place of in-function cpp directives.
58470
58471 2002-12-02  Jim Meyering  <jim@meyering.net>
58472
58473         * lib/safe-read.c (EINTR): Define.
58474         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
58475         (INT_MAX): Provide fallback.
58476         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
58477
58478         * lib/safe-read.h (SAFE_READ_ERROR): Define.
58479
58480 2002-12-02  Bruno Haible  <bruno@clisp.org>
58481
58482         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
58483         Define, taken from safe-read.c.
58484         (INT_MAX): Provide fallback.
58485         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
58486         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
58487
58488         * lib/safe-read.c (EINTR): Remove definition.
58489         (safe_read): Don't use EINTR if it is absent.
58490
58491 2002-12-01  Jim Meyering  <jim@meyering.net>
58492
58493         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
58494         zero.
58495         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
58496
58497 2002-11-27  Paul Eggert  <eggert@twinsun.com>
58498
58499         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
58500         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
58501         with `if (! (value < limit)) abort ();', for readability.
58502
58503 2002-11-26  Karl Berry  <karl@gnu.org>
58504
58505         * lib/strdup.c: copy from libc again, with jim's ok.
58506         * lib/.cppi-disable: re-add strdup.c
58507
58508 2002-11-25  Karl Berry  <karl@gnu.org>
58509
58510         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
58511         instead of "strtol.c".
58512
58513 2002-11-25  Karl Berry  <karl@gnu.org>
58514
58515         * config/install-sh: update from automake for variable quoting, $0 in
58516         error msgs, etc.
58517
58518         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
58519         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
58520         entry.
58521
58522 2002-11-25  Jim Meyering  <jim@meyering.net>
58523
58524         * lib/mktime.c: Sync from libc, now that it has the latest fix.
58525
58526 2002-11-24  Karl Berry  <karl@gnu.org>
58527
58528         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
58529         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
58530
58531 2002-11-24  Jim Meyering  <jim@meyering.net>
58532
58533         Update from coreutils:
58534
58535         * lib/mktime.c: Merge in changes from libc.
58536
58537         Avoid a link-time failure on some Linux systems.
58538         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
58539         (otherwise).
58540         (__mon_yday): Declare with the STATIC attribute.
58541         (__mktime_internal): Likewise.
58542         Based on a report from Greg Schafer.
58543
58544 2002-11-23  Jim Meyering  <jim@meyering.net>
58545
58546         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
58547         Use `unsigned', not `int', as type of index.
58548
58549         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
58550
58551         * lib/fsusage.c: Remove unneeded parentheses around operands of
58552         `defined'.
58553
58554 2002-11-22  Paul Eggert  <eggert@twinsun.com>
58555
58556         * lib/quotearg.h: Allow multiple inclusion by surrounding with
58557         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
58558         so that we can be included first.
58559         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
58560         * lib/quotearg.c: Include quotearg.h immediately after config.h.
58561         No need to include stddef.h or sys/types.h any more.
58562         Surround local include files with "", not "<>".
58563         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
58564         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
58565         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
58566         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
58567         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
58568         (ISPRINT): Remove; no longer needed now that we assume C89.
58569
58570         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
58571         Preserve errno.
58572
58573         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
58574         quotearg_char): Use SIZE_MAX rather than
58575         (size_t) -1 when we are talking about "infinity".
58576
58577         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
58578
58579 2002-11-22  Paul Eggert  <eggert@twinsun.com>
58580
58581         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
58582         hint that one should use `if (! x) abort ();' rather than `assert
58583         (x);', and anyway it's one less thing to worry about configuring.
58584         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
58585         hash_rehash, hash_insert): Use abort rather than assert.
58586
58587 2002-11-22  Bruno Haible  <bruno@clisp.org>
58588
58589         * lib/safe-read.h: Assume C89. Add comments.
58590         (safe_read): Change return type to size_t.
58591         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
58592         byte counts > SSIZE_MAX correctly.
58593         * lib/safe-write.h: New file.
58594         * lib/safe-write.c: New file.
58595         * lib/full-read.h: New file.
58596         * lib/full-read.c: New file.
58597         * lib/full-write.h: Assume C89. Add comments.
58598         * lib/full-write.c: Include safe-write.h.
58599         (full_write): Rewritten to use safe_write.
58600         Suggested by Jim Meyering and Paul Eggert.
58601
58602 2002-11-21  Jim Meyering  <jim@meyering.net>
58603
58604         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
58605
58606         Merge in changes from the coreutils.
58607
58608         2002-09-25  Paul Eggert  <eggert@twinsun.com>
58609         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
58610         <stdint.h>.
58611         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
58612         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
58613         int.  Work more efficiently if X is the same width as uintmax_t.
58614         Do not compare X to -1, to avoid bogus compiler warning.
58615         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
58616         Don't assume that f_frsize and f_bsize are the same type.
58617
58618         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
58619         warning on FreeBSD.
58620
58621         * lib/makepath.c (make_path): Restore umask *before* creating the final
58622         component.
58623         (make_path): Minor reformatting.
58624
58625         * lib/xmalloc.c: Adjust to work with new autoconf macros,
58626         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
58627         HAVE_MALLOC/HAVE_REALLOC.
58628
58629         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
58630         dummy ones.  At least on GNU/Linux systems, `auto' means something
58631         else.
58632         From Michael Stone.
58633
58634 2002-11-21  Bruno Haible  <bruno@clisp.org>
58635
58636         Remove case insensitive option matching.
58637         * lib/argmatch.h (argcasematch): Remove declaration.
58638         (ARGCASEMATCH): Remove macro.
58639         (__xargmatch_internal): Remove case_sensitive argument.
58640         (XARGMATCH): Update.
58641         (XARGCASEMATCH): Remove macro.
58642         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
58643         case_sensitive argument.
58644         (argcasematch): Remove function.
58645         (__xargmatch_internal): Remove case_sensitive argument.
58646         (main): Use XARGMATCH instead of XARGCASEMATCH.
58647
58648         * lib/xmalloc.c: Change compile-time error message. Add comment about
58649         required autoconf version.
58650
58651 2002-11-20  Paul Eggert  <eggert@twinsun.com>
58652
58653         Merge argmatch cleanups from Bison.  Assume C89.
58654
58655         * lib/argmatch.c: Include config.h here, not in argmatch.h.
58656         Include stdlib.h, for EXIT_FAILURE.
58657         Always include <string.h>, since we assume C89.
58658         (EXIT_FAILURE): Remove pre-C89 bug workaround.
58659         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
58660         Include <stddef.h> instead, since it's all we need for size_t.
58661         (PARAMS): Remove.  All uses removed.
58662         (ARRAY_CARDINALITY): Do not bother to #undef.
58663         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
58664         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
58665         Remove unnecessary parentheses.
58666         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
58667         Insert necessary parentheses.
58668         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
58669         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
58670
58671 2002-11-19  Bruno Haible  <bruno@clisp.org>
58672
58673         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
58674         * lib/mbswidth.h: Include <stddef.h>, for size_t.
58675
58676         * lib/mbswidth.h (PARAMS): Remove macro.
58677         (mbswidth, mbsnwidth): Use ANSI C function declarations.
58678         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
58679
58680         * lib/gcd.h (PARAMS): Remove macro.
58681         (gcd): Use ANSI C function declarations.
58682         * lib/gcd.c (gcd): Likewise.
58683
58684 2002-11-15  Bruno Haible  <bruno@clisp.org>
58685
58686         * lib/strcspn.c: Include <stddef.h>.
58687         (strcspn): Use ANSI C function declaration. Change return type to
58688         size_t. Use NULL.
58689         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
58690         (strpbrk): Use NULL.
58691         * lib/strpbrk.h (PARAMS): Remove macro.
58692         (strpbrk): Use ANSI C function declaration.
58693         * lib/strstr.c: Don't include <sys/types.h>.
58694         * lib/strstr.h (PARAMS): Remove macro.
58695         (strstr): Use ANSI C function declarations.
58696
58697 2002-11-14  Karl Berry  <karl@gnu.org>
58698
58699         * config/mkinstalldirs: `do' on separate line, instead of
58700         `for var; do'.
58701
58702 2002-11-06  Bruno Haible  <bruno@clisp.org>
58703
58704         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
58705         * lib/gcd.c (gcd): Likewise.
58706
58707 2002-11-05  Bruno Haible  <bruno@clisp.org>
58708
58709         * lib/gcd.h: New file, from gettext-0.11.5.
58710         * lib/gcd.c: New file, from gettext-0.11.5.
58711
58712 2002-11-05  Bruno Haible  <bruno@clisp.org>
58713
58714         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58715         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58716         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58717         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58718
58719         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
58720         <libintl.h>.
58721         * lib/makepath.c: Include gettext.h instead of <locale.h> and
58722         <libintl.h>.
58723
58724         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
58725         * lib/human.c: Include gettext.h instead of <libintl.h>.
58726         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
58727         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
58728         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
58729         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
58730         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
58731         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
58732         (textdomain): Remove definition.
58733         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
58734
58735         * lib/long-options.c: Remove include of <libintl.h> and definition of
58736         _.
58737         * lib/same.c: Remove include of <libintl.h> and definition of _.
58738
58739 2002-11-04  Owen Taylor  <otaylor@redhat.com>
58740
58741         * lib/config.charset: A few additions for Solaris.
58742
58743 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
58744
58745         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
58746         * lib/localcharset.c (locale_charset): Declare as extern "C".
58747
58748 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
58749
58750         * lib/config.charset: msdos in uk_UA uses CP1125.
58751
58752 2002-11-04  Bruno Haible  <bruno@clisp.org>
58753
58754         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
58755         * lib/strcase.h: New file, from GNU gettext-0.11.5.
58756         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
58757         * lib/strstr.h: New file, from GNU gettext-0.11.5.
58758         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
58759
58760 2002-11-04  Bruno Haible  <bruno@clisp.org>
58761
58762         * lib/localcharset.c (locale_charset): Don't return an empty string.
58763
58764 2002-11-04  Bruno Haible  <bruno@clisp.org>
58765
58766         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
58767         aliases.
58768
58769 2002-11-04  Bruno Haible  <bruno@clisp.org>
58770
58771         * lib/config.charset: Update for newest glibc. Add canonical names
58772         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
58773
58774 2002-11-04  Bruno Haible  <bruno@clisp.org>
58775
58776         * lib/config.charset: Add support for NetBSD.
58777
58778 2002-11-04  Bruno Haible  <bruno@clisp.org>
58779
58780         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
58781
58782 2002-11-01  Bruno Haible  <bruno@clisp.org>
58783
58784         * configure.in: Add AC_CONFIG_AUX_DIR call.
58785         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
58786         test/Makefile.
58787         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
58788
58789 2002-09-28  Karl Berry  <karl@gnu.org>
58790
58791         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
58792         installed automake until the next release, since changes have been
58793         made.
58794
58795 2002-09-25  Karl Berry  <karl@gnu.org>
58796
58797         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
58798         * lib/getopt*: copy from libc/posix.
58799         * lib/gettext.h: copy from gettext.
58800         * lib/.cppi-disable: add strdup.c, gettext.h.
58801
58802 2002-09-25  Karl Berry  <karl@gnu.org>
58803
58804         * config/srclist.txt: enable gettext.h check.
58805         * config/config.{guess,sub}: update from prep.
58806         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
58807                 from automake 1.6.3.
58808         See srclist*.
58809
58810 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
58811
58812         * regex.c (PATFETCH): Remove the translating fetch.
58813         (PATFETCH_RAW): Rename to PATFETCH.
58814         (set_image_of_range): New fun.
58815         (SET_RANGE_TABLE_WORK_AREA): Use it.
58816         (regex_compile): Don't translate the pattern chars so eagerly.
58817         Only do it when inserting an `exactn' bytecode or when handling
58818         a char-range.
58819         (mutually_exclusive_p): Avoid empty statement.
58820
58821 2002-07-06  Jim Meyering  <meyering@lucent.com>
58822
58823         * m4/README: Don't mention Makefile.am.in.
58824         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
58825
58826 2002-07-01  Jim Meyering  <meyering@lucent.com>
58827
58828         * lib/c-stack.c: Include sys/time.h.
58829         From Volker Borchert.
58830
58831 2002-06-26  Paul Eggert  <eggert@twinsun.com>
58832
58833         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
58834
58835 2002-06-26  Paul Eggert  <eggert@twinsun.com>
58836
58837         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
58838         New macro.  Use it uniformly instead of
58839         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
58840         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
58841         reported by Vin Shelton.
58842
58843 2002-06-22  Paul Eggert  <eggert@twinsun.com>
58844
58845         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
58846         Do not assume SA_SIGINFO behavior.
58847         Bug reported by Jim Meyering on NetBSD 1.5.2.
58848
58849 2002-06-22  Jim Meyering  <meyering@lucent.com>
58850
58851         * m4/c-stack.m4: New file, from diffutils-2.8.2.
58852         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
58853
58854         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
58855         now that configure.ac uses AC_GNU_SOURCE.
58856         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
58857         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
58858
58859         Update to latest tools.  Suggestions from Paul Eggert.
58860         * m4/stdbool.m4: New file, from diffutils-2.8.2.
58861         * m4/gnu-source.m4: Update from diffutils-2.8.2.
58862         * m4/fnmatch.m4: Likewise.
58863         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
58864         to AC_HEADER_STDBOOL
58865
58866 2002-06-22  Jim Meyering  <meyering@lucent.com>
58867
58868         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
58869         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
58870
58871 2002-06-22  Jim Meyering  <meyering@lucent.com>
58872
58873         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
58874
58875         * lib/exitfail.c, exitfail.h: Likewise.
58876         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
58877
58878         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
58879         of fnmatch.h.
58880         (EXTRA_DIST): Add fnmatch_loop.c.
58881         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
58882
58883         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
58884         * lib/fnmatch.c: Update from diffutils-2.8.2.
58885         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
58886         * lib/fnmatch.h: Remove file.
58887
58888 2002-06-21  Jim Meyering  <meyering@lucent.com>
58889
58890         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
58891         * m4/mbrtowc.m4: Likewise.
58892
58893         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
58894         * m4/mbswidth.m4: Reflect name change:
58895         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
58896         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
58897
58898         * m4/lib-link.m4: Update from gettext-0.11.2.
58899         * m4/gettext.m4: Likewise.
58900
58901         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
58902         From Alfred M. Szmidt.
58903
58904 2002-06-18  Paul Eggert  <eggert@twinsun.com>
58905
58906         * lib/file-type.h: Report an error if neither S_ISREG nor
58907         S_IFREG is defined, instead of using a test specific to glibc
58908         2.2.  This should be safe, since POSIX requires S_ISREG and
58909         Unix Version 7 had S_IFREG.  We don't need to check for
58910         <sys/types.h> since we don't use any symbols that it defines.
58911
58912 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
58913
58914         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
58915         $@-t, so that each temporary file name is unique and valid in the first
58916         8 characters, for operation under DOS.
58917
58918 2002-06-15  Paul Eggert  <eggert@twinsun.com>
58919
58920         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
58921
58922 2002-06-15  Jim Meyering  <meyering@lucent.com>
58923
58924         Work even with DJGPP 2.03, which lacks support for symlinks.
58925         From Richard Dawe.
58926         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
58927         is defined.
58928         * lib/lchown.c (S_ISLNK): Likewise.
58929
58930 2002-06-15  Jim Meyering  <meyering@lucent.com>
58931
58932         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
58933         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
58934         have been included before this file.
58935
58936 2002-06-14  Jim Meyering  <meyering@lucent.com>
58937
58938         * lib/file-type.h: Use the version from diffutils-2.8.2.
58939         * lib/file-type.c: Likewise.
58940
58941 2002-06-07  Jim Meyering  <meyering@lucent.com>
58942
58943         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
58944         They're needed at least for NetBSD 1.5.2.
58945         ($statxfs_includes): Include those same headers.
58946         ($statxfs_includes): Include sys/vfs.h if available.
58947         ($statxfs_includes): Likewise for sys/statvfs.h.
58948         Check for the following members in both structs statfs and statvfs:
58949         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
58950
58951 2002-06-01  Jim Meyering  <meyering@lucent.com>
58952
58953         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
58954         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
58955
58956 2002-05-28  Jim Meyering  <meyering@lucent.com>
58957
58958         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
58959         Reported by Volker Borchert.
58960
58961 2002-05-27  Jim Meyering  <meyering@lucent.com>
58962
58963         Fix a problem seen only on nonconforming systems whereby ls.c's
58964         use of localtime, and then of gettimeofday would cause trouble:
58965         the localtime call used to initialize rpl_gettimeofday's save
58966         mechanism would clobber ls's current local time information so
58967         that in any long listing the first file would always be listed
58968         with date 1970-01-01.  Analysis by Volker Borchert.
58969
58970         * lib/gettimeofday.c (localtime): Undefine.
58971         (rpl_localtime): New function.
58972
58973 2002-05-27  Jim Meyering  <meyering@lucent.com>
58974
58975         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
58976         localtime.
58977
58978         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
58979         use the replacement function; it wouldn't resolve at link time.
58980         Reported by Volker Borchert.
58981
58982 2002-05-22  Jim Meyering  <meyering@lucent.com>
58983
58984         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
58985         file-type.h.
58986         * lib/file-type.h: New file.
58987         * lib/file-type.c (file_type): New file/function.  Extracted from
58988         diffutils.
58989
58990 2002-04-30  Jim Meyering  <meyering@lucent.com>
58991
58992         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
58993
58994 2002-04-29  Paul Eggert  <eggert@twinsun.com>
58995
58996         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
58997
58998 2002-04-29  Paul Eggert  <eggert@twinsun.com>
58999
59000         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
59001         Do not check for alloca.h (no longer used) or stdbool.h (was never
59002         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
59003
59004 2002-04-29  Paul Eggert  <eggert@twinsun.com>
59005
59006         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
59007
59008 2002-04-29  Jim Meyering  <meyering@lucent.com>
59009
59010         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
59011         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
59012         Use AC_FUNC_STRNLEN here instead.
59013
59014         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
59015         With autoconf-2.53a, it's part of AC_PROG_CC.
59016
59017 2002-04-28  Paul Eggert  <eggert@twinsun.com>
59018
59019         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
59020         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
59021
59022 2002-04-28  Paul Eggert  <eggert@twinsun.com>
59023
59024         * lib/sig2str.h, lib/sig2str.c: New files.
59025         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
59026
59027 2002-04-28  Paul Eggert  <eggert@twinsun.com>
59028
59029         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
59030         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
59031         of 127, since 64 is the largest conceivable number for ancient
59032         nonstandard hosts.
59033         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
59034
59035 2002-04-28  Jim Meyering  <meyering@lucent.com>
59036
59037         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
59038
59039 2002-04-24  Jim Meyering  <meyering@lucent.com>
59040
59041         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
59042         (jm_PREREQ): Use it.
59043
59044         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
59045         mach/mach.h fcntl.h.
59046         Check for this function: setlocale.
59047
59048 2002-04-24  Jim Meyering  <meyering@lucent.com>
59049
59050         * lib/gettext.h: New file, from Gettext.
59051         * lib/Makefile.am (INCLUDES): Remove -I../intl.
59052         (libfetish_a_SOURCES): Add gettext.h.
59053
59054 2002-04-16  Jim Meyering  <meyering@lucent.com>
59055
59056         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
59057         ut_pid, ut_id, ut_exit.
59058
59059 2002-04-16  Jim Meyering  <meyering@lucent.com>
59060
59061         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
59062         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
59063         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
59064
59065 2002-04-12  Jim Meyering  <meyering@lucent.com>
59066
59067         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
59068         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
59069         existence of the getmntinfo function.  Needed for Darwin 5.3.
59070
59071         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
59072         This is necessary at least on Darwin 5.3.
59073
59074         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
59075         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
59076         strnlen.o in the library, and that makes some versions of ranlib
59077         object.
59078
59079 2002-04-12  Jim Meyering  <meyering@lucent.com>
59080
59081         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
59082
59083 2002-04-09  Jim Meyering  <meyering@lucent.com>
59084
59085         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
59086         to be more precise.  Rather than saying we're checking whether the
59087         function `works', say what we're testing.
59088         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
59089         Reported by Bruno Haible.
59090
59091 2002-03-10  Jim Meyering  <meyering@lucent.com>
59092
59093         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
59094         Suggestion from Santiago Vila.
59095
59096 2002-03-08  Jim Meyering  <meyering@lucent.com>
59097
59098         * lib/rename.c: Mention that this wrapper is needed also on
59099         mips-dec-ultrix4.4 systems.
59100
59101 2002-03-02  Jim Meyering  <meyering@lucent.com>
59102
59103         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
59104         not HAVE_CLOCK_SETTIME.
59105
59106 2002-02-27  Paul Eggert  <eggert@twinsun.com>
59107
59108         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
59109         Check for clock_settime.
59110
59111 2002-02-27  Paul Eggert  <eggert@twinsun.com>
59112
59113         * lib/nanosleep.h: Rename to....
59114         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
59115
59116         * lib/gettime.c: New file.
59117         * lib/settime.c: New file.
59118         * lib/stime.c: Remove.
59119
59120         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
59121         timespec.h.  Remove nanosleep.h.
59122
59123 2002-02-25  Paul Eggert  <eggert@twinsun.com>
59124
59125         * m4/acl.m4: New file.
59126         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
59127         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
59128
59129 2002-02-25  Paul Eggert  <eggert@twinsun.com>
59130
59131         * lib/acl.c, lib/acl.h: New files.
59132         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
59133
59134 2002-02-24  Jim Meyering  <meyering@lucent.com>
59135
59136         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
59137         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
59138         cause trouble.  Reported by Nelson Beebe.
59139
59140 2002-02-23  Paul Eggert  <eggert@twinsun.com>
59141
59142         * lib/path-concat.c (xpath_concat): Reorder code to pacify
59143         compilers that don't know that xalloc_die never returns.
59144
59145 2002-02-20  Jim Meyering  <meyering@lucent.com>
59146
59147         * lib/getdate.c: Regenerate using bison-1.33.
59148
59149 2002-02-17  Jim Meyering  <meyering@lucent.com>
59150
59151         * config/config.guess (main): Don't use `head -1'; it's no longer
59152         portable. Use `sed 1q' instead.
59153
59154 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
59155
59156         * m4/codeset.m4: Upgrade to gettext-0.11.
59157         * m4/gettext.m4: Upgrade to gettext-0.11.
59158         * m4/glibc21.m4: Upgrade to gettext-0.11.
59159         * m4/iconv.m4: Upgrade to gettext-0.11.
59160         * m4/isc-posix.m4: Upgrade to gettext-0.11.
59161         * m4/lcmessage.m4: Upgrade to gettext-0.11.
59162         * m4/lib-ld.m4: New file, from gettext-0.11.
59163         * m4/lib-link.m4: New file, from gettext-0.11.
59164         * m4/lib-prefix.m4: New file, from gettext-0.11.
59165         * m4/progtest.m4: Upgrade to gettext-0.11.
59166
59167 2002-02-15  Paul Eggert  <eggert@twinsun.com>
59168
59169         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
59170         (jm_PREREQ): Use it.
59171
59172 2002-02-15  Paul Eggert  <eggert@twinsun.com>
59173
59174         * lib/posixver.c, lib/posixver.h: New files.
59175         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
59176
59177 2002-02-02  Paul Eggert  <eggert@twinsun.com>
59178             Bruno Haible  <bruno@clisp.org>
59179
59180         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
59181         (fwrite_success_callback): New declaration.
59182         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
59183         print_unicode_char. Call failure callback instead of error.
59184         (fwrite_success_callback): New function.
59185         (exit_failure_callback): New function.
59186         (fallback_failure_callback): New function.
59187         (print_unicode_char): Call unicode_to_mb.
59188
59189 2002-01-26  Jim Meyering  <meyering@lucent.com>
59190
59191         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
59192         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
59193
59194 2002-01-26  Jim Meyering  <meyering@lucent.com>
59195
59196         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
59197
59198 2002-01-22  Paul Eggert  <eggert@twinsun.com>
59199
59200         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
59201
59202 2002-01-22  Jim Meyering  <meyering@lucent.com>
59203
59204         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
59205         Otherwise, some versions of automake would omit the rule that makes
59206         Makefile from Makefile.in.
59207
59208 2002-01-21  Paul Eggert  <eggert@twinsun.com>
59209
59210         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
59211         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
59212         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
59213         (memcoll): Set errno to zero if there is no error.
59214
59215         * lib/quotearg.c (quotearg_buffer_restyled):
59216         Fix bug with quoting buffers containing NUL when backslashing escapes.
59217         This bug was exposed by the other changes in this patch.
59218         (quotearg_n_options): New arg ARGSIZE.
59219         All callers changed.
59220         (quoting_options_from_style): New function.
59221         (quotearg_n_style): Use it.
59222         (quotearg_n_style_mem): New function.
59223
59224         * lib/quotearg.h (quotearg_n_style_mem): New function.
59225
59226 2002-01-19  Jim Meyering  <meyering@lucent.com>
59227
59228         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
59229         Remove useless quotes: DF_PROG="df".
59230         * m4/strnlen.m4: New file.
59231
59232 2002-01-16  Paul Eggert  <eggert@twinsun.com>
59233
59234         * lib/backupfile.c (ISDIGIT): Comment fix.
59235         * lib/getdate.y (ISDIGIT): Likewise.
59236         * lib/posixtm.c (ISDIGIT, year): Likewise.
59237         * lib/strverscmp.c (ISDIGIT): Likewise.
59238         * lib/userspec.c (ISDIGIT): Likewise.
59239
59240 2002-01-16  Jim Meyering  <meyering@lucent.com>
59241
59242         * lib/getdate.y: Add three semicolons, each just before a closing
59243         brace. Bison (as of version 1.31) no longer papers over that mistake.
59244
59245 2002-01-05  Jim Meyering  <meyering@lucent.com>
59246
59247         * lib/version-etc.c (version_etc_copyright): Update copyright year.
59248
59249 2001-12-19  Paul Eggert  <eggert@twinsun.com>
59250
59251         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
59252         not silently exit merely because the output buffer happens to
59253         have nothing pending.
59254
59255 2001-12-18  Paul Eggert  <eggert@twinsun.com>
59256
59257         See the big note in ../ChangeLog.
59258         * lib/human.c (suffixes): Prefer K to k for 1024.
59259         (generate_suffix_backwards): New function.
59260         (human_readable_inexact): Use it.
59261         * lib/xstrtol.c (__xstrtol): If there is no number but there
59262         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
59263         Accept 'K' as well as 'k'.
59264
59265 2001-12-15  Jim Meyering  <meyering@lucent.com>
59266
59267         * lib/regex.h (__restrict_arr): Update from libc.
59268
59269         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
59270         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
59271         (STREQ): Define.
59272
59273 2001-12-14  Jim Meyering  <meyering@lucent.com>
59274
59275         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
59276         Suggestion from Bruno Haible.
59277
59278 2001-12-10  Jim Meyering  <meyering@lucent.com>
59279
59280         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
59281         xrealloc, Instead, include "xalloc.h".
59282         (initbuffer): Don't cast xmalloc return value to char*.
59283         (readline): Reword comment.
59284         Don't cast xrealloc return value to char*
59285         Return NULL, not 0.
59286
59287 2001-12-09  Jim Meyering  <meyering@lucent.com>
59288
59289         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
59290         about `signed and unsigned type in conditional expression'.
59291         * lib/posixtm.c (posix_time_parse): Likewise.
59292
59293         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
59294
59295         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
59296         to avoid a pedantic warning.
59297
59298         * lib/getstr.c: Don't include assert.h.
59299         (getstr): Remove warning-evoking assertions.
59300         Return -1 if offset parameter is out of bounds.
59301         Change the type of a local from int to size_t.
59302
59303         * lib/strftime.c (my_strftime_localtime_r): Include this function
59304         definition in the `#if ! HAVE_TM_GMTOFF' block.
59305
59306         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
59307         Include xalloc.h instead.
59308
59309 2001-12-02  Jim Meyering  <meyering@lucent.com>
59310
59311         * lib/tempname.c: Don't declare getenv, thus reverting the change of
59312         2001-11-18.  It's no longer necessary, now that stdlib.h is always
59313         included.
59314
59315         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
59316         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
59317
59318 2001-11-30  Akim Demaille  <akim@epita.fr>
59319
59320         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
59321         before being defined.
59322
59323 2001-11-27  Paul Eggert  <eggert@twinsun.com>
59324
59325         * lib/quotearg.h (quotearg_n, quotearg_n_style):
59326         First arg is int, not unsigned.
59327         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
59328         (SIZE_MAX, UINT_MAX): New macros.
59329         (quotearg_n_options): Abort if N is negative.
59330         Avoid overflow check on hosts where size_t is 64 bits and int
59331         is 32 bits, as overflow is impossible there.
59332         Fix off-by-one typo that caused unnecessary reallocation.
59333
59334 2001-11-27  Jim Meyering  <meyering@lucent.com>
59335
59336         * lib/tempname.c: Merge with version from libc.
59337         * lib/regex.c: Likewise.
59338
59339         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
59340         systems for which STDC_HEADERS is 0, it was not included, resulting in
59341         a warning about an integer-to-pointer conversion problem with getenv.
59342         Reported by Volker Borchert.
59343
59344 2001-11-26  Jim Meyering  <meyering@lucent.com>
59345
59346         * lib/gtod.h: Remove file.
59347         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
59348         * lib/gettimeofday.c: Don't include gtod.h.
59349         (GTOD_init): Remove function.
59350         (rpl_gettimeofday): Do its job here instead, rather than aborting.
59351         Suggestion from Volker Borchert.
59352
59353 2001-11-23  Jim Meyering  <meyering@lucent.com>
59354
59355         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
59356         it.
59357         * lib/hash.c (struct hash_table): Define it here instead.
59358
59359 2001-11-22  Jim Meyering  <meyering@lucent.com>
59360
59361         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
59362
59363 2001-11-20  Jim Meyering  <meyering@lucent.com>
59364
59365         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
59366         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
59367
59368 2001-11-19  Jim Meyering  <meyering@lucent.com>
59369
59370         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
59371         directory.  Use "conftestXXXXXX" as the template.
59372         Suggestion from Paul Eggert.
59373
59374         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
59375         immediately, so the test doesn't mistakenly hit the max-open-files
59376         limit.
59377
59378 2001-11-18  Paul Eggert  <eggert@twinsun.com>
59379
59380         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
59381         (TEMPORARIES): New macro.
59382         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
59383         removes an artificial limitation (e.g. HP-UX 10.20, where
59384         TMP_MAX is 17576).
59385
59386 2001-11-18  Jim Meyering  <meyering@lucent.com>
59387
59388         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
59389
59390 2001-11-18  Jim Meyering  <meyering@lucent.com>
59391
59392         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
59393         on SunOS 4.
59394
59395         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
59396         files will be created before anything else.
59397
59398 2001-11-17  Paul Eggert  <eggert@twinsun.com>
59399
59400         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
59401         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
59402
59403 2001-11-17  Jim Meyering  <meyering@lucent.com>
59404
59405         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
59406         Prompted by a report from Bob Proulx.
59407
59408         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
59409         Instead, require UTILS_FUNC_MKSTEMP.
59410
59411 2001-11-17  Jim Meyering  <meyering@lucent.com>
59412
59413         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
59414         Now, that's done as part of AC_FUNC_STRTOD.
59415
59416 2001-11-17  Jim Meyering  <meyering@lucent.com>
59417
59418         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
59419         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
59420         rather than group writable.  Patch by Juan F. Codagnone.
59421
59422         * lib/readtokens.c: Remove explicit declarations of xmalloc and
59423         xrealloc, Instead, include "xalloc.h".
59424
59425         * lib/mountlist.c: Include unlocked-io.h after all system headers.
59426         Remove explicit declarations of xmalloc, xrealloc,
59427         and xstrdup.  Instead, include "xalloc.h".
59428
59429         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
59430         unlocked-io.h.
59431         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
59432         Likewise.
59433         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
59434
59435         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
59436         Reported by Padraig Brady.
59437
59438         * lib/mkstemp.c: #undef mkstemp.
59439         Include config.h.
59440         (rpl_mkstemp): Rename from mkstemp.
59441         Protoize.
59442
59443 2001-11-16  Jim Meyering  <meyering@lucent.com>
59444
59445         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
59446         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
59447         determine the amount of total physical memory, use pstat_getstatic.
59448         HPUX-11 doesn't define _SC_PHYS_PAGES.
59449         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
59450         If sysconf couldn't be used to determine the amount of available
59451         physical memory, use both pstat_getstatic and pstat_getdynamic.
59452         Based on a patch from Bob Proulx.
59453
59454 2001-11-10  Jim Meyering  <meyering@lucent.com>
59455
59456         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
59457         (jm_PREREQ): Use it.
59458
59459 2001-11-09  Jim Meyering  <meyering@lucent.com>
59460
59461         * m4/jm-macros.m4: Require autoconf-2.52f.
59462         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
59463         Use these AC_-prefixed names, not the AM_-prefixed ones.
59464
59465         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
59466
59467 2001-11-05  Jim Meyering  <meyering@lucent.com>
59468
59469         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
59470
59471 2001-11-04  Jim Meyering  <meyering@lucent.com>
59472
59473         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
59474         $DEFS.
59475
59476 2001-11-03  Jim Meyering  <meyering@lucent.com>
59477
59478         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
59479         of AC_DEFUN.
59480
59481         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
59482         know the name of the variable in the macro definition.
59483
59484 2001-11-03  Jim Meyering  <meyering@lucent.com>
59485
59486         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
59487         in argmatch_to_argument call.
59488
59489         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
59490         argument.
59491
59492         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
59493         e.g., a fault due to an attempt to free a NULL pointer.
59494
59495 2001-11-01  Jim Meyering  <meyering@lucent.com>
59496
59497         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
59498         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
59499
59500 2001-11-01  Jim Meyering  <meyering@lucent.com>
59501
59502         * lib/dirfd.c, lib/dirfd.h: New files.
59503         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
59504
59505         * lib/hash.c (hash_print) [TESTING]: Clean up.
59506
59507 2001-10-22  Paul Eggert  <eggert@twinsun.com>
59508
59509         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
59510         to avoid a warning if -Wall.
59511
59512 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
59513
59514         * README: New file
59515         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
59516         (per RMS's instructions, this is now the canonical source)
59517         * lgpl/, gpl/: New directories.
59518
59519 2001-10-21  Paul Eggert  <eggert@twinsun.com>
59520
59521         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
59522
59523 2001-10-21  Jim Meyering  <meyering@lucent.com>
59524
59525         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
59526         this code would end up calling gettext even in packages built
59527         with --disable-nls.
59528         * lib/getopt.c (_): Likewise.
59529         * lib/regex.c (_): Likewise.
59530
59531 2001-10-20  Paul Eggert  <eggert@twinsun.com>
59532
59533         * m4/error.m4 (jm_PREREQ_ERROR):
59534         Do not invoke AC_CHECK_FUNCS with strerror_r, as
59535         AC_FUNC_STRERROR_R does that.
59536         Check for strerror declaration.
59537
59538         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
59539         are supposed to have them these days.
59540         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
59541         Merge changes from latest Autoconf CVS.
59542         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
59543         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
59544         POSIX decided to standardize on the int flavor of strerror_r.
59545
59546 2001-10-20  Paul Eggert  <eggert@twinsun.com>
59547
59548         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
59549         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
59550         Use strerror_r that is only a macro, even if it is not a function.
59551         (strerror): Check for HAVE_DECL_STRERROR before declaring.
59552         (private_strerror): Use prototypes, not old-style function definition.
59553         (print_errno_message): New function.
59554         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
59555         char*-flavored one.
59556         (error_tail, error, error_at_line): Use it.
59557
59558 2001-10-11  Jim Meyering  <meyering@lucent.com>
59559
59560         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
59561         and quote_n (1, ... to avoid clobbering a buffer.
59562
59563 2001-10-05  Jim Meyering  <meyering@lucent.com>
59564
59565         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
59566         hash-pjw.h.
59567         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
59568         * lib/hash-pjw.h: New file.
59569
59570 2001-09-30  Jim Meyering  <meyering@lucent.com>
59571
59572         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
59573         `struct fsstat' has the `f_fstypename' member.
59574         Use that to define FS_TYPE, which is now used to make
59575         the getfsstat link test tighter.
59576
59577 2001-09-30  Jim Meyering  <meyering@lucent.com>
59578
59579         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
59580         Include <sys/ucred.h>, for Apple Darwin.
59581         Include sys/mount.h and sys/fs_types.h only if available.
59582         (FS_TYPE): Define.
59583         (read_filesystem_list): Use FS_TYPE.
59584
59585 2001-09-29  Paul Eggert  <eggert@twinsun.com>
59586
59587         * lib/exclude.c (excluded_filename): 0 -> false, since it's
59588         a boolean context.
59589
59590 2001-09-29  Jim Meyering  <meyering@lucent.com>
59591
59592         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
59593         [one-argument getmntent function]): Include stdio.h before mntent.h.
59594         SunOS 4.1.x needs it for the declaration of `FILE'.
59595         Patch by Volker Borchert.
59596
59597         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
59598         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
59599         sys/fs_types.h, and make the link-test for getfsstat guard #include
59600         directives with appropriate #if HAVE_*_H tests so that we can
59601         detect getfsstat on Apple Darwin1.3.7 systems.
59602         Reported by Nelson Beebe.
59603         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
59604
59605 2001-09-28  Paul Eggert  <eggert@twinsun.com>
59606
59607         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
59608         #defines strtoimax.  Also treat the other strto* functions
59609         like strtoimax.
59610
59611         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
59612         Check for strtoul and strtoumax,
59613         as those declarations are made even in the signed case.
59614         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
59615         Likewise, for strtol and strtoimax.
59616
59617 2001-09-28  Paul Eggert  <eggert@twinsun.com>
59618
59619         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
59620         #defines strtoimax.  Also treat the other strto* functions
59621         like strtoimax.
59622
59623         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
59624         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
59625         (strtoimax, strtoumax): Do not declare if already defined as a macro.
59626
59627 2001-09-26  Jim Meyering  <meyering@lucent.com>
59628
59629         Most macros in unlocked-io.h had the wrong number of arguments.
59630         * lib/gen-uio: New script.
59631         (USE_UNLOCKED_IO): Define to 1 if not already defined.
59632         * lib/unlocked-io.hin: Remove file.
59633         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
59634         rather than trying to embed it here.
59635         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
59636         Reported by Padraig Brady.
59637
59638 2001-09-25  Volker Borchert  <bt@teknon.de>
59639
59640         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
59641         `result'.
59642
59643 2001-09-24  Jim Meyering  <meyering@lucent.com>
59644
59645         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
59646
59647 2001-09-23  Jim Meyering  <meyering@lucent.com>
59648
59649         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
59650         instead of the mere test for existence of mntent.h.  The latter
59651         would get a false-positive on AIX 3.4 systems.
59652         In the outer getmntent if-block, don't die if neither of the getmntent
59653         tests succeeds.  Instead, just fall through and continue with the
59654         remaining tests.
59655
59656 2001-09-23  Jim Meyering  <meyering@lucent.com>
59657
59658         * lib/mountlist.c: Remove useless parentheses in #if directives.
59659         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
59660         the deprecated MOUNTED symbol is no longer defined in mntent.h.
59661
59662 2001-09-22  Jim Meyering  <meyering@lucent.com>
59663
59664         * m4/gettext.m4: New file.  From gettext.
59665         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
59666         * m4/progtest.m4: Likewise
59667         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
59668         * m4/glibc21.m4: Likewise.
59669
59670         * m4/libintl.m4: Remove.  No longer used.
59671
59672 2001-09-22  Jim Meyering  <meyering@lucent.com>
59673
59674         * lib/localcharset.c: Update from latest gettext.
59675         * lib/config.charset: Likewise.
59676
59677 2001-09-20  Jim Meyering  <meyering@lucent.com>
59678
59679         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
59680         strtoimax.
59681         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
59682         strtoumax.
59683
59684 2001-09-20  Jim Meyering  <meyering@lucent.com>
59685
59686         * lib/xstrtol.c (strtoimax): Guard declaration with
59687         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
59688         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
59689         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
59690         (strtoumax): Likewise, for completeness (it wasn't necessary).
59691
59692 2001-09-17  Paul Eggert  <eggert@twinsun.com>
59693
59694         * lib/strtoimax.c (HAVE_LONG_LONG):
59695         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
59696         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
59697         to work around bug in IBM C compiler.
59698
59699 2001-09-17  Jim Meyering  <meyering@lucent.com>
59700
59701         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
59702         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
59703         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
59704         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
59705         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
59706         whenever the right hand side need not be expanded by the shell.
59707
59708 2001-09-16  Paul Eggert  <eggert@twinsun.com>
59709
59710         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
59711         library.  It's not correct, as some older glibcs are buggy.
59712         fnmatch wasn't fixed until glibc 2.2.
59713
59714         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
59715         special shell magic here.
59716
59717 2001-09-16  Jim Meyering  <meyering@lucent.com>
59718
59719         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
59720         * m4/jm-macros.m4: Require it.
59721
59722 2001-09-16  Jim Meyering  <meyering@lucent.com>
59723
59724         * lib/mkdir.c: New file.
59725
59726 2001-09-15  Jim Meyering  <meyering@lucent.com>
59727
59728         * m4/jm-macros.m4: Check for help2man.
59729
59730 2001-09-11  Jim Meyering  <meyering@lucent.com>
59731
59732         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
59733         The body, by Paul Eggert, was moved here from configure.in.
59734         * m4/jm-macros.m4: Require UTILS_HOST_OS.
59735
59736 2001-09-04  Paul Eggert  <eggert@twinsun.com>
59737
59738         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
59739         (jm_PREREQ): Use it.
59740
59741 2001-09-04  Paul Eggert  <eggert@twinsun.com>
59742
59743         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
59744         Use ssize_t, not int, to store result of readlink.
59745         Check for ssize_t overflow as well as size_t overflow,
59746         as POSIX says the result of readlink is implementation-defined
59747         when ssize_t overflows.
59748         Remove unnecessary cast to char*.
59749         Use free+malloc instead of realloc, as the storage doesn't need
59750         to be preserved and it's clearer and can be more efficient that way.
59751         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
59752         * lib/xreadlink.h (xreadlink): Update prototype.
59753
59754 2001-09-04  Paul Eggert  <eggert@twinsun.com>
59755
59756         * lib/xgetcwd.c: Revert some of the previous change; intead,
59757         fix the HAVE_GETCWD_NULL code to behave more like the
59758         !HAVE_GETCWD_NULL code used to.
59759
59760         Include "xalloc.h".
59761         (xgetcwd): Do not return NULL when memory is exhausted; instead,
59762         invoke xalloc_die.
59763
59764 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59765
59766         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
59767         sys/param.h, as pathmax.h includes them.
59768
59769 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59770
59771         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
59772         (jm_PREREQ_XGETCWD): New macro.
59773
59774         * m4/getcwd.m4: New file.
59775
59776 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59777
59778         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
59779         like the HAVE_GETCWD_NULL code.
59780         Include pathmax.h if not HAVE_GETCWD.
59781         Do not include xalloc.h.
59782         (INITIAL_BUFFER_SIZE): New symbol.
59783         Do not use xmalloc / xrealloc, since the caller is responsible for
59784         handling errors.  Preserve errno around `free' during failure.
59785         Do not overrun buffer when using getwd.
59786
59787 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59788
59789         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
59790         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
59791         getcwd (NULL, 0).
59792
59793 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59794
59795         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
59796         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
59797         spotted by Jim Meyering.
59798
59799 2001-09-03  Jim Meyering  <meyering@lucent.com>
59800
59801         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
59802         failure.
59803
59804 2001-09-02  Jim Meyering  <meyering@lucent.com>
59805
59806         * lib/error.c: Update from GNU libc.
59807
59808 2001-09-01  Jim Meyering  <meyering@lucent.com>
59809
59810         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
59811         Used by df.
59812
59813 2001-09-01  Jim Meyering  <meyering@lucent.com>
59814
59815         * lib/xreadlink.c: New file.
59816         * lib/xreadlink.h: New file.
59817         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
59818         xreadlink.h.
59819
59820         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
59821         doesn't conflict with sparc Solaris 7's definition in
59822         /usr/include/sys/int_types.h.
59823
59824         * lib/exclude.c: Use `""', not `<>' to #include non-system header
59825         files.
59826         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
59827         and strncasecmp as r-values.  Unixware didn't have declarations.
59828
59829 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59830
59831         * lib/xstrtol.h: Add copyright notice.
59832         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
59833         LONGINT_INVALID_SUFFIX_CHAR.
59834
59835 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59836
59837         * lib/xstrtol.c (strtoimax): New decl.
59838
59839 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59840
59841         * lib/xgetcwd.c: Don't include pathmax.h.
59842         Include stdlib.h and unistd.h if available.
59843         Include xalloc.h.
59844         (xmalloc, xstrdup, free): Remove decls.
59845         (xgetcwd): Don't assume sizes fit in unsigned.
59846         Check for overflow when computing sizes.
59847         Simplify reallocation code.
59848
59849 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59850
59851         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
59852         a directory's st_size can have an arbitrary value, so the old
59853         usage could waste an arbitrary amount of memory.  All uses
59854         changed.
59855         * lib/savedir.h: Update prototype.
59856
59857 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59858
59859         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
59860
59861         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
59862         old strtoimax.c.
59863
59864         Also, make the following further changes to make this file's
59865         configuration more similar to that of strtol.c:
59866         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
59867         (strtoumax, uintmax_t, strtoull, strtol): Remove.
59868         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
59869         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
59870         changed to signed values.
59871
59872         And make the following changes as well:
59873         Fix copyright notice, as 1999 was missing.
59874         (verify): New macro.
59875         (strtoimax): Check sizes at compile-time, not run-time.
59876         Prefer strtol to strtoll if both work.
59877         (main): Remove; it was not that useful and was a pain to maintain.
59878
59879         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
59880
59881 2001-08-31  Jim Meyering  <meyering@lucent.com>
59882
59883         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
59884         Use an initial, malloc'd, buffer of length 128 rather than
59885         a statically allocated one of length 1024.
59886
59887 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59888
59889         Simplify code, partly by assuming autoconf 2.52 semantics.
59890
59891         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
59892
59893         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
59894         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
59895         All uses removed.
59896         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
59897         Move AC_REQUIRE to next-to-top level, to avoid confusion.
59898         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
59899         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
59900         jm_AC_HEADER_INTTYPES_H.
59901         * m4/jm-macros.m4 (jm_MACROS): Likewise.
59902
59903         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
59904
59905         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
59906         Quote first arg of AC_DEFUN.
59907         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
59908         since they are needed to parse the include file even if we need
59909         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
59910         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
59911         but with opposite signedness.
59912
59913 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59914
59915         Merge 'exclude' changes from tar 1.13.22.
59916         This fixes one or two unlikely storage allocation overflow bugs,
59917         but doesn't change user-visible behavior otherwise.
59918
59919 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59920
59921         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
59922         (jm_PREREQ_EXCLUDE): New macro.
59923
59924 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59925
59926         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
59927         tm to be declared.
59928
59929 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59930
59931         * lib/hash.c: Remove '2001' from copyright notice.
59932
59933 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59934
59935         * lib/full-write.h: New file.
59936         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
59937         * lib/full-write.c: Correct credits, as cccp.c no longer
59938         exists and anyway it was so heavily changed from the old cccp
59939         code as to be unrecognizable.  Include full-write.h.
59940         (full_write) Return size_t, with short writes meaning failure.
59941         All callers changed.  This fixes a bug with large buffers
59942         on 64-bit hosts.
59943         * lib/utime.c: Include full-write.h.
59944
59945 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59946
59947         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
59948         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
59949         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
59950         Include if available.
59951         (<xalloc.h>): Include
59952         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
59953         (verify): New macro.  Use it to verify that EXCLUDE macros do not
59954         collide with FNM macros.
59955         (struct patopts): New struct.
59956         (struct exclude): Use it, as exclude patterns now come with options.
59957         (new_exclude): Support above changes.
59958         (new_exclude, add_exclude_file):
59959         Initial size must now be a power of two to simplify overflow checking.
59960         (free_exclude, fnmatch_no_wildcards): New function.
59961         (excluded_filename): No longer requires options arg, as the options
59962         are determined by add_exclude.  Now returns bool, not int.
59963         (excluded_filename, add_exclude):
59964         Add support for the fancy new exclusion options.
59965         (add_exclude, add_exclude_file): Now takes int options arg.
59966         Check for arithmetic overflow when computing sizes.
59967         (add_exclude_file): xrealloc might modify errno, so don't
59968         realloc until after errno might be used.
59969
59970         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
59971         New macros.
59972         (free_exclude): New decl.
59973         (add_exclude, add_exclude_file): Now takes int options arg.
59974         (excluded_filename): No longer requires options arg, as the options
59975         are determined by add_exclude.  Now returns bool, not int.
59976
59977 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59978
59979         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
59980
59981 2001-08-27  Jim Meyering  <meyering@lucent.com>
59982
59983         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
59984
59985         * lib/version-etc.c (N_): Remove definition.
59986         Revert most of last change.
59987         Instead, simply don't mark the `Copyright...' string for translation.
59988         Based on advice from Paul Eggert.
59989
59990         * lib/strtoxmax.c: Tweak comment.
59991
59992 2001-08-26  Jim Meyering  <meyering@lucent.com>
59993
59994         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
59995
59996         * m4/xstrtoimax.m4: New file.
59997         * m4/xstrtoumax.m4: Add comments explaining why we
59998         AC_REPLACE_FUNCS(strtol).
59999
60000 2001-08-26  Jim Meyering  <meyering@lucent.com>
60001
60002         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
60003         of copyright with `%s' so translators don't get an untranslated
60004         message in 2002.
60005         (COPYRIGHT_YEAR): Define.
60006         (version_etc): Use fprintf rather than fputs.
60007         Suggestion from Ulrich Drepper.
60008
60009         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
60010
60011         * lib/strtoll.c: New file, from GNU libc.
60012         * lib/xstrtoimax.c: New file.
60013
60014         * lib/xstrtol.h: Add xstrtoimax.
60015         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
60016         * lib/strtoimax.c: New file.  Likewise, but first define
60017         STRTOUXMAX_SIGNED.
60018
60019         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
60020         ...
60021         * lib/strtoxmax.c: ... then renamed to this.
60022
60023 2001-08-18  Paul Eggert  <eggert@twinsun.com>
60024
60025         * m4/inttypes.m4: Add AC_PREREQ(2.13).
60026         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
60027         (jm_AC_TYPE_INTMAX_T): New macro.
60028         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
60029
60030         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
60031
60032         * m4/longlong.m4: Renamed from ulonglong.m4.
60033         * m4/inttypes.m4: Renamed from inttypes_h.m4.
60034         * m4/uintmax_t.m4: Removed.
60035
60036 2001-08-13  Paul Eggert  <eggert@twinsun.com>
60037
60038         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
60039         Port to Solaris 8, where 'sed' requires a space after the 'r'
60040         command, and where sh dislikes "$/".  Clean up the spacing a bit.
60041         Redirect output to $tmp just once.
60042
60043 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
60044
60045         * lib/addext.c (<errno.h>): Include.
60046         (errno): Declare if not defined.
60047         (addext): Work correctly when pathconf returns -1 and leaves
60048         errno alone because there is no limit.  Also, work even if
60049         pathconf returns a value greater than SIZE_MAX.
60050
60051 2001-08-12  Jim Meyering  <meyering@lucent.com>
60052
60053         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
60054         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
60055         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
60056         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
60057         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
60058         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
60059         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
60060         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
60061         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
60062         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
60063         utime.m4, utimes.m4, xstrtoumax.m4:
60064         Quote the first argument in each use of AC_DEFUN.
60065
60066 2001-08-12  Jim Meyering  <meyering@lucent.com>
60067
60068         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
60069         Simply `return getcwd (NULL, 0);'.
60070         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
60071         Use 1300 as initial value for length, not PATH_MAX.
60072
60073         * lib/pathmax.h: Clean up cpp syntax.
60074
60075 2001-08-12  Jim Meyering  <meyering@lucent.com>
60076
60077         * lib/gettimeofday.c: New file.
60078         * lib/gtod.h: New file.
60079         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
60080
60081 2001-08-05  Jim Meyering  <meyering@lucent.com>
60082
60083         * m4/jm-macros.m4: Require autoconf-2.52.
60084
60085 2001-08-04  Jim Meyering  <meyering@lucent.com>
60086
60087         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
60088         stmt, to get in sync with glibc.
60089
60090 2001-08-03  Paul Eggert  <eggert@twinsun.com>
60091
60092         The following changes are from gettext 0.10.39 as maintained by
60093         Bruno Haible.
60094
60095         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
60096         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
60097         with inverted sense.  All uses changed.
60098
60099         * lib/mbswidth.c: Don't include <limits.h>.
60100         Include <stdlib.h> and <string.h> unconditionally.
60101         (iswcntrl, mbsinit, ISCNTRL): New macros.
60102         (mbsnwidth): Use K&R style function declarations.
60103         Don't bother checking for MB_LEN_MAX == 1, since the compiler
60104         can optimize it when MB_CUR_MAX == 1.
60105         The width of control characters is zero, not 1.
60106
60107 2001-08-03  Paul Eggert  <eggert@twinsun.com>
60108
60109         The following changes are from gettext 0.10.39 as maintained by
60110         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
60111
60112         * m4/codeset.m4: Upgrade to serial AM1.
60113         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
60114         all uses changed.  Quote first arg of AC_DEFUN.
60115         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
60116
60117         * m4/iconv.m4: Upgrade to serial AM2.
60118         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
60119         Add --with-libconv-prefix.
60120         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
60121         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
60122         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
60123         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
60124         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
60125
60126         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
60127         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
60128         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
60129         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
60130         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
60131         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
60132         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
60133         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
60134         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
60135
60136         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
60137         string.h any more.
60138
60139         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
60140         not the default value.
60141
60142         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
60143         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
60144         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
60145         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
60146         Also check for iswcntrl, used for wcwidth fallback.
60147         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
60148         to Autoconf 2.13.
60149
60150 2001-08-03  Jim Meyering  <meyering@lucent.com>
60151
60152         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
60153         as it was in the original.  Reported by Paul Eggert.
60154
60155 2001-07-16  Jim Meyering  <meyering@lucent.com>
60156
60157         * m4/gettimeofday.m4: New file.
60158         Prompted by a report from Bernhard Baehr.
60159
60160 2001-07-15  Jim Meyering  <meyering@lucent.com>
60161
60162         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
60163         stuff. Now it's in ../Makefile.cfg.
60164
60165 2001-07-15  Jim Meyering  <meyering@lucent.com>
60166
60167         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
60168         (BUILT_SOURCES): Add unlocked-io.h.
60169         (io_functions): Define.
60170         (unlocked-io.h): New rule.
60171         (DISTCLEANFILES): Add unlocked-io.h.
60172         (all-local): Depend on unlocked-io.h, to ensure it is created.
60173
60174         * lib/unlocked-io.hin: New file
60175
60176         * lib/regex.c: Update from glibc.
60177
60178 2001-07-05  Jim Meyering  <meyering@lucent.com>
60179
60180         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
60181         recommendation.
60182         (libfetish_a_SOURCES): Put all .h files here instead.
60183         Remove a thus-exposed (better checks in automake) duplicate and
60184         two unnecessary .h files.
60185
60186 2001-07-04  Jim Meyering  <meyering@lucent.com>
60187
60188         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
60189         that generates jm-glibc-io.m4 so that it doesn't trigger any make
60190         distcheck failure.
60191
60192 2001-07-02  Jim Meyering  <meyering@lucent.com>
60193
60194         The following changes were prompted by suggestions from Bruno Haible.
60195
60196         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
60197         is now generated.
60198         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
60199         definition of EXTRA_DIST.
60200         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
60201         ensure that the generated file is created/updated whenever the list
60202         of $(unlocked_functions) is changed.
60203         (jm-glibc-io.m4): New rule.
60204         (unlocked-io.h): New rule -- currently unused.
60205
60206 2001-06-24  Jim Meyering  <meyering@lucent.com>
60207
60208         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
60209         unmatched right bracket, rather than kludging it with an extra,
60210         falsely-matching quote in a comment.  Patch by Akim Demaille.
60211
60212 2001-06-11  Jim Meyering  <meyering@lucent.com>
60213
60214         * lib/regex.c: Update from GNU libc.
60215
60216 2001-05-27  Jim Meyering  <meyering@lucent.com>
60217
60218         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
60219         Check for ut_type in struct utmp.
60220
60221 2001-05-27  Jim Meyering  <meyering@lucent.com>
60222
60223         * lib/readutmp.h (UT_TYPE): Define.
60224
60225 2001-05-24  Jim Meyering  <meyering@lucent.com>
60226
60227         * lib/argmatch.c: Include "quote.h".
60228         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
60229         quote function.  Reported by Göran Uddeborg.
60230
60231 2001-05-22  Jim Meyering  <meyering@lucent.com>
60232
60233         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
60234         now that we use the package-supplied version unconditionally.
60235         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
60236
60237 2001-05-21  Jim Meyering  <meyering@lucent.com>
60238
60239         * m4/regex.m4: Change a couple backticks to single quotes to avoid
60240         shell syntax errors.
60241
60242 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
60243
60244         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
60245
60246 2001-05-20  Paul Eggert  <eggert@twinsun.com>
60247
60248         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
60249         Don't bother to check library strftime, since
60250         we'll be using our own my_strftime function anyway.
60251         Define my_strftime instead of strftime.
60252
60253 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
60254
60255         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
60256         which is not yet declared.
60257
60258 2001-05-15  Jim Meyering  <meyering@lucent.com>
60259
60260         * m4/regex.m4: Use proper quoting so brackets appear in the test
60261         program.
60262         Reported by, and with help from, Bruno Haible.
60263
60264 2001-05-13  Jim Meyering  <meyering@lucent.com>
60265
60266         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
60267         undefined.
60268
60269 2001-05-11  Paul Eggert  <eggert@twinsun.com>
60270
60271         dirname code cleanup.  base_name now behaves more compatibly
60272         with POSIX basename when given file names that have trailing
60273         slashes, and similarly for dir_name.  Add new primitives
60274         base_len and dir_len.  Put the directory-name-related decls
60275         into dirname.h.
60276
60277         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
60278         * lib/backupfile.c (base_name): Likewise.
60279         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
60280         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
60281         * lib/makepath.c (strip_trailing_slashes): Likewise.
60282         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
60283         ISSLASH): Likewise.
60284         * lib/rename.c (strip_trailing_slashes): Likewise.
60285         * lib/same.c (base_name): Likewise.
60286         * lib/stripslash.c (ISSLASH): Likewise.
60287
60288         * lib/addext.c: Include <dirname.h> after size_t is defined.
60289         * lib/backupfile.c: Likewise.
60290
60291         * lib/addext.c (addext): Use base_len to trim redundant
60292         trailing slashes instead of doing it ourselves.
60293         But do not trim the last slash if it is not redundant.
60294
60295         * lib/backupfile.c (find_backup_file_name,
60296         max_backup_version): Use base_len instead of rolling it ourselves.
60297         Handle the case of "" and (on DOS) "C:" correctly.
60298
60299         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
60300         needed. Include <string.h>, <dirname.h>.
60301         (base_name): Allow file names ending in slashes, other than names
60302         that are all slashes.  In this case, return the basename followed
60303         by the slashes.  This is more general, and can be used in places
60304         where the original base_name purposely had an assertion failure.
60305         (base_len): New function.
60306
60307         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
60308         Do not include <assert.h>; no longer needed.
60309         Include xalloc.h.
60310         (memrchr): Remove decl.
60311         (dir_name_r): Remove.
60312         (dir_len): Renamed from dirlen.  All callers changed.
60313         Rewrite in terms of base_name, for simplicity and consistency.
60314         (dir_name): Never return NULL.  All callers changed.
60315         Do not include <stdlib.h> in test program; no longer needed.
60316         return 0; is fine for test program.
60317
60318         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
60319         New macros.
60320         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
60321
60322         * lib/path-concat.c (path_concat): Use base_len to compute
60323         base length, not strlen; this means we cannot rely on memcpy
60324         to null-terminate.
60325
60326         * lib/same.c (STREQ): Remove.
60327         (same_name): Handle the case where the basename ends in trailing '/'.
60328
60329         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
60330         a slash was stripped.  Do not strip the last slash after a
60331         file system prefix.
60332
60333 2001-05-11  Paul Eggert  <eggert@twinsun.com>
60334
60335         * lib/Makefile.am (libfetish_a_SOURCES):
60336         Add strftime.c, since we now compile it on all hosts.
60337
60338         * lib/strftime.c (my_strftime):
60339         Define to nstrftime if emacs, but only if my_strftime is not defined.
60340         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
60341         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
60342         Add one more extra argument: a nanoseconds value.
60343         All uses changed.
60344         (ns): New macro.
60345         (my_strftime function): Add %N format.
60346         (emacs_strftimeu): Renamed from emacs_strftime,
60347         with extra ut argument.
60348
60349 2001-05-09  Paul Eggert  <eggert@twinsun.com>
60350
60351         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
60352
60353 2001-04-21  Jim Meyering  <meyering@lucent.com>
60354
60355         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
60356         doesn't interfere.
60357
60358 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
60359
60360         * m4/ftruncate.m4: Check for chsize.
60361         Link with ftruncate.o unconditionally if ftruncate is missing.
60362         This was required when cross-compiling to i586-mingw32msvc.
60363
60364 2001-04-08  Jim Meyering  <meyering@lucent.com>
60365
60366         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
60367         recomputed; that's necessary when the offset spans a DST transition.
60368         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
60369
60370 2001-04-02  Jim Meyering  <meyering@lucent.com>
60371
60372         * lib/regex.h, regex.c: Update from GNU libc.
60373
60374 2001-03-24  Jim Meyering  <meyering@lucent.com>
60375
60376         * m4/jm-macros.m4: Require autoconf-2.49d.
60377
60378 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
60379
60380         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
60381
60382 2001-03-19  Paul Eggert  <eggert@twinsun.com>
60383
60384         * lib/version-etc.c (version_etc_copyright): Update to 2001.
60385
60386 2001-03-17  Jim Meyering  <meyering@lucent.com>
60387
60388         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
60389         now that the version in autoconf is equivalent.
60390         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
60391
60392         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
60393         Suggestion from Akim Demaille.
60394
60395         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
60396         (jm_PREREQ_TEMPNAME): New function.
60397
60398 2001-03-16  Paul Eggert  <eggert@twinsun.com>
60399
60400         * lib/tempname.c (uint64_t): Define to uintmax_t if
60401         not defined, and if UINT64_MAX is not defined.
60402         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
60403         Reported by John David Anglin.
60404
60405 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
60406
60407         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
60408         resolve alias if codeset is empty.
60409         * lib/config.charset (BeOS): Use wildcard syntax.
60410
60411 2001-03-13  Jim Meyering  <meyering@lucent.com>
60412
60413         * lib/path-concat.c (path_concat)
60414         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
60415         concatenating e.g., `C:' and `foo'.
60416         From Bruno Haible.
60417
60418 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
60419
60420         * lib/localcharset.c (locale_charset): Don't use
60421         setlocale(LC_CTYPE,NULL). Don't return NULL.
60422         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
60423
60424 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
60425
60426         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
60427         support for DOS/DJGPP.
60428
60429 2001-03-01  Paul Eggert  <eggert@twinsun.com>
60430
60431         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
60432         lacks mkstemp.  Compile our own tempname.c if we compile our own
60433         mkstemp.c, as mkstemp relies on tempname.
60434
60435 2001-03-01  Jim Meyering  <meyering@lucent.com>
60436
60437         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
60438         AH_VERBATIM really does output its argument verbatim.
60439
60440 2001-02-28  Paul Eggert  <eggert@twinsun.com>
60441
60442         * lib/Makefile.am (libfetish_a_SOURCES):
60443         Add dup-safer.c, fopen-safer.c.
60444         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
60445
60446         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
60447         * lib/unistd-safer.h: New files.
60448
60449 2001-02-25  Paul Eggert  <eggert@twinsun.com>
60450
60451         The mkstemp replacement is taken from glibc 2.2.2, with some
60452         portability fixes for use outside glibc, as follows:
60453
60454         * lib/tempname.c (struct_stat64): New macro.
60455         (direxists, __gen_tempname): Use it.
60456         This avoids a portability problem with Solaris 8.
60457
60458         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
60459         (<stddef.h>, <stdint.h>, <string.h>):
60460         Include only if STDC_HEADERS || _LIBC.
60461         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
60462         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
60463         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
60464         (__set_errno): Define this macro if <errno.h> doesn't.
60465         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
60466         Define these macros if <stdio.h> doesn't.
60467         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
60468         Define these macros if <sys/stat.h>
60469         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
60470         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
60471         __xstat64): Define if not _LIBC.
60472         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
60473         (__gen_tempname): Invoke gettimeofday only if
60474         HAVE_GETTIMEOFDAY || _LIBC;
60475         otherwise, fall back on plain "time".
60476         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
60477
60478         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
60479
60480         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
60481
60482 2001-02-18  Paul Eggert  <eggert@twinsun.com>
60483
60484         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
60485
60486 2001-02-17  Paul Eggert  <eggert@twinsun.com>
60487
60488         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
60489         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
60490         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
60491         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
60492
60493 2001-02-17  Paul Eggert  <eggert@twinsun.com>
60494
60495         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
60496         Remove workaround macros for hosts that have mbrtowc but not
60497         mbstate_t, as we now insist on proper declarations for both
60498         before using mbrtowc.
60499
60500 2001-02-17  Jim Meyering  <meyering@lucent.com>
60501
60502         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
60503         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
60504         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
60505         UnixWare 7.1.1.
60506
60507         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
60508         rather than AC_CACHE_VAL.
60509
60510 2001-02-17  Jim Meyering  <meyering@lucent.com>
60511
60512         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
60513         around included file name.
60514
60515         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
60516
60517         * lib/strftime.c: Update from GNU libc (the only changes were to
60518         comments).
60519
60520 2001-02-17  Jim Meyering  <meyering@lucent.com>
60521
60522         * lib/regex.c: Update from libc.
60523
60524 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
60525
60526         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
60527         clash.
60528
60529 2001-02-16  Paul Eggert  <eggert@twinsun.com>
60530
60531         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
60532         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
60533         Reported by Mark Hounschell via Paul Eggert.
60534
60535 2001-02-07  Jim Meyering  <meyering@lucent.com>
60536
60537         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
60538
60539 2001-02-05  Jim Meyering  <meyering@lucent.com>
60540
60541         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
60542         it includes the patch required for `large file' support with at least
60543         HP-UX's 10.20 /bin/cc.
60544
60545 2001-02-03  Jim Meyering  <meyering@lucent.com>
60546
60547         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
60548         AS_IF, now that it works once again (mysteriously).
60549         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
60550
60551 2001-01-30  Jim Meyering  <meyering@lucent.com>
60552
60553         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
60554         * m4/chown.m4: Rename conftestchown to conftest.chown.
60555         * m4/rename.m4: s/conftestdir/conftest.d1/ and
60556         s/conftestdir2/conftest.d2/.
60557         * m4/utimes.m4: s/conftestdata/conftest.data/
60558         Inspired by Pavel Roskin's change in autoconf.
60559
60560 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
60561
60562         * lib/config.charset: Update for FreeBSD 4.2.
60563
60564 2001-01-27  Jim Meyering  <meyering@lucent.com>
60565
60566         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
60567         a use of AS_IF.
60568         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
60569
60570 2001-01-26  Jim Meyering  <meyering@lucent.com>
60571
60572         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
60573         quotearg.c includes it.
60574
60575 2001-01-26  Jim Meyering  <meyering@lucent.com>
60576
60577         * lib/quotearg.c: Include stddef.h.
60578         * lib/quote.c: Include stddef.h.
60579         Reported by Axel Kittenberger.
60580
60581         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
60582         line in double quotes so that it evokes a better diagnostic.
60583         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
60584         Reported by Axel Kittenberger.
60585
60586 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
60587
60588         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
60589         as if it was a `charset'.
60590
60591 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
60592
60593         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
60594         has const.
60595
60596 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
60597
60598         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
60599         to avoid a warning.  Add back 'const' to inptr.
60600
60601 2001-01-20  Jim Meyering  <meyering@lucent.com>
60602
60603         Be sure that headers are checked before used in code compiled
60604         for the type checks.
60605         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
60606         In place of that, invoke jm_CHECK_ALL_TYPES.
60607         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
60608         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
60609         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
60610         The check for ssize_t was mistakenly run before the test for unistd.h.
60611
60612         The configure-time check for stdbool.h was missing.
60613         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
60614         (jm_PREREQ_HASH): New function.
60615
60616 2001-01-17  Jim Meyering  <meyering@lucent.com>
60617
60618         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
60619         for autoconf-2.49c.
60620         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
60621
60622 2001-01-16  Jim Meyering  <meyering@lucent.com>
60623
60624         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
60625         From Bruno Haible.
60626
60627 2001-01-14  Jim Meyering  <meyering@lucent.com>
60628
60629         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
60630         foo and bar.  Create conftestdir/ in the script, not in the C code.
60631         Remove directories in the script, not in the C code.
60632         Remove conftestdir{,2} before trying to create the directory.
60633         Make the entire configure script fail if the mkdir fails.
60634
60635 2001-01-14  Jim Meyering  <meyering@lucent.com>
60636
60637         * lib/rename.c: New file.  From Volker Borchert.
60638         Include stdlib.h, string.h or strings.h, and xalloc.h.
60639         Use strip_trailing_slashes rather than open-coding it.
60640
60641 2001-01-03  Paul Eggert  <eggert@twinsun.com>
60642
60643         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
60644
60645 2001-01-03  Jim Meyering  <meyering@lucent.com>
60646
60647         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
60648         of local `inptr' to avoid warning with some system declarations of
60649         iconv.
60650
60651 2001-01-02  Volker Borchert  <bt@teknon.de>
60652
60653         * m4/rename.m4: New file.
60654         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
60655
60656 2001-01-01  Jim Meyering  <meyering@lucent.com>
60657
60658         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
60659         even on systems with utmpx.h.  It's necessary for the declaration of
60660         utmp's ut_user member.  Reported by Andreas Jaeger.
60661
60662         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
60663         available. They are required for the declarations of getgrgid and
60664         getpwuid resp.
60665         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
60666         Reported by Andreas Jaeger.
60667
60668 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
60669
60670         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
60671         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
60672         so `make install' also works in VPATH builds.
60673
60674 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
60675
60676         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
60677         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
60678         can be used in subdirectories.
60679
60680 2000-12-29  Paul Eggert  <eggert@twinsun.com>
60681
60682         * lib/modechange.c: Do not assume that mode_t uses the
60683         traditional octal encoding.  E.g. "chmod 1 FOO" should set
60684         the other-execute bit of FOO even if S_IXOTH != 1.
60685
60686         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
60687         WOTH, XOTH, ALLM): New macros.
60688         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
60689          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
60690         Use them.
60691         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
60692         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
60693         (mode_compile):
60694         No need to use uintmax_t; unsigned long is long enough.
60695         Don't bother to get suffix since we don't use it.
60696
60697 2000-12-26  Jim Meyering  <meyering@lucent.com>
60698
60699         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
60700         better with autoheader.
60701
60702 2000-12-24  Jim Meyering  <meyering@lucent.com>
60703
60704         * lib/hash.c (is_prime): Return explicit boolean values.
60705         (hash_get_first): Return NULL to appease Irix5.6's 89.
60706         Reported by Nelson Beebe.
60707
60708 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
60709
60710         * lib/localcharset.c (locale_charset): Add support for Win32.
60711
60712 2000-12-18  Paul Eggert  <eggert@twinsun.com>
60713
60714         * lib/physmem.h, lib/physmem.c: New files.
60715
60716         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
60717         (noinst_HEADERS): Add physmem.h.
60718
60719         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
60720         't' for compatibility with Solaris 8 sort.
60721
60722 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
60723
60724         * lib/config.charset: Add support for BeOS.
60725
60726 2000-12-17  Jim Meyering  <meyering@lucent.com>
60727
60728         * m4/dos.m4 (jm_AC_DOS): New file and macro.
60729         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
60730
60731 2000-12-16  Jim Meyering  <meyering@lucent.com>
60732
60733         This bug had a serious impact on chown: `chown N:M FILE' (for integer
60734         N and M) would have treated it like `chown N:N FILE'.
60735
60736         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
60737
60738 2000-12-16  Jim Meyering  <meyering@lucent.com>
60739
60740         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
60741         SHELLS_FILE to a file name that's useful on djgpp systems.
60742         Include stdlib.h.
60743         (ADDITIONAL_DEFAULT_SHELLS): Define.
60744         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
60745         Based mostly on a patch from Prashant TR.
60746
60747 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
60748
60749         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
60750         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
60751         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
60752
60753 2000-12-08  Andreas Schwab  <schwab@suse.de>
60754
60755         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
60756         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
60757
60758 2000-12-07  Jim Meyering  <meyering@lucent.com>
60759
60760         * lib/stripslash.c (ISSLASH): Define.
60761         (strip_trailing_slashes): Use ISSLASH rather than comparing against
60762         `/'.
60763         From Prashant TR.
60764
60765         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
60766         (dir_name_r): Declare this function as static.
60767         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
60768         manifest itself on a name containing a mix of slashes and
60769         backslashes.
60770         Make this function work with names starting with a DOS-style
60771         drive letter and colon prefix.
60772         (dir_name): Append `.' if necessary.
60773         Based mostly on patches from Prashant TR and Eli Zaretskii.
60774
60775         * lib/dirname.h (dir_name_r): Remove prototype.
60776
60777 2000-12-06  Paul Eggert  <eggert@twinsun.com>
60778
60779         * m4/off_t-format.m4: Remove this file.
60780         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
60781
60782 2000-12-06  Jim Meyering  <meyering@lucent.com>
60783
60784         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
60785         replacement strtoull, we may well need the replacement strtoul, too.
60786         Check for declarations of strtoul and strtoull.
60787         Check for strtol.  Mainly as a cue to cause automake to include
60788         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
60789         Check for limits.h -- strtol.c needs it.
60790
60791 2000-12-05  Jim Meyering  <meyering@lucent.com>
60792
60793         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
60794
60795 2000-12-04  Jim Meyering  <meyering@lucent.com>
60796
60797         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
60798         Also include memory.h, stdlib.h, unistd.h if appropriate.
60799         Reported by Andreas Jaeger (conflicting declaration of malloc).
60800
60801 2000-12-02  Jim Meyering  <meyering@lucent.com>
60802
60803         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
60804         * m4/jm-macros.m4 (jm_MACROS): require it.
60805
60806 2000-12-02  Jim Meyering  <meyering@lucent.com>
60807
60808         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
60809
60810 2000-12-01  Paul Eggert  <eggert@twinsun.com>
60811
60812         * lib/memrchr.c: Include <config.h> before any system include file.
60813
60814 2000-11-30  Jim Meyering  <meyering@lucent.com>
60815
60816         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
60817
60818 2000-11-30  Jim Meyering  <meyering@lucent.com>
60819
60820         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
60821
60822 2000-11-29  Paul Eggert  <eggert@twinsun.com>
60823
60824         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
60825
60826 2000-11-26  Jim Meyering  <meyering@lucent.com>
60827
60828         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
60829
60830 2000-11-22  Paul Eggert  <eggert@twinsun.com>
60831
60832         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
60833         size of (size_t) -1; it's not portable.
60834
60835 2000-11-17  Jim Meyering  <meyering@lucent.com>
60836
60837         * lib/strstr.c: Update from GNU libc.
60838
60839 2000-11-17  Akim Demaille  <akim@epita.fr>
60840
60841         * lib/obstack.h: Formatting changes.
60842         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
60843         prevent type checking.
60844         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
60845         cast the value to (void *): assigning a `foo *' to a `void *'
60846         variable is valid.
60847         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
60848
60849 2000-11-16  Jim Meyering  <meyering@lucent.com>
60850
60851         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
60852
60853 2000-11-11  Jim Meyering  <meyering@lucent.com>
60854
60855         * lib/error.c: Add a couple #includes, merging from GNU libc version.
60856
60857 2000-11-10  Jim Meyering  <meyering@lucent.com>
60858
60859         * lib/obstack.h: Update from GNU libc.
60860         * lib/obstack.c: Likewise.
60861
60862 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
60863
60864         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
60865
60866 2000-11-06  Paul Eggert  <eggert@twinsun.com>
60867
60868         * lib/getusershell.c (setusershell): Use rewind rather than
60869         fseek/fseeko, to avoid configuration hassles with fseeko.
60870         Don't bother opening SHELLS_FILE if shellstream is NULL;
60871         it's not necessary.
60872
60873 2000-11-05  Jim Meyering  <meyering@lucent.com>
60874
60875         * lib/makepath.h (make_dir): Declare.
60876         * lib/makepath.c (make_dir): Remove `static' attribute.
60877         Tweak a comment.
60878
60879 2000-11-04  Jim Meyering  <meyering@lucent.com>
60880
60881         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
60882
60883 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
60884
60885         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
60886         last one in a bucket, advance to the next bucket.
60887
60888 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
60889
60890         * lib/fnmatch.c: Do not comment out all the code if we are using
60891         the GNU C library, because in some cases we are replacing buggy
60892         code in the GNU C library itself.
60893
60894 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
60895
60896         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
60897         (regex_compile): Catch bogus \(\1\).
60898
60899 2000-10-30  Paul Eggert  <eggert@twinsun.com>
60900
60901         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
60902         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
60903         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
60904
60905 2000-10-30  Paul Eggert  <eggert@twinsun.com>
60906
60907         * lib/error.h, getline.h, modechange.h:
60908         Remove "2000" from Copyright line, as the file hasn't been
60909         changed this year other than in the copyright notice.
60910
60911         * lib/xalloc.h: Add "2000" to Copyright line, as this file
60912         was changed this year.
60913
60914 2000-10-29  Jim Meyering  <meyering@lucent.com>
60915
60916         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
60917         renaming.
60918         * m4/ls-mntd-fs.m4: Likewise
60919
60920 2000-10-29  Jim Meyering  <meyering@lucent.com>
60921
60922         * lib/xstat.in: Fix grammar in comment.
60923
60924 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
60925
60926         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
60927         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
60928         doesn't define __restrict_arr.
60929
60930 2000-10-28  Jim Meyering  <meyering@lucent.com>
60931
60932         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
60933         (jm_PREREQ_MEMCHR): New function.
60934
60935 2000-10-28  Jim Meyering  <meyering@lucent.com>
60936
60937         * lib/memchr.c: Update from libc.
60938         Adjust for portability:
60939         [HAVE_STDLIB_H]: Include stdlib.h.
60940         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
60941         Undef __memchr, too.
60942         [!weak_alias]: Define __memchr to memchr.
60943
60944         * lib/regex.c: Update from libc.
60945         * lib/regex.h: Likewise.
60946         * lib/getopt1.c: Likewise.
60947         * lib/memcmp.c: Likewise.
60948
60949         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
60950         Avoid using fseek, when possible -- it's broken by design.
60951         Patch by Ulrich Drepper.
60952
60953 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
60954
60955         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
60956         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
60957         Giving in to popular pressure to shut up the compiler with casts.
60958
60959 2000-10-26  Jim Meyering  <meyering@lucent.com>
60960
60961         * lib/strftime.c: Update from libc.
60962
60963 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
60964
60965         * regex.c: More `unsigned char' -> `re_char' changes.
60966         Also change several `int' into `re_wchar_t'.
60967         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
60968         (PUSH_FAILURE_POINTER): Don't cast any more.
60969         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
60970         We want GCC to complain, since this piece of code makes
60971         re_match non-reentrant, which *should* be fixed.
60972         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
60973         (EXTEND_BUFFER): Use RETALLOC.
60974         (SET_LIST_BIT): Don't cast.
60975         (re_wchar_t): New type.
60976         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
60977         that those two functions will always properly return.
60978         (IMMEDIATE_QUIT_CHECK): Cast to void.
60979         (analyse_first): Use recursion rather than an explicit stack.
60980         (re_compile_fastmap): Can't fail anymore.
60981         (re_search_2): Don't check re_compile_fastmap for failure.
60982         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
60983         Now also sets the new value (passed in a new argument).
60984         (re_match_2_internal): Use it.
60985         Also, use a new var `reg' of type size_t when looping through regs
60986         rather than reuse the inappropriate `mcnt'.
60987
60988 2000-10-25  Jim Meyering  <meyering@lucent.com>
60989
60990         * lib/obstack.c: Update from libc.
60991
60992 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
60993
60994         * regex.c (regex_compile): Change the way of handling a range from
60995         a char less than 256 to a char not less than 256.
60996
60997 2000-10-24  Andrew Innes  <andrewi@gnu.org>
60998
60999         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
61000         NT-Emacs only.
61001         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
61002         so that re_search functions only quit when callers expect them to.
61003
61004 2000-10-23  Jim Meyering  <meyering@lucent.com>
61005
61006         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
61007         wrong.  That set_locale call must not have any side effects.
61008         From Paul Eggert.
61009
61010 2000-10-22  Jim Meyering  <meyering@lucent.com>
61011
61012         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
61013         [CYCLIC]: Remove now-unused definition.
61014
61015         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
61016         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
61017         Suggestion from Ulrich Drepper.
61018
61019 2000-10-21  Jim Meyering  <meyering@lucent.com>
61020
61021         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
61022         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
61023         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
61024
61025 2000-10-21  Jim Meyering  <meyering@lucent.com>
61026
61027         * lib/dirname.c (memrchr): Declare if necessary.
61028         (dir_name): Remove the restriction that there be no
61029         trailing slashes.  Now, this code skips past them, effectively
61030         ignoring them.
61031         [TEST_DIRNAME] (main): New unit tests.
61032
61033         * lib/memrchr.c: New file from GNU libc.
61034         Undef __memrchr, too.
61035         [!weak_alias]: Define __memrchr to memrchr.
61036         Guard weak_alias use with `#ifdef weak_alias'.
61037
61038 2000-10-21  Jim Meyering  <meyering@lucent.com>
61039
61040         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
61041         (dir_name): Use dir_name_r.
61042         * lib/dirname.h (dir_name_r): Declare it.
61043
61044 2000-10-17  Jim Meyering  <meyering@lucent.com>
61045
61046         * lib/quote.h (PARAMS): Define and use.
61047         Reported by Akim Demaille.
61048
61049         * lib/getopt.c: Update from libc.
61050
61051 2000-10-16  Jim Meyering  <meyering@lucent.com>
61052
61053         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
61054         setlocale.
61055         From Jan Fedak.
61056
61057 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
61058
61059         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
61060
61061 2000-09-25  Jim Meyering  <meyering@lucent.com>
61062
61063         * lib/md5.h (rol): Define (from GnuPG).
61064
61065         * lib/sha.c: Give credit (GnuPG) where due.
61066         (M): Use rol rather than open-coding it.
61067         Add a FIXME comment.
61068
61069 2000-09-21  Jim Meyering  <meyering@lucent.com>
61070
61071         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
61072         Reported by Michael Stone.
61073
61074 2000-09-20  Jim Meyering  <meyering@lucent.com>
61075
61076         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
61077         (noinst_HEADERS): Add sha.h.
61078         Based on code from Scott G. Miller and from GnuPG.
61079
61080 2000-09-18  Jim Meyering  <meyering@lucent.com>
61081
61082         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
61083         LIBS. Otherwise, everyone ends up linking with -lelf for some
61084         configurations.
61085         Reported by Mike Stone.
61086
61087 2000-09-15  Jim Meyering  <meyering@lucent.com>
61088
61089         * lib/regex.c: Update from libc.
61090
61091 2000-09-10  Jim Meyering  <meyering@lucent.com>
61092
61093         * lib/getopt.c (_getopt_internal): Update from glibc.
61094
61095 2000-09-09  Jim Meyering  <meyering@lucent.com>
61096
61097         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
61098         think it should be used as a general replacement for isascii.
61099         * lib/fnmatch.c: Likewise.
61100         * lib/mbswidth.c: Likewise
61101         * lib/regex.c: Likewise.
61102
61103         Don't use atoi.
61104         * lib/userspec.c: Include sys/param.h and limits.h.
61105         Include xstrtol.h.
61106         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
61107         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
61108         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
61109         UID, GID.  Check range.
61110
61111 2000-09-06  Jim Meyering  <meyering@lucent.com>
61112
61113         * lib/getopt.c (_getopt_internal): Update from glibc.
61114
61115 2000-08-30  Jim Meyering  <meyering@lucent.com>
61116
61117         * lib/strftime.c: Merge in changes from GNU libc.
61118
61119 2000-08-26  Jim Meyering  <meyering@lucent.com>
61120
61121         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
61122         * m4/fpending.m4: New file.
61123
61124 2000-08-26  Jim Meyering  <meyering@lucent.com>
61125
61126         * lib/closeout.c: Include "__fpending.h".
61127         (close_stdout_status): Return right away if there's nothing to flush.
61128
61129         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
61130         * lib/__fpending.c: New file.
61131         * lib/__fpending.h: New file.
61132
61133 2000-08-20  Jim Meyering  <meyering@lucent.com>
61134
61135         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
61136         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
61137         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
61138
61139 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
61140
61141         Improve fileutils installation on systems where running
61142         programs (like install) can't be unlinked.
61143         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
61144         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
61145
61146 2000-08-07  Paul Eggert  <eggert@twinsun.com>
61147
61148         Standardize on "memory exhausted" instead of "Memory exhausted"
61149         or "virtual memory exhausted".
61150         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
61151         "virtual memory exhausted".
61152         * lib/same.c (same_name): Invoke xalloc_die instead of printing
61153         our own message.
61154         * lib/userspec.c (parse_user_spec): Likewise.
61155         * lib/bumpalloc.h: comment fix
61156         * lib/same.c, userspec.c: Include xalloc.h.
61157
61158         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
61159         not char *const and pointing to a constant array.
61160         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
61161         (xrealloc): Comment fix.
61162
61163         * lib/userspec.c (parse_user_spec):
61164         Don't translate a message until just before returning,
61165         to avoid unnecessary translation.
61166
61167 2000-08-07  Jim Meyering  <meyering@lucent.com>
61168
61169         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
61170         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
61171         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
61172         getgroups.c, gethostname.c, getopt.h, group-member.c,
61173         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
61174         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
61175         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
61176         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
61177         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
61178         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
61179         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
61180         yesno.c: Back out Copyright date changes for each file with no change
61181         this year.  This eases coordination with other programs using the same
61182         source code modules.  From Paul Eggert.
61183
61184 2000-08-06  Paul Eggert  <eggert@twinsun.com>
61185
61186         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
61187         not char, for compatibility with glibc 2.1.3 strftime.c.
61188
61189 2000-08-03  Greg McGary  <greg@mcgary.org>
61190
61191         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
61192         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
61193         (EXTEND_BUFFER): Use them.
61194
61195 2000-08-01  Jim Meyering  <meyering@lucent.com>
61196
61197         * lib/dirname.c (ISSLASH): Define.
61198         (BACKSLASH_IS_PATH_SEPARATOR): Define.
61199         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
61200         both `\' and `/' may be use as path separators.
61201         Based on a patch from Prashant TR.
61202
61203 2000-07-31  Paul Eggert  <eggert@twinsun.com>
61204
61205         * lib/quotearg.c (quotearg_n_options): Don't make the initial
61206         slot vector a constant, since it might get modified.
61207
61208 2000-07-31  Jim Meyering  <meyering@lucent.com>
61209
61210         * lib/xmalloc.c: Use `virtual memory exhausted', not
61211         `Memory exhausted'.
61212         * lib/obstack.c (print_and_abort): Likewise.
61213
61214 2000-07-30  Paul Eggert  <eggert@twinsun.com>
61215
61216         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
61217         buffer, so that the caller can always quote one small
61218         component of a "memory exhausted" message in slot 0.
61219         From a suggestion by Jim Meyering.
61220
61221 2000-07-30  Jim Meyering  <meyering@lucent.com>
61222
61223         * lib/makepath.c (make_path): Quote the other instance, too.
61224
61225         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
61226         (STATIC_BUF_SIZE): Define.
61227         (quotearg_n_options): Use only statically allocated storage when
61228         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
61229         than STATIC_BUF_SIZE.
61230
61231 2000-07-29  Jim Meyering  <meyering@lucent.com>
61232
61233         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
61234         * lib/dirname.c (dir_name): Likewise.
61235
61236         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
61237         `/'.
61238
61239         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
61240         (dir_name): Assert that there are no trailing slashes.
61241
61242 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
61243
61244         * lib/mbswidth.h (mbswidth): Add a flags argument.
61245         (mbswidth): New declaration.
61246         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
61247         * lib/mbswidth.c (mbswidth): Add a flags argument.
61248         (mbsnwidth): New function.
61249
61250 2000-07-24  Jim Meyering  <meyering@lucent.com>
61251
61252         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
61253
61254 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61255
61256         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
61257
61258 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61259
61260         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
61261         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
61262         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
61263         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
61264         invoke multibyte primitives.
61265
61266 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61267
61268         * lib/quotearg.c:
61269         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
61270         so that mbstate_t is always defined.
61271
61272         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
61273         be 1 in at least one GCC installation, and this configuration
61274         error is likely to be common.  Ignoring MB_LEN_MAX hurts
61275         performance on hosts that have mbrtowc but have only unibyte
61276         locales, but I assume these hosts are rare.
61277
61278 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61279
61280         * lib/mbswidth.c (_XOPEN_SOURCE):
61281         Don't define; this causes problems on Solaris 7.
61282         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
61283
61284 2000-07-23  Jim Meyering  <meyering@lucent.com>
61285
61286         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
61287         too: getgrgid, getpwuid, getuid.
61288
61289 2000-07-23  Jim Meyering  <meyering@lucent.com>
61290
61291         * lib/basename.c (base_name): Add an assertion.
61292
61293 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
61294
61295         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
61296         shadow its mbsinit function.
61297
61298 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
61299
61300         * lib/mbswidth.h: New file.
61301         * lib/mbswidth.c: New file.
61302         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
61303         (noinst_HEADERS): Add mbswidth.h.
61304
61305 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
61306
61307         * lib/config.charset: Add support for FreeBSD. Improve support for
61308         HP-UX and IRIX 6.
61309
61310 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
61311
61312         * m4/mbswidth.m4: New file.
61313         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
61314
61315 2000-07-15  Jim Meyering  <meyering@lucent.com>
61316
61317         * lib/makepath.c: Include quote.h.
61318         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
61319         corresponding argument in a `quote (...)' call.
61320         Give better diagnostics.
61321
61322         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
61323         (noinst_HEADERS): Add quote.h.
61324
61325         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
61326         from tar's src/misc.c.
61327         * lib/quote.h: New file.  Prototypes for same.
61328
61329 2000-07-14  Paul Eggert  <eggert@twinsun.com>
61330
61331         From a suggestion by Bruno Haible.
61332         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
61333         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
61334         to decide whether to define the BeOS workaround macro;
61335         this adjusts to the change to AC_MBSTATE_T.
61336
61337 2000-07-14  Jim Meyering  <meyering@lucent.com>
61338
61339         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
61340         jm_AC_TYPE_UINTMAX_T.
61341
61342 2000-07-13  Paul Eggert  <eggert@twinsun.com>
61343
61344         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
61345
61346         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
61347         quotearg_buffer_restyled): Add support for
61348         clocale_quoting_style.  Undo previous change to
61349         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
61350         and "{RIGHT QUOTATION MARK}" msgids.
61351
61352 2000-07-10  Paul Eggert  <eggert@twinsun.com>
61353
61354         From a suggestion by Bruno Haible.
61355         * m4/mbstate_t.m4 (AC_MBSTATE_T):
61356         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
61357         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
61358         and mbstate_t, to a single-part test that simply defines mbstate_t.
61359         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
61360         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
61361
61362 2000-07-10  Jim Meyering  <meyering@lucent.com>
61363
61364         * m4/strerror_r.m4: Mirror the correction made in autoconf.
61365
61366         * m4/gnu-source.m4: Output to confdefs.h directly.
61367         Suggestion from Akim Demaille.
61368
61369 2000-07-09  Paul Eggert  <eggert@twinsun.com>
61370
61371         The old behavior of quoting `like this' doesn't look good with
61372         newer, ISO-style fonts.  See:
61373         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
61374
61375         Instead, quote "like this" by default.  Let the translator
61376         tailor the locale-specific quoting behavior by providing
61377         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
61378
61379         * lib/quotearg.c (N_): New macro.
61380         (gettext_default): New function.
61381         (quotearg_buffer_restyled): Use
61382         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
61383         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
61384
61385 2000-07-09  Jim Meyering  <meyering@lucent.com>
61386
61387         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
61388         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
61389
61390         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
61391         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
61392
61393 2000-07-09  Jim Meyering  <meyering@lucent.com>
61394
61395         * lib/Most files: Update copyright dates to include 2000.
61396
61397 2000-07-08  Jim Meyering  <meyering@lucent.com>
61398
61399         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
61400         if not defined.
61401         (xgethostname): Remove now-unnecessary #ifdef.
61402         Move declaration of `err' into loop where it's used.
61403
61404 2000-07-05  Paul Eggert  <eggert@twinsun.com>
61405         and Bruno Haible  <haible@clisp.cons.org>
61406
61407         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
61408         only if the test for an object-type mbstate_t fails.  This
61409         prevents us from mistakenly reporting that mbstate_t is a
61410         system object type after we "#define mbstate_t int" to work
61411         around its lack.
61412
61413 2000-07-05  Paul Eggert  <eggert@twinsun.com>
61414         and Bruno Haible  <haible@clisp.cons.org>
61415
61416         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
61417
61418 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
61419
61420         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
61421         to strerror_r.
61422         Include <ctype.h> for use of isalpha.
61423
61424 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
61425
61426         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
61427         by allocating a larger buffer. Test the gethostname return value for
61428         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
61429         returns an error and ENAMETOOLONG isn't defined.
61430
61431 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
61432
61433         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
61434         dimension.
61435
61436 2000-07-04  Jim Meyering  <meyering@lucent.com>
61437
61438         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
61439         of the deprecated AC_CHECKING.
61440
61441 2000-07-04  Jim Meyering  <meyering@lucent.com>
61442
61443         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
61444         Reported by Bruno Haible.
61445
61446 2000-07-04  Jim Meyering  <meyering@lucent.com>
61447
61448         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
61449         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
61450         lacks mbrtowc.
61451
61452 2000-07-03  Paul Eggert  <eggert@twinsun.com>
61453
61454         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
61455         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
61456
61457 2000-07-03  Paul Eggert  <eggert@twinsun.com>
61458         and Bruno Haible  <haible@clisp.cons.org>
61459
61460         * lib/quotearg.c (mbrtowc):
61461         Assign to *pwc, and return 1 only if result is nonzero.
61462         (iswprint): Use ISPRINT when substituting our own mbrtowc.
61463
61464 2000-07-03  Jim Meyering  <meyering@lucent.com>
61465
61466         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
61467
61468 2000-07-03  Jim Meyering  <meyering@lucent.com>
61469
61470         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
61471         This is necessary to get a definition of e.g., UTMP_FILE on
61472         HP-UX 10.20.
61473         From Bob Proulx.
61474
61475 2000-07-02  Jim Meyering  <meyering@lucent.com>
61476
61477         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
61478
61479         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
61480         AC_LIBOBJ(function_name).
61481         * m4/chown.m4: Likewise.
61482         * m4/fnmatch.m4: Likewise.
61483         * m4/ftruncate.m4: Likewise.
61484         * m4/getgroups.m4: Likewise.
61485         * m4/getline.m4: Likewise.
61486         * m4/group-member.m4: Likewise.
61487         * m4/jm-macros.m4: Likewise.
61488         * m4/lstat.m4: Likewise.
61489         * m4/malloc.m4: Likewise.
61490         * m4/memcmp.m4: Likewise.
61491         * m4/nanosleep.m4: Likewise.
61492         * m4/putenv.m4: Likewise.
61493         * m4/realloc.m4: Likewise.
61494         * m4/regex.m4: Likewise.
61495         * m4/stat.m4: Likewise.
61496         * m4/strftime.m4: Likewise.
61497
61498 2000-07-02  Jim Meyering  <meyering@lucent.com>
61499
61500         * lib/quotearg.c (mbstate_t): Don't define here.
61501
61502 2000-07-02  Jim Meyering  <meyering@lucent.com>
61503
61504         * lib/nanosleep.c (SIGCONT): Define if not already defined.
61505
61506 2000-07-01  Jim Meyering  <meyering@lucent.com>
61507
61508         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
61509
61510 2000-07-01  Jim Meyering  <meyering@lucent.com>
61511
61512         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
61513         problem.
61514
61515 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
61516
61517         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
61518         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
61519
61520 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
61521
61522         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
61523         per change in ../m4/ls-mntd-fs.m4.
61524         (read_filesystem_list): Ignore symbolic links.
61525
61526 2000-06-29  Jim Meyering  <meyering@lucent.com>
61527
61528         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
61529         for declaration of strcmp.
61530
61531         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
61532
61533         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
61534         Avoid warning by casting result to `char *' to remove `const'.
61535
61536 2000-06-28  Jim Meyering  <meyering@lucent.com>
61537
61538         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
61539         included by quotearg.c, for which we perform this test.  From
61540         Bruno Haible.
61541
61542 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
61543
61544         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
61545         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
61546         <utmpx.h> exists, put readutmp.o into LIBOBJS.
61547
61548 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
61549
61550         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
61551
61552 2000-06-26  Paul Eggert  <eggert@twinsun.com>
61553
61554         savedir now sets errno on failure and invokes xmalloc to get memory.
61555         Fix a couple of other minor bugs while we're at it.
61556
61557         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
61558         (NAMLEN): Remove macro.
61559         (malloc, realloc): Remove decls.
61560         (stpcpy): Likewise.
61561         ("xalloc.h"): Include.
61562         (NAME_SIZE_DEFAULT): New macro.
61563         (savedir): Use xmalloc / xrealloc to allocate memory.
61564         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
61565         Skip "" directory entries.
61566         Use strlen to calculate directory entry length, since the old method
61567         is rarely used these days and isn't worth supporting.
61568         Don't use a pointer after freeing it.
61569         Check for integer overflow when calculating allocation size.
61570         Use memcpy to copy entries, instead of stpcpy.
61571         Set errno properly when returning NULL.
61572         Check for readdir error.
61573
61574 2000-06-26  Jim Meyering  <meyering@lucent.com>
61575
61576         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
61577
61578 2000-06-25  Jim Meyering  <meyering@lucent.com>
61579
61580         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
61581         Linux header bug when _XOPEN_SOURCE is defined to 500.
61582
61583 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
61584
61585         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
61586         deficiency.
61587
61588 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
61589
61590         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
61591         Include xalloc.h.
61592         Don't include <stdlib.h>.  Don't declare malloc, realloc.
61593
61594 2000-06-24  Jim Meyering  <meyering@lucent.com>
61595
61596         * m4/strerror_r.m4: Revive this file -- to try out an experimental
61597         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
61598         for which strerror does return char*, but which lacks a conveniently
61599         accessible declaration of the function.  If the compile-test says
61600         strerror_r doesn't work, then resort to a `run'-test that works on
61601         BeOS and segfaults on DEC Unix.
61602
61603 2000-06-24  Jim Meyering  <meyering@lucent.com>
61604
61605         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
61606
61607 2000-06-23  Paul Eggert  <eggert@twinsun.com>
61608
61609         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
61610         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
61611
61612 2000-06-23  Paul Eggert  <eggert@twinsun.com>
61613
61614         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
61615         (mbrtowc, mbstate_t): Define substitutes if
61616         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
61617         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
61618         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
61619
61620 2000-06-23  Jim Meyering  <meyering@lucent.com>
61621
61622         * m4/afs.m4: Add missing AC_MSG_RESULT.
61623         Reported by Bruno Haible.
61624
61625         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
61626         Suggestion from Bruno Haible.
61627
61628 2000-06-23  Jim Meyering  <meyering@lucent.com>
61629
61630         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
61631
61632 2000-06-21  Jim Meyering  <meyering@lucent.com>
61633
61634         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
61635
61636 2000-06-21  Jim Meyering  <meyering@lucent.com>
61637
61638         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
61639         (noinst_HEADERS): Add getstr.h.
61640
61641         * lib/getline.c (getstr): Move into a separate file.
61642         * lib/getstr.c (getstr): New file, extracted from getline.c, with
61643         the following changes: new parameter, delim2; both delim[12]
61644         parameters have type `int', not `char'.  The latter would lose
61645         with 8-bit delimiters.
61646         * lib/getstr.h: New file.
61647
61648 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
61649
61650         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
61651         than 1024, return a memory chunk of least possible size, instead
61652         of size PATH_MAX + 2. In the loop, increment the size proportionally.
61653         Use free/xmalloc instead of xrealloc to avoid copying for very long
61654         paths.
61655
61656 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
61657
61658         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
61659         the empty string.
61660
61661 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
61662
61663         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
61664         address, not strdup.  Include <stdlib.h> and don't declare free().
61665
61666 2000-06-19  Jim Meyering  <meyering@lucent.com>
61667
61668         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
61669
61670 2000-06-18  Jim Meyering  <meyering@lucent.com>
61671
61672         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
61673
61674         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
61675         `checking whether...' message to be consistent with that of the
61676         lstat test.
61677
61678 2000-06-18  Jim Meyering  <meyering@lucent.com>
61679
61680         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
61681         Besides, these days every porting target provides a mkdir function.
61682
61683         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
61684         needed. (this snippet comes from src/system.h).
61685
61686 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
61687
61688         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
61689
61690 2000-06-15  Paul Eggert  <eggert@twinsun.com>
61691
61692         * lib/human.c (adjust_value): New function.
61693         (human_readable_inexact): Apply rounding style even when
61694         printing approximate values.
61695
61696 2000-06-14  Paul Eggert  <eggert@twinsun.com>
61697
61698         * lib/human.c (human_readable_inexact): Allow an input block
61699         size that is not a multiple of the output block size, and vice versa.
61700         Reported by Piergiorgio Sartor.
61701
61702 2000-06-14  Paul Eggert  <eggert@twinsun.com>
61703
61704         * lib/getdate.y (get_date): Apply relative times after time
61705         zone indicator, not before.  Reported by Todd A. Jacobs.
61706
61707 2000-06-13  Jim Meyering  <meyering@lucent.com>
61708
61709         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
61710
61711         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
61712
61713 2000-06-12  Paul Eggert  <eggert@twinsun.com>
61714
61715         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
61716
61717 2000-06-12  Jim Meyering  <meyering@lucent.com>
61718
61719         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
61720         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
61721         optional argument.
61722         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
61723         the optional argument, `lib'.
61724
61725 2000-06-08  Jim Meyering  <meyering@lucent.com>
61726
61727         * m4/largefile.m4: Remove file (now that it's part of autoconf).
61728
61729 2000-06-04  Paul Eggert  <eggert@twinsun.com>
61730
61731         Rewrite largefile configuration so that we don't need to run
61732         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
61733         AC_CANONICAL_HOST in configure.in -- jmm]
61734
61735         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
61736         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
61737         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
61738         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
61739         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
61740         All uses changed.
61741         Instead of inspecting the output of getconf, try to compile the
61742         test program without and with the macro definition.
61743         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
61744         for getconf.  Instead, check for the needed flags by compiling
61745         test programs.
61746
61747 2000-06-04  Paul Eggert  <eggert@twinsun.com>
61748
61749         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
61750
61751 2000-06-04  Jim Meyering  <meyering@lucent.com>
61752
61753         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
61754         SunOS 4.1.4 for which gid_t is an unsigned type.
61755
61756 2000-06-03  Jim Meyering  <meyering@lucent.com>
61757
61758         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
61759         now that autoconf requires that.
61760
61761         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
61762         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
61763         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
61764
61765 2000-06-03  Jim Meyering  <meyering@lucent.com>
61766
61767         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
61768
61769 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
61770
61771         * m4/glibc21.m4: New file.
61772         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
61773
61774 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
61775
61776         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
61777         newer, don't install charset.alias.
61778         * lib/config.charset: Change the Linux/glibc rules so they become empty
61779         on glibc-2.1 or newer.
61780
61781 2000-06-02  Jim Meyering  <meyering@lucent.com>
61782
61783         * lib/mountlist.c: Back out last change.  Instead, do this...
61784         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
61785         me_dummy member using the same `ignore'-testing code.
61786         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
61787         fs_type strings.
61788         From Mark D. Roth.
61789
61790 2000-05-29  Jim Meyering  <meyering@lucent.com>
61791
61792         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
61793         mounts with the `ignore' attribute.  Based on a patch from
61794         Mark D. Roth.
61795
61796 2000-05-28  Jim Meyering  <meyering@lucent.com>
61797
61798         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
61799         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61800         * m4/stat.m4: Likewise.
61801         * m4/lstat.m4: Likewise.
61802         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
61803
61804         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
61805         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
61806
61807 2000-05-26  Jim Meyering  <meyering@lucent.com>
61808
61809         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
61810
61811 2000-05-24  Jim Meyering  <meyering@lucent.com>
61812
61813         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
61814         autoconf requires that.
61815         * m4/lib-check.m4: Likewise.
61816         * m4/jm-macros.m4: Likewise.
61817         * m4/strftime.m4: Likewise.
61818
61819         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
61820         AC_CHECK_DECLS, now that autoconf requires that.
61821
61822 2000-05-22  Jim Meyering  <meyering@lucent.com>
61823
61824         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61825         * m4/lstat.m4: Likewise.
61826
61827 2000-05-22  Jim Meyering  <meyering@lucent.com>
61828
61829         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
61830
61831 2000-05-20  Jim Meyering  <meyering@lucent.com>
61832
61833         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
61834         (jm_PREREQ): Use it.
61835
61836 2000-05-18  Jim Meyering  <meyering@lucent.com>
61837
61838         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
61839         back, too, since it may have been modified by allocate_entry.
61840         (hash_delete): Rewrite to use neither the assignment operator
61841         nor the comma operator in an if-expression.
61842
61843 2000-05-15  Paul Eggert  <eggert@twinsun.com>
61844
61845         * lib/closeout.c:
61846         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
61847         Remove; no longer needed.
61848         "quotearg.h": Add include.
61849         (file_name): Do not bother to explicitly initialize to NULL; it's less
61850         efficient on some hosts.
61851         (close_stdout_status): Remove test as to whether stdout was already
61852         closed; it breaks for the case "echo x | sort >&-".
61853         Quote file name colons.
61854         Do not assume that _("write error") lacks format strings.
61855
61856 2000-05-15  Jim Meyering  <meyering@lucent.com>
61857
61858         * lib/version-etc.c (version_etc_copyright): Update the copyright
61859         string used in all --version output.
61860
61861 2000-05-14  Jim Meyering  <meyering@lucent.com>
61862
61863         * lib/closeout.c (close_stdout_set_file_name): New function.
61864         (close_stdout_status): Use new file-scoped global.
61865         Return right away if fstat says the stdout file descriptor is invalid.
61866         * lib/closeout.h (close_stdout_set_file_name): Declare.
61867
61868 2000-05-10  Jim Meyering  <meyering@lucent.com>
61869
61870         * lib/closeout.c [default_exit_status]: New file-scoped variable.
61871         (close_stdout_set_status): New function.
61872         * lib/closeout.h (close_stdout_set_status): Declare.
61873
61874 2000-05-09  Jim Meyering  <meyering@lucent.com>
61875
61876         * m4/gettext.m4: Rename this...
61877         * m4/libintl.m4: ...to this.
61878
61879 2000-05-08  Jim Meyering  <meyering@lucent.com>
61880
61881         * lib/long-options.c: Don't include closeout.h.
61882         (parse_long_options): Don't call close_stdout for --version.
61883
61884 2000-05-06  Paul Eggert  <eggert@twinsun.com>
61885
61886         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
61887         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
61888         2.1.3 bug.  This avoids a clash when files like regex.c define
61889         _GNU_SOURCE.
61890
61891 2000-05-06  Jim Meyering  <meyering@lucent.com>
61892
61893         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
61894         (AC_REPLACE_FUNCS): Add strnlen.
61895
61896         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
61897         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
61898
61899         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
61900         AC_SEARCH_LIBS call for nanosleep.
61901         (LIB_NANOSLEEP): Set and AC_SUBST.
61902
61903 2000-05-06  Jim Meyering  <meyering@lucent.com>
61904
61905         * lib/strnlen.c: Undefine __strnlen and strnlen.
61906         [!weak_alias]: Define __strnlen to strnlen.
61907
61908         * lib/atexit.c: New file, from libiberty.
61909
61910 2000-05-06  Jim Meyering  <meyering@lucent.com>
61911
61912         * lib/closeout.c (close_stdout_status): Also check for errors on the
61913         stderr stream.
61914
61915 2000-05-05  Jim Meyering  <meyering@lucent.com>
61916
61917         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
61918         AC_SEARCH_LIBS call for clock_gettime.
61919         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
61920
61921         * m4/search-libs.m4: Update from autoconf.
61922
61923         su doesn't work on Solaris 2.6.
61924         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
61925         <shadow.h>.  Reported by Dragos Harabor.
61926
61927 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
61928
61929         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
61930         memcpy instead of xmalloc, xrealloc, path_concat.
61931         (locale_charset): Treat empty environment variables as absent.
61932         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
61933
61934 2000-05-04  Jim Meyering  <meyering@lucent.com>
61935
61936         * lib/getopt.c: Update from glibc.
61937         * lib/obstack.c: Likewise.
61938         * lib/obstack.h: Likewise.
61939         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
61940         file
61941
61942         * lib/regex.h: Likewise.
61943         * lib/strndup.c: Likewise.
61944         * lib/strnlen.c: New file, from glibc.
61945
61946 2000-05-03  Jim Meyering  <meyering@lucent.com>
61947
61948         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
61949
61950 2000-05-02  Paul Eggert  <eggert@twinsun.com>
61951
61952         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
61953         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
61954         compile-time test, rather than inspecting host and OS, to
61955         decide whether to define _LARGEFILE_SOURCE.
61956
61957 2000-05-01  Jim Meyering  <meyering@lucent.com>
61958
61959         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
61960
61961         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
61962         Based on a patch from Bruno Haible.
61963
61964 2000-05-01  Jim Meyering  <meyering@lucent.com>
61965
61966         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
61967
61968 2000-04-29  Jim Meyering  <meyering@lucent.com>
61969
61970         * lib/path-concat.c: Declare strdup only if it's not defined.
61971         * lib/canon-host.c: Likewise.
61972
61973 2000-04-28  Jim Meyering  <meyering@lucent.com>
61974
61975         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
61976         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
61977         is included first, then limits.h is included by locale.h by libintl.h.
61978         From John David Anglin.
61979
61980 2000-04-25  Jim Meyering  <meyering@lucent.com>
61981
61982         * lib/makepath.c (S_IRWXUGO): Define.
61983         (make_path): Always perform explicit chmod if MODE specifies any
61984         of the `special' permission bits.  Prompted by a bug report against
61985         install from Mate Wierdl and Joost van Baal.
61986
61987 2000-04-18  Jim Meyering  <meyering@lucent.com>
61988
61989         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
61990         (jm_PREREQ): Use it.
61991
61992 2000-04-18  Jim Meyering  <meyering@lucent.com>
61993
61994         * lib/README: New file.
61995
61996         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
61997         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
61998
61999 2000-04-17  Jim Meyering  <meyering@lucent.com>
62000
62001         Get it right :-)
62002         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
62003         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
62004         Suggestion from Akim Demaille.
62005
62006 2000-04-17  Jim Meyering  <meyering@lucent.com>
62007
62008         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
62009         the definition of it to rpl_strftime also defined-away the system's
62010         declaration.
62011
62012 2000-04-15  Jim Meyering  <meyering@lucent.com>
62013
62014         Use `C' to denote so-called `contiguous' files, the same way
62015         that tar does.
62016         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
62017         (ftypelet): Use S_ISCTG.
62018         From Michael Deutschmann.
62019
62020 2000-04-14  Jim Meyering  <meyering@lucent.com>
62021
62022         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
62023         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
62024         clobbered.
62025
62026 2000-04-14  Jim Meyering  <meyering@lucent.com>
62027
62028         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
62029
62030 2000-04-13  Jim Meyering  <meyering@lucent.com>
62031
62032         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
62033         AH_VERBATIM to insert required #ifndef into config.h.in.
62034         Suggestion from Akim Demaille.
62035
62036 2000-04-12  Jim Meyering  <meyering@lucent.com>
62037
62038         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
62039         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
62040         Christian Krackowizer.
62041
62042         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
62043         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
62044         (AC_SYS_LARGEFILE): Require.
62045         (AM_C_PROTOTYPES): Require.
62046
62047 2000-04-08  Jim Meyering  <meyering@lucent.com>
62048
62049         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
62050         names don't conflict.  Reported by Eli Zaretskii.
62051
62052 2000-04-07  Jim Meyering  <meyering@lucent.com>
62053
62054         * lib/putenv.c: Move inclusion of errno.h so it follows that of
62055         sys/types.h, to work around system header problems on AIX 3.2.5.
62056         From Bruno Haible.
62057
62058 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
62059
62060         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
62061         bug.  Deal with the different error behavior of Irix iconv.
62062
62063 2000-04-05  Paul Eggert  <eggert@twinsun.com>
62064
62065         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
62066         IRIX if the installer said otherwise.
62067
62068 2000-04-05  Jim Meyering  <meyering@lucent.com>
62069
62070         Portability tweaks required for ultrix4.3.
62071         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
62072         (jm_CHECK_DECLS): Add getutent to the list of functions.
62073         (_jm_DECL_HEADERS): Add utmpx.h.
62074         From John David Anglin.
62075
62076         * m4/strftime.m4: Back out the 2000-04-02 change.
62077         Instead of that change, simply undefine putenv in the test program.
62078
62079 2000-04-05  Jim Meyering  <meyering@lucent.com>
62080
62081         Portability tweaks required for ultrix4.3.
62082         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
62083         getutent.
62084         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
62085         * lib/canon-host.c: Declare strdup.
62086         * lib/path-concat.c: Likewise.
62087         From John David Anglin.
62088
62089 2000-04-04  Jim Meyering  <meyering@lucent.com>
62090
62091         Be more DOS 8.3-friendly.
62092         * lib/ref-add.sin: Renamed from ref-add.sed.in.
62093         * lib/ref-del.sin: Renamed from ref-del.sed.in.
62094         * lib/Makefile.am: Reflect renaming.
62095         Reported by Eli Zaretskii.
62096
62097         Use a temporary file name that won't clash with `charset.alias'
62098         in the DOS 8.3 name space.
62099         * lib/Makefile.am (charset_tmp): Define.
62100         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
62101         (uninstall-local): Likewise.
62102         Reported by Eli Zaretskii.
62103
62104 2000-04-03  Jim Meyering  <meyering@lucent.com>
62105
62106         * m4/gettext.m4: Fix typo in comment.
62107
62108         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
62109         textutils/configure.in).  Suggestion from Paul Eggert.
62110         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
62111
62112 2000-04-02  Paul Eggert  <eggert@twinsun.com>
62113
62114         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
62115         variable in the shell rather than using putenv, which isn't
62116         portable.  This avoids the configure-time inter-test dependency
62117         on the potentially-renamed putenv function.
62118
62119 2000-03-30  Paul Eggert  <eggert@twinsun.com>
62120
62121         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
62122         before checking struct stat.st_blksize, so that
62123         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
62124
62125 2000-03-29  Paul Eggert  <eggert@twinsun.com>
62126
62127         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
62128         since strftime.c uses HAVE_STRFTIME to decide whether to use
62129         the underlying strftime.
62130
62131 2000-03-29  Paul Eggert  <eggert@twinsun.com>
62132
62133         * lib/time/strftime.c (my_strftime): Make sure we call the system
62134         strftime, not ourselves, when invoking the underlying strftime.
62135
62136 2000-03-24  Jim Meyering  <meyering@lucent.com>
62137
62138         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
62139         (charset_alias): Define.
62140         (install-exec-local): Factor out common code.
62141         (uninstall-local): Split lines longer than 80.
62142         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
62143         (SUFFIXES): Define.
62144         (.sed.in.sed): New rule.  Don't redirect directly to $@.
62145         (CLEANFILES): Add ref-add.sed and ref-del.sed.
62146
62147 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
62148
62149         * lib/config.charset: Output a line containing "Packages using this
62150         file".
62151         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
62152         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
62153         ref-del.sed): New rules.
62154
62155 2000-03-17  Jim Meyering  <meyering@lucent.com>
62156
62157         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
62158         Otherwise, include <strings.h>
62159
62160 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
62161
62162         * lib/unicodeio.c (utf8_wctomb): New function.
62163         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
62164         format instead of in UCS-4 with platform dependent endianness.
62165
62166 2000-03-10  Jim Meyering  <meyering@lucent.com>
62167
62168         * m4/lib-check.m4: Look for getspnam in -lgen, too.
62169         From Marco Franzen.
62170
62171 2000-03-07  Paul Eggert  <eggert@twinsun.com>
62172
62173         * lib/savedir.c (savedir): Work even if directory size is
62174         negative; this can happen with some screwy NFS configurations.
62175
62176 2000-03-06  Jim Meyering  <meyering@lucent.com>
62177
62178         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
62179         if it's NULL (because we ran out of memory).  From Bruno Haible.
62180
62181 2000-03-05  Jim Meyering  <meyering@lucent.com>
62182
62183         * lib/localcharset.c ("path-concat.h"): Include.
62184         (get_charset_aliases): Use path_concat instead of ANSI string
62185         concatenation.
62186
62187         * lib/unicodeio.h (PARAMS): Define.
62188         Use it to guard prototype.
62189
62190 2000-03-04  Jim Meyering  <meyering@lucent.com>
62191
62192         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
62193         for lib/localcharset.c.
62194
62195 2000-03-04  Jim Meyering  <meyering@lucent.com>
62196
62197         * lib/Makefile.am (install-exec-local): Create $(libdir) before
62198         installing into it.
62199         (uninstall-local): Uncomment this rule so `make distcheck' works
62200         once again.
62201
62202         * lib/unicodeio.c (<errno.h>): Include it.
62203         (errno): Declare if not defined.
62204
62205         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
62206
62207         * lib/config.charset: New version, incorporating remarks from a linux
62208         i18n mailing list.  From Bruno Haible.
62209
62210 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
62211
62212         * m4/codeset.m4: New file.
62213         * m4/iconv.m4: New file.
62214         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
62215
62216 2000-03-03  Jim Meyering  <meyering@lucent.com>
62217
62218         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
62219
62220 2000-03-02  Jim Meyering  <meyering@lucent.com>
62221
62222         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
62223         the messages come out on separate lines.
62224
62225         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
62226         rather than jm_CHECK_DECLARATIONS.
62227         * m4/decl.m4: Remove now-unused file.
62228
62229         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
62230         geteuid.
62231
62232 2000-03-02  Jim Meyering  <meyering@lucent.com>
62233
62234         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
62235
62236 2000-03-01  Jim Meyering  <meyering@lucent.com>
62237
62238         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
62239         * lib/unicodeio.c: Likewise.
62240
62241 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
62242
62243         * lib/config.charset: New file.
62244         * lib/localcharset.c: New file.
62245         * lib/unicodeio.h, lib/unicodeio.c: New files.
62246         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
62247         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
62248         (noinst_HEADERS): Add unicodeio.h.
62249         (all-local, install-exec-local, charset.alias): New targets.
62250
62251 2000-02-28  Paul Eggert  <eggert@twinsun.com>
62252
62253         * lib/quotearg.c (ALERT_CHAR): New macro.
62254         (quotearg_buffer_restyled): Use it.
62255
62256 2000-02-27  Jim Meyering  <meyering@lucent.com>
62257
62258         * m4/check-decl.m4: Add getenv to the list.
62259
62260 2000-02-27  Jim Meyering  <meyering@lucent.com>
62261
62262         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
62263         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
62264
62265         * lib/backupfile.c: Guard inclusion of stdlib.h with
62266         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
62267         Declare malloc if needed.
62268
62269         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
62270         `#ifndef HAVE_DECL..'
62271         now that autoconf always defines the HAVE_DECL_ symbols.
62272         * lib/human.c: Likewise.
62273         * lib/same.c: Likewise.
62274         * lib/strtoumax.c: Likewise.
62275
62276         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
62277         declaration check was not run.
62278         * lib/hash.c: Likewise.
62279         * lib/human.c: Likewise.
62280         * lib/same.c: Likewise.
62281         * lib/strtoumax.c: Likewise.
62282
62283         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
62284         `.', then first look up the entire `.'-containing string as a login
62285         name.
62286
62287 2000-02-23  Jim Meyering  <meyering@lucent.com>
62288
62289         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
62290         in place of my hack.
62291
62292 2000-02-18  Paul Eggert  <eggert@twinsun.com>
62293
62294         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
62295         (textint): New typedef.
62296         (parser_control): Member year changed from int to textint.
62297         All uses changed.
62298         (YYSTYPE): Removed; replaced by %union with int and textint members.
62299         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
62300         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
62301         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
62302         (tSNUMBER, tUNUMBER): Now of type <textintval>.
62303         (date, number, to_year): Use width of number in digits, not its value,
62304         to determine whether it's a 2-digit year, or a 2-digit time.
62305         (yylex): Store number of digits of numeric tokens.
62306         Reported by John Kendall.
62307
62308         (parser_control): Changed from struct parser_control to typedef (for
62309         consistency).  All uses changed.
62310
62311         (tID): Removed; not used.
62312         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
62313
62314 2000-02-14  Paul Eggert  <eggert@twinsun.com>
62315
62316         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
62317         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
62318
62319 2000-02-12  Jim Meyering  <meyering@lucent.com>
62320
62321         * lib/userspec.c (ISDIGIT): Define it.
62322         (isdigit): Remove definition.
62323         (is_number): Use ISDIGIT, not isdigit.
62324         <libintl.h>: Include.
62325         (_ and N_): Define.
62326         (parse_user_spec): Mark translatable strings.
62327
62328 2000-02-10  Jim Meyering  <meyering@lucent.com>
62329
62330         With these changes, nanosleep.[ch] are finally enough like the other
62331         lib/* replacement files to compile on a few more losing systems.
62332
62333         * lib/nanosleep.h: Don't include config.h.
62334         Remove prototype from declaration of nanosleep.
62335         (PARAMS): Remove now-unneeded definition.
62336         * lib/nanosleep.c: #undef nanosleep.
62337         (rpl_nanosleep): Rename from nanosleep.
62338
62339 2000-02-10  Jim Meyering  <meyering@lucent.com>
62340
62341         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
62342         gnu_nanosleep to rpl_nanosleep.
62343
62344 2000-02-09  Jim Meyering  <meyering@lucent.com>
62345
62346         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
62347         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
62348
62349 2000-02-08  Akim Demaille  <akim@epita.fr>
62350
62351         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
62352         `[' and `]' and remove uses of `changequote'.
62353         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
62354         (AC_SYS_LARGEFILE): Likewise.
62355         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
62356         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
62357         of changequote.
62358         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
62359         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
62360         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
62361         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
62362
62363 2000-02-05  Jim Meyering  <meyering@lucent.com>
62364
62365         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
62366         Remove explicit use of AC_HEADER_TIME.  It is required by
62367         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
62368         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
62369         in autoconf whereby the expansion of the latter ended up preceding
62370         the expansion of its prerequisite, AC_HEADER_TIME.
62371         Reported by Volker Borchert.
62372
62373 2000-02-03  Jim Meyering  <meyering@lucent.com>
62374
62375         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
62376
62377 2000-02-03  Jim Meyering  <meyering@lucent.com>
62378
62379         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
62380         rather than with `#if HAVE_UTMPNAME'.
62381
62382 2000-02-02  Jim Meyering  <meyering@lucent.com>
62383
62384         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
62385         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
62386         Reported by Eli Zaretskii.
62387
62388 2000-02-01  Jim Meyering  <meyering@lucent.com>
62389
62390         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
62391
62392 2000-01-31  Jim Meyering  <meyering@lucent.com>
62393
62394         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
62395         functions.  Add the time.h and sys/time.h headers along with the
62396         AC_REQUIRE'ment of AC_HEADER_TIME.
62397
62398 2000-01-31  Jim Meyering  <meyering@lucent.com>
62399
62400         * lib/nanosleep.h (nanosleep): Guard declaration with
62401         `#if ! HAVE_DECL_NANOSLEEP'.
62402         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
62403         the declaration in that vendor's sys/timers.h.
62404         Reported by Christian Krackowizer.
62405
62406         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
62407         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
62408         (ISPRINT): Likewise.
62409         Reported by Tom Tromey.
62410
62411 2000-01-30  Jim Meyering  <meyering@lucent.com>
62412
62413         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
62414
62415         * m4/prereq.m4 (utmp_includes): Define.
62416         Check for ut_user and ut_name members in both struct utmpx
62417         and struct utmp.
62418
62419 2000-01-30  Jim Meyering  <meyering@lucent.com>
62420
62421         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
62422         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
62423         header files where only utmpx.ut_user is declared.
62424
62425         * lib/readutmp.h (UT_USER): Define.
62426
62427 2000-01-29  Jim Meyering  <meyering@lucent.com>
62428
62429         * m4/lib-check.m4: New file containing library-related checks from
62430         fileutils and sh-utils (textutils had none).
62431
62432 2000-01-28  Jim Meyering  <meyering@lucent.com>
62433
62434         * m4/perl.m4: Change format of warning message to look more like that
62435         from the missing script.  Suggestion from François Pinard.
62436
62437 2000-01-25  Jim Meyering  <meyering@lucent.com>
62438
62439         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
62440         well as time.h in the compile check.
62441         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
62442         Fix typo in cross-compiling case: s/yes/no/.
62443
62444 2000-01-23  Jim Meyering  <meyering@lucent.com>
62445
62446         * m4/jm-macros.m4: Move df-related tests here from
62447         fileutils/configure.in
62448
62449         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
62450         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
62451
62452         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
62453         s/space/ac_fsusage_space/.
62454         (jm_FILE_SYSTEM_USAGE): Take two parameters.
62455
62456         * m4/ftruncate.m4: New file (derived from part of
62457         fileutils/configure.in).
62458         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
62459         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
62460
62461         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
62462         AC_SUBST these here, rather than just in sh-util/configure.in, so
62463         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
62464         all the same.
62465         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
62466         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
62467         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
62468         (AC_SUBST(POW_LIBM)): Likewise.
62469         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
62470
62471 2000-01-23  Jim Meyering  <meyering@lucent.com>
62472
62473         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
62474         obstack.c.
62475
62476 2000-01-22  Jim Meyering  <meyering@lucent.com>
62477
62478         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
62479
62480         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
62481
62482         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
62483         configure.in
62484         (AC_CHECK_HEADERS): Likewise for sh-utils.
62485         (AC_CHECK_HEADERS): Likewise for textutils.
62486         Merge the three lists of headers.
62487
62488         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
62489         from fileutils' configure.in.
62490
62491         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
62492         code. Moved tests into their own function (_jm_DECL_HEADERS) in
62493         check-decl.m4.
62494
62495         * m4/check-decl.m4: Use #if rather than #ifdef.
62496         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
62497         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
62498         (_jm_DECL_HEADERS): Define new function.
62499         (jm_CHECK_DECLARATIONS): Require it.
62500
62501 2000-01-22  Jim Meyering  <meyering@lucent.com>
62502
62503         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
62504         [! HAVE_DECL_STRTOULL]: Declare strtoull.
62505         Required for some AIX systems.  Reported by Christian Krackowizer.
62506         [TESTING] (main): New function.
62507
62508         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
62509         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
62510         letters.
62511
62512         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
62513         iswprint.
62514
62515         * lib/strverscmp.c (ISDIGIT): Define.
62516         (strverscmp): Use ISDIGIT, not isdigit.
62517
62518 2000-01-19  Jim Meyering  <meyering@lucent.com>
62519
62520         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
62521         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
62522         defines `struct timespec' in <sys/time.h>
62523
62524         * m4/c-bs-a.m4: Remove uses of changequote altogether.
62525         Thanks to Akim for explaining.
62526
62527 2000-01-17  Paul Eggert  <eggert@twinsun.com>
62528
62529         * lib/nanosleep.c (nanosleep):
62530         Don't use SA_INTERRUPT to decide whether to call sigaction, as
62531         POSIX.1 doesn't require SA_INTERRUPT and some systems
62532         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
62533         it's been part of POSIX.1 since day 1 (in 1988).
62534
62535 2000-01-17  Jim Meyering  <meyering@lucent.com>
62536
62537         * lib/interlock: Remove unused file.  Reported by François Pinard.
62538
62539 2000-01-16  Paul Eggert  <eggert@twinsun.com>
62540
62541         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
62542         alert, backslash, formfeed, and vertical tab unnecessarily in
62543         shell quoting style.
62544
62545 2000-01-16  Jim Meyering  <meyering@lucent.com>
62546
62547         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
62548         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
62549         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
62550         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
62551
62552 2000-01-16  Jim Meyering  <meyering@lucent.com>
62553
62554         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
62555         because the latter didn't work.
62556
62557 2000-01-15  Jim Meyering  <meyering@lucent.com>
62558
62559         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
62560         (AC_REPLACE_FUNCS): Add memcpy and memset.
62561         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
62562         Add strpbrk.
62563         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
62564
62565 2000-01-12  Jim Meyering  <meyering@lucent.com>
62566
62567         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
62568         (jm_PREREQ): Use it.
62569         (jm_PREREQ_READUTMP): New macro.
62570         (jm_PREREQ): Use it.
62571
62572 2000-01-11  Paul Eggert  <eggert@twinsun.com>
62573
62574         Quote multibyte characters correctly.
62575         * m4/c-bs-a.m4: New file.
62576         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
62577         (jm_PREREQ): Use it.
62578
62579 2000-01-11  Paul Eggert  <eggert@twinsun.com>
62580
62581         * m4/uintmax_t.m4: Port to autoconf 2.13.
62582
62583 2000-01-08  Jim Meyering  <meyering@ascend.com>
62584
62585         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
62586         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
62587
62588 2000-01-04  Jim Meyering  <meyering@ascend.com>
62589
62590         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
62591         jm_STRUCT_DIRENT_D_TYPE.
62592         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
62593         jm_STRUCT_DIRENT_D_INO.
62594         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
62595         jm_STRUCT_UTIMBUF.
62596         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
62597         renamings.
62598         * m4/utime.m4: Likewise.
62599
62600         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
62601         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
62602
62603 2000-01-03  Paul Eggert  <eggert@twinsun.com>
62604
62605         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
62606         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
62607
62608 2000-01-02  Jim Meyering  <meyering@ascend.com>
62609
62610         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
62611         remember if this is necessary.
62612
62613 1999-12-26  Jim Meyering  <meyering@ascend.com>
62614
62615         * m4/jm-macros.m4: Use it here.
62616         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
62617
62618 1999-12-23  Jim Meyering  <meyering@ascend.com>
62619
62620         * m4/jm-macros.m4: Check for clock_gettime (moved from
62621         fileutils/configure.in)
62622         Check for gettimeofday.
62623
62624 1999-12-20  Jim Meyering  <meyering@ascend.com>
62625
62626         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
62627         autoconf-2.14a-1999-12-20.
62628
62629 1999-12-19  Jim Meyering  <meyering@ascend.com>
62630
62631         * m4/lstat-slash.m4: New file.
62632         * m4/jm-macros.m4: Use the new macro:
62633         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62634
62635 1999-12-07  Jim Meyering  <meyering@ascend.com>
62636
62637         * m4/perl.m4: Require that File::Compare be available, too.
62638         Too many systems seem to lack it.
62639
62640         * m4/strftime.m4: Add checks for most of the cpp macros tested in
62641         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
62642
62643 1999-11-18  Paul Eggert  <eggert@twinsun.com>
62644
62645         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
62646         problem with the QNX 4.25 shell, which doesn't propagate exit
62647         status of failed commands inside shell assignments.
62648
62649 1999-11-17  Jim Meyering  <meyering@ascend.com>
62650
62651         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
62652
62653 1999-11-07  Jim Meyering  <meyering@ascend.com>
62654
62655         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
62656
62657 1999-11-06  Jim Meyering  <meyering@ascend.com>
62658
62659         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
62660         * m4/jm-macros.m4 (jm_MACROS): Use it here.
62661
62662 1999-11-05  Jim Meyering  <meyering@ascend.com>
62663
62664         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
62665         configure.in of textutils, fileutils, and sh-utils into this one
62666         (shared between those packages) file.
62667         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
62668         AC_STRUCT_ST_BLKSIZE.
62669
62670 1999-11-03  Jim Meyering  <meyering@ascend.com>
62671
62672         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
62673         of AC_CHECK_TYPE checks includes unistd.h.
62674         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
62675         Suggestion from Akim Demaille.
62676
62677 1999-10-30  Jim Meyering  <meyering@ascend.com>
62678
62679         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
62680         m4-quoted string.
62681         * m4/ls-mntd-fs.m4: Likewise.
62682         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
62683         * m4/jm-winsz1.m4: Likewise.
62684
62685         * m4/const.m4: Remove file, since the fix made it into the experimental
62686         version of autoconf.
62687         * m4/mktime.m4: Likewise.
62688
62689         * m4/check-type.m4: Remove file, now that the latest version of
62690         AC_CHECK_TYPE takes a third arg to specify additional #includes.
62691
62692         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
62693         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
62694         AC_CHECK_TYPE.
62695
62696 1999-10-04  Jim Meyering  <meyering@ascend.com>
62697
62698         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
62699
62700 1999-09-22  Paul Eggert  <eggert@twinsun.com>
62701
62702         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
62703         2.95.1 bug with HP-UX 10.20.
62704
62705 1999-09-17  Jim Meyering  <meyering@ascend.com>
62706
62707         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
62708         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
62709         due to missing strdup (against sh-utils-2.0).
62710
62711 1999-08-29  Jim Meyering  <meyering@ascend.com>
62712
62713         * m4/jm-macros.m4: Require jm_BISON.
62714         * m4/bison.m4: New file.
62715
62716 1999-08-17  Paul Eggert  <eggert@twinsun.com>
62717
62718         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
62719         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
62720
62721 1999-08-05  Jim Meyering  <meyering@ascend.com>
62722
62723         * m4/getline.m4: Rename test file from conftestdata to conftest.data
62724         to avoid conflicts with `conftest' on 8+3 filesystems.
62725         Suggestion from Eli Zaretskii.
62726
62727 1999-08-04  Jim Meyering  <meyering@ascend.com>
62728
62729         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
62730         fileutils and sh-utils (textutils's getline test was inadequate).
62731         (AM_FUNC_GETLINE): Run this test.
62732         (AC_CHECK_FUNCS): Check for getdelim.
62733         Reported by Bob Proulx.
62734
62735 1999-08-02  Jim Meyering  <meyering@ascend.com>
62736
62737         * m4/jm-macros.m4: Add a comment.
62738
62739 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62740
62741         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
62742         <inttypes.h> defines strtoumax as a macro (and not as a
62743         function).
62744
62745 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62746
62747         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
62748         that we can shift, multiply and divide unsigned long long
62749         values; Ultrix cc can't do it.
62750
62751 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62752
62753         * m4/mktime.m4: New file, which is a preview of what should appear
62754         in the next public autoconf release.
62755
62756 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62757
62758         * m4/lfs.m4: Remove this file.
62759         * m4/largefile.m4: New file.  It contains the old contents of
62760         lfs.m4, except that all names with prefix AC_LFS have been
62761         changed to use the prefix AC_SYS_LARGEFILE instead, to be
62762         compatible with future autoconf versions.  Also, some minor m4
62763         quoting problems have been fixed.
62764
62765 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62766
62767         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
62768         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
62769         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
62770         and simplify the shell code.
62771
62772 1999-08-01  Jim Meyering  <meyering@ascend.com>
62773
62774         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
62775         m4.
62776
62777 1999-07-20  Jim Meyering  <meyering@ascend.com>
62778
62779         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
62780
62781 1999-07-15  Jim Meyering  <meyering@ascend.com>
62782
62783         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
62784
62785 1999-05-22  Jim Meyering  <meyering@ascend.com>
62786
62787         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
62788
62789 1999-05-20  Jim Meyering  <meyering@ascend.com>
62790
62791         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
62792         Add a colon after each `then' in case $4 is empty.
62793
62794 1999-05-16  Jim Meyering  <meyering@ascend.com>
62795
62796         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
62797
62798 1999-05-10  Jim Meyering  <meyering@ascend.com>
62799
62800         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
62801
62802         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
62803         AC_FUNC_MKTIME.
62804
62805 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
62806
62807         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
62808
62809 1999-05-04  Paul Eggert  <eggert@twinsun.com>
62810
62811         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
62812         not CPPFLAGS, so that linking works correctly in IRIX.
62813
62814 1999-04-30  Paul Eggert  <eggert@twinsun.com>
62815
62816         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
62817
62818 1999-04-20  Paul Eggert  <eggert@twinsun.com>
62819
62820         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
62821         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
62822         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
62823         jm_AC_TYPE_UNSIGNED_LONG_LONG.
62824         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
62825
62826         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
62827
62828 1999-04-20  Jim Meyering  <meyering@ascend.com>
62829
62830         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
62831         AC_REPLACE xstroull if necessary.  From Paul Eggert.
62832         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
62833
62834 1999-04-18  Jim Meyering  <meyering@ascend.com>
62835
62836         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
62837         * m4/jm-macros.m4: Use it.
62838
62839 1999-04-06  Jim Meyering  <meyering@ascend.com>
62840
62841         * m4/strftime.m4: Remove test for %f.
62842
62843 1999-03-29  Jim Meyering  <meyering@ascend.com>
62844
62845         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
62846         superset of the AC_TYPE_* checks in the textutils, fileutils,
62847         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
62848         AC_TYPE_PID_T.
62849
62850 1999-03-28  Jim Meyering  <meyering@ascend.com>
62851
62852         * m4/jm-macros.m4: Define GNU_PACKAGE here.
62853         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
62854         replaced e.g., in the *.sh files of the sh-utils.
62855
62856 1999-03-20  Jim Meyering  <meyering@ascend.com>
62857
62858         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
62859         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
62860         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
62861
62862 1999-03-19  Jim Meyering  <meyering@ascend.com>
62863
62864         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
62865
62866 1999-03-12  Jim Meyering  <meyering@ascend.com>
62867
62868         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
62869
62870 1999-03-07  Jim Meyering  <meyering@ascend.com>
62871
62872         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
62873         declared.
62874
62875 1999-02-17  Jim Meyering  <meyering@ascend.com>
62876
62877         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
62878         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
62879
62880 1999-02-07  Jim Meyering  <meyering@ascend.com>
62881
62882         * m4/group-member.m4: New file -- extracted from sh-utils'
62883         configure.in.
62884
62885         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
62886         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
62887
62888 1999-02-06  Jim Meyering  <meyering@ascend.com>
62889
62890         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
62891         * m4/fnmatch.m4: Likewise.
62892         * m4/getgroups.m4: Likewise.
62893         * m4/lstat.m4: Likewise.
62894         * m4/malloc.m4: Likewise.
62895         * m4/putenv.m4: Likewise.
62896         * m4/realloc.m4: Likewise.
62897         * m4/regex.m4: Likewise.
62898         * m4/stat.m4: Likewise.
62899         * m4/strftime.m4: Likewise.
62900         Suggestion from Alain Magloire.
62901
62902         * m4/chown.m4: Use `.$ac_objext', not `.o'.
62903         * m4/fnmatch.m4: Likewise.
62904         * m4/getgroups.m4: Likewise.
62905         * m4/getline.m4: Likewise.
62906         * m4/lstat.m4: Likewise.
62907         * m4/malloc.m4: Likewise.
62908         * m4/memcmp.m4: Likewise.
62909         * m4/putenv.m4: Likewise.
62910         * m4/realloc.m4: Likewise.
62911         * m4/regex.m4: Likewise.
62912         * m4/stat.m4: Likewise.
62913         * m4/strftime.m4: Likewise.
62914         Suggestion from Alain Magloire.
62915
62916         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
62917         an argument.
62918
62919         * m4/regex.m4: Add a run-time Test for proper operation of
62920         re_compile_pattern.
62921
62922 1999-01-31  Jim Meyering  <meyering@ascend.com>
62923
62924         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
62925
62926 1999-01-30  Jim Meyering  <meyering@ascend.com>
62927
62928         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
62929
62930         * m4/jm-mktime.m4: Make this a wrapper around the official
62931         AM_FUNC_MKTIME rather than my private copy, now that the official one
62932         is up to date.
62933         * m4/mktime.m4: Remove file.
62934
62935         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
62936         * m4/uptime.m4: Likewise.
62937         * m4/uintmax_t.m4: Likewise.
62938
62939 1999-01-28  Jim Meyering  <meyering@ascend.com>
62940
62941         * m4/jm-macros.m4: Use jm_AFS.
62942         * m4/afs.m4: New file (from fileutils' configure.in).
62943
62944         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
62945         * m4/chown.m4: Likewise.
62946         * m4/d-ino.m4: Likewise.
62947         * m4/d-type.m4: Likewise.
62948         * m4/fnmatch.m4: Likewise.
62949         * m4/getgroups.m4: Likewise.
62950         * m4/gettext.m4: Likewise.
62951         * m4/jm-mktime.m4: Likewise.
62952         * m4/jm-winsz2.m4: Likewise.
62953         * m4/lcmessage.m4: Likewise.
62954         * m4/ls-mntd-fs.m4: Likewise.
62955         * m4/malloc.m4: Likewise.
62956         * m4/memcmp.m4: Likewise.
62957         * m4/putenv.m4: Likewise.
62958         * m4/realloc.m4: Likewise.
62959         * m4/st_mtim.m4: Likewise.
62960         * m4/strftime.m4: Likewise.
62961
62962 1999-01-16  Jim Meyering  <meyering@ascend.com>
62963
62964         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
62965         (ARGMATCH_DIE_DECL): Define.
62966
62967 1999-01-12  Jim Meyering  <meyering@ascend.com>
62968
62969         * m4/Makefile.am.in: Rewrite to avoid using fmt.
62970         Reported by Lars Hecking.
62971
62972 1999-01-10  Jim Meyering  <meyering@ascend.com>
62973
62974         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
62975         gross kludge.
62976         * m4/inttypes_h.m4: Likewise.
62977         * m4/lstat.m4: Likewise.
62978         * m4/malloc.m4: Likewise.
62979         * m4/readdir.m4: Likewise.
62980         * m4/realloc.m4: Likewise.
62981         * m4/st_dm_mode.m4: Likewise.
62982         * m4/stat.m4: Likewise.
62983         * m4/utimbuf.m4: Likewise.
62984         * m4/utimes.m4: Likewise.
62985
62986         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
62987         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
62988         comments in config.h.in are meaningful.
62989
62990         * m4/jm-macros.m4: Require autoconf-2.13 here.
62991
62992         * m4/regex.m4: By default, don't use the included regex.c on systems
62993         with glibc 2.  Suggestion from Uli Drepper.
62994
62995 1999-01-02  Jim Meyering  <meyering@ascend.com>
62996
62997         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
62998
62999 1998-12-18  Jim Meyering  <meyering@ascend.com>
63000
63001         * m4/Makefile.am.in (Makefile.am): Simplify rule.
63002         Based on a suggestion from Lars Hecking.
63003
63004 1998-11-16  Paul Eggert  <eggert@twinsun.com>
63005
63006         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
63007
63008 1998-11-16  Jim Meyering  <meyering@ascend.com>
63009
63010         * m4/lfs.m4: Double-quote the `uname...` expression.
63011
63012 1998-11-14  Jim Meyering  <meyering@ascend.com>
63013
63014         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
63015         * m4/stat.m4: Likewise.
63016
63017 1998-11-03  Jim Meyering  <meyering@ascend.com>
63018
63019         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
63020         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
63021
63022 1998-10-18  Jim Meyering  <meyering@ascend.com>
63023
63024         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
63025
63026 1998-10-17  Jim Meyering  <meyering@ascend.com>
63027
63028         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
63029         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
63030         calls for those previously hard-coded headers.  Instead, take a new
63031         parameter.
63032         (jm_CHECK_DECLARATIONS): Reflect interface change.
63033         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
63034         (jm_CHECK_DECL_LOCALTIME_R): New macro.
63035
63036         * m4/mktime.m4: Test for spring-forward gap before long-running test.
63037
63038 1998-10-14  Jim Meyering  <meyering@ascend.com>
63039
63040         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
63041         instead of "TZ=America/Vancouver".  From Paul Eggert.
63042
63043 1998-10-11  Jim Meyering  <meyering@ascend.com>
63044
63045         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
63046         This adds a test for a recently added compatibility fix for mktime.c.
63047         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
63048
63049 1998-09-27  Jim Meyering  <meyering@ascend.com>
63050
63051         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
63052
63053         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
63054         ../configure.in, including a change from Gordon Matzigkeit to allow
63055         cross-compiling for the Hurd.
63056
63057         * m4/glibc.m4: New file/macro to test for the GNU C Library
63058         versions 1 and 2.  From Gordon Matzigkeit.
63059         Indent.
63060
63061 1998-09-21  Jim Meyering  <meyering@ascend.com>
63062
63063         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
63064
63065 1998-08-18  Paul Eggert  <eggert@twinsun.com>
63066
63067         Port nanosecond-resolution times to UnixWare 2.1.2 and
63068         pedantic Solaris 2.6.
63069
63070         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
63071         AC_STRUCT_ST_MTIM.
63072         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
63073         Generate name of ns member, instead of just 1 or undef.
63074         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
63075
63076 1998-08-15  Jim Meyering  <meyering@ascend.com>
63077
63078         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
63079         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
63080         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
63081         instead of jm_TYPE_SSIZE_T.
63082
63083 1998-08-12  Jim Meyering  <meyering@ascend.com>
63084
63085         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
63086
63087 1998-08-02  Jim Meyering  <meyering@ascend.com>
63088
63089         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
63090         in acconfig.h manually.
63091
63092 1998-07-31  Paul Eggert  <eggert@twinsun.com>
63093
63094         * m4/st_mtim.m4: New file.
63095
63096 1998-07-28  Jim Meyering  <meyering@ascend.com>
63097
63098         * m4/utimes.m4: Undef stat.
63099
63100 1998-07-25  Jim Meyering  <meyering@ascend.com>
63101
63102         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
63103         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
63104
63105 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
63106
63107         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
63108         uid and gid actually remain unchanged.
63109
63110 1998-07-07  Jim Meyering  <meyering@ascend.com>
63111
63112         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
63113
63114 1998-07-04  Jim Meyering  <meyering@ascend.com>
63115
63116         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
63117         to prove that this macro can be used in packages without regex.c.
63118
63119 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
63120
63121         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
63122         is to be used.
63123
63124 1998-07-03  Jim Meyering  <meyering@ascend.com>
63125
63126         * m4/gettext.m4: Add -lintl if it's found to be necessary.
63127
63128         * m4/gettext.m4: New file -- from gettext-0.10.35.
63129         * m4/lcmessage.m4: Likewise.
63130         * m4/progtest.m4: Likewise.
63131
63132         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
63133         * m4/jm-macros.m4: Require the new macro.
63134
63135 1998-06-29  Jim Meyering  <meyering@ascend.com>
63136
63137         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
63138         for the definition of NGROUPS (used in a system header included
63139         by sys/mount.h).
63140
63141 1998-06-28  Jim Meyering  <meyering@ascend.com>
63142
63143         * m4/ls-mntd-fs.m4: New file.
63144         * m4/fstypename.m4: New file.
63145
63146         * m4/jm-macros.m4: Require the new macro.
63147         * m4/jm-glibc-io.m4: New file.
63148
63149 1998-05-19  Jim Meyering  <meyering@ascend.com>
63150
63151         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
63152         * m4/lchown.m4: New file.
63153
63154         * m4/Makefile.am.in: New file.
63155         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
63156
63157 1998-05-14  Jim Meyering  <meyering@ascend.com>
63158
63159         * m4/Makefile.am (EXTRA_DIST): Add them.
63160         * m4/jm-macros.m4: New file.
63161         * m4/utimbuf.m4: New file.
63162
63163 1998-05-12  Jim Meyering  <meyering@ascend.com>
63164
63165         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
63166
63167 1998-05-11  Jim Meyering  <meyering@ascend.com>
63168
63169         * m4/isc-posix.m4: New file.
63170
63171 1998-05-10  Jim Meyering  <meyering@ascend.com>
63172
63173         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
63174
63175 1998-05-09  Jim Meyering  <meyering@ascend.com>
63176
63177         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
63178         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
63179         with automake.
63180
63181         * m4/ssize_t.m4: New file.
63182         * m4/mktime.m4: Remove file -- the new automake has this now.
63183
63184 1998-04-26  Jim Meyering  <meyering@ascend.com>
63185
63186         * m4/assert.m4: New file.
63187         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
63188
63189 1998-04-05  Jim Meyering  <meyering@ascend.com>
63190
63191         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
63192         (jm_PREREQ): Use it here.
63193
63194 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
63195
63196         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
63197         in acconfig.h.
63198
63199 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
63200
63201         * m4/prereq.m4: New file.
63202         * m4/error.m4: New file.
63203         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
63204
63205 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
63206
63207         * m4/getline.m4: Don't set am_cv_func_working_getline before the
63208         cache-check for the same variable -- that defeated the purpose of
63209         the test; the test program was never run.  This was a problem only
63210         on systems with losing getline functions -- HP-UX 10.20 is one.
63211         Reported by Bjorn Helgaas.
63212
63213 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
63214
63215         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
63216
63217 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
63218
63219         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
63220
63221         * m4/const.m4: New file.  Use an initializer in this declaration
63222         typedef int charset[2]; const charset x;
63223         Reported by Bob Glickstein.
63224
63225 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
63226
63227         * m4/chown.m4: Fix reversed types on -1 args to chown.
63228         From Kaveh Ghazi.
63229
63230 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
63231
63232         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
63233         Add lseek and memchr.
63234
63235         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
63236         T.E.Dickey <dickey@clark.net> said that some older preprocessors
63237         have a 20-character limit on names.
63238
63239 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
63240
63241         * m4/inttypes_h.m4: New file.
63242         * m4/uintmax_t.m4: New file.
63243         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
63244
63245
63246         -----
63247
63248         Local Variables:
63249         coding: utf-8
63250         End:
63251
63252         Copyright (C) 1997-2010 Free Software Foundation, Inc.
63253
63254         Copying and distribution of this file, with or without
63255         modification, are permitted provided the copyright notice
63256         and this notice are preserved.